minor: refine model selection

This commit is contained in:
2026-07-06 08:32:54 +05:30
parent a04340818c
commit 510cead5d9
4 changed files with 260 additions and 1 deletions

View File

@@ -1,4 +1,12 @@
import { z } from "zod";
import dotenv from "dotenv";
import path from "path";
// Load environment variables from .env file
dotenv.config();
// In a monorepo, the cwd might be a package subdirectory, so check parent directories as well
dotenv.config({ path: path.resolve(process.cwd(), "../.env") });
dotenv.config({ path: path.resolve(process.cwd(), "../../.env") });
const LLMConfigSchema = z.object({
GOOGLE_API_KEY: z.string().min(1, "GOOGLE_API_KEY is required"),

View File

@@ -1 +1,3 @@
export * from "./llm.js";
export * from "./config.js";
export * from "./providers/google-genai.js";

View File

@@ -9,7 +9,7 @@ export class GeminiProvider implements ILLMProvider {
constructor(apiKey: string) {
this.model = new ChatGoogleGenerativeAI({
apiKey,
model: "gemini-3-flash",
model: "gemini-2.5-flash",
});
}