Simplify streaming code for code assist server (#4619)

This commit is contained in:
Tommaso Sciortino
2025-07-21 13:44:43 -07:00
committed by GitHub
parent f95674e646
commit d7a57d85a3
10 changed files with 36 additions and 133 deletions
+5
View File
@@ -22,6 +22,7 @@ import {
ChatCompressionInfo,
} from './turn.js';
import { Config } from '../config/config.js';
import { UserTierId } from '../code_assist/types.js';
import { getCoreSystemPrompt, getCompressionPrompt } from './prompts.js';
import { ReadManyFilesTool } from '../tools/read-many-files.js';
import { getResponseText } from '../utils/generateContentResponseUtilities.js';
@@ -130,6 +131,10 @@ export class GeminiClient {
return this.contentGenerator;
}
getUserTier(): UserTierId | undefined {
return this.contentGenerator?.userTier;
}
async addHistory(content: Content) {
this.getChat().addHistory(content);
}