mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 11:04:42 -07:00
Simplify streaming code for code assist server (#4619)
This commit is contained in:
committed by
GitHub
parent
f95674e646
commit
d7a57d85a3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user