mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
fix(patch): cherry-pick 2995af6 to release/v0.21.0-preview.5-pr-15131 to patch version v0.21.0-preview.5 and create version 0.21.0-preview.6 (#15153)
Co-authored-by: Sehoon Shon <sshon@google.com>
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
|||||||
DEFAULT_GEMINI_MODEL,
|
DEFAULT_GEMINI_MODEL,
|
||||||
type ExtensionLoader,
|
type ExtensionLoader,
|
||||||
startupProfiler,
|
startupProfiler,
|
||||||
|
PREVIEW_GEMINI_MODEL,
|
||||||
} from '@google/gemini-cli-core';
|
} from '@google/gemini-cli-core';
|
||||||
|
|
||||||
import { logger } from '../utils/logger.js';
|
import { logger } from '../utils/logger.js';
|
||||||
@@ -38,7 +39,9 @@ export async function loadConfig(
|
|||||||
|
|
||||||
const configParams: ConfigParameters = {
|
const configParams: ConfigParameters = {
|
||||||
sessionId: taskId,
|
sessionId: taskId,
|
||||||
model: DEFAULT_GEMINI_MODEL,
|
model: settings.general?.previewFeatures
|
||||||
|
? PREVIEW_GEMINI_MODEL
|
||||||
|
: DEFAULT_GEMINI_MODEL,
|
||||||
embeddingModel: DEFAULT_GEMINI_EMBEDDING_MODEL,
|
embeddingModel: DEFAULT_GEMINI_EMBEDDING_MODEL,
|
||||||
sandbox: undefined, // Sandbox might not be relevant for a server-side agent
|
sandbox: undefined, // Sandbox might not be relevant for a server-side agent
|
||||||
targetDir: workspaceDir, // Or a specific directory the agent operates on
|
targetDir: workspaceDir, // Or a specific directory the agent operates on
|
||||||
|
|||||||
Reference in New Issue
Block a user