mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
Add embedder (#818)
This commit is contained in:
parent
51cd5ffd91
commit
27fdd1b6e6
8 changed files with 206 additions and 21 deletions
|
|
@ -33,6 +33,7 @@ const logger = {
|
|||
|
||||
export const DEFAULT_GEMINI_MODEL = 'gemini-2.5-pro-preview-06-05';
|
||||
export const DEFAULT_GEMINI_FLASH_MODEL = 'gemini-2.5-flash-preview-05-20';
|
||||
export const DEFAULT_GEMINI_EMBEDDING_MODEL = 'gemini-embedding-001';
|
||||
|
||||
interface CliArgs {
|
||||
model: string | undefined;
|
||||
|
|
@ -177,6 +178,7 @@ export async function loadCliConfig(
|
|||
const configParams: ConfigParameters = {
|
||||
apiKey: apiKeyForServer,
|
||||
model: modelToUse,
|
||||
embeddingModel: DEFAULT_GEMINI_EMBEDDING_MODEL,
|
||||
sandbox: argv.sandbox ?? settings.sandbox ?? argv.yolo ?? false,
|
||||
targetDir: process.cwd(),
|
||||
debugMode,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue