mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-05 10:51:12 -07:00
feat(core): Migrate generateJson to resolved model configs. (#12626)
This commit is contained in:
@@ -18,7 +18,6 @@ import {
|
||||
LoopType,
|
||||
} from '../telemetry/types.js';
|
||||
import type { Config } from '../config/config.js';
|
||||
import { DEFAULT_GEMINI_FLASH_MODEL } from '../config/config.js';
|
||||
import {
|
||||
isFunctionCall,
|
||||
isFunctionResponse,
|
||||
@@ -436,9 +435,9 @@ export class LoopDetectionService {
|
||||
let result;
|
||||
try {
|
||||
result = await this.config.getBaseLlmClient().generateJson({
|
||||
modelConfigKey: { model: 'loop-detection' },
|
||||
contents,
|
||||
schema,
|
||||
model: DEFAULT_GEMINI_FLASH_MODEL,
|
||||
systemInstruction: LOOP_DETECTION_SYSTEM_PROMPT,
|
||||
abortSignal: signal,
|
||||
promptId: this.promptId,
|
||||
|
||||
Reference in New Issue
Block a user