mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
chore: use correct CLI_VERSION for logging
This commit is contained in:
parent
ef1c8a4bfe
commit
cfc1aebee6
9 changed files with 42 additions and 8 deletions
|
|
@ -208,6 +208,7 @@ export interface ConfigParameters {
|
|||
timeout?: number;
|
||||
maxRetries?: number;
|
||||
};
|
||||
cliVersion?: string;
|
||||
}
|
||||
|
||||
export class Config {
|
||||
|
|
@ -281,6 +282,7 @@ export class Config {
|
|||
timeout?: number;
|
||||
maxRetries?: number;
|
||||
};
|
||||
private readonly cliVersion?: string;
|
||||
constructor(params: ConfigParameters) {
|
||||
this.sessionId = params.sessionId;
|
||||
this.embeddingModel =
|
||||
|
|
@ -350,6 +352,7 @@ export class Config {
|
|||
this.enableOpenAILogging = params.enableOpenAILogging ?? false;
|
||||
this.sampling_params = params.sampling_params;
|
||||
this.contentGenerator = params.contentGenerator;
|
||||
this.cliVersion = params.cliVersion;
|
||||
|
||||
if (params.contextFileName) {
|
||||
setGeminiMdFilename(params.contextFileName);
|
||||
|
|
@ -719,6 +722,10 @@ export class Config {
|
|||
return this.contentGenerator?.maxRetries;
|
||||
}
|
||||
|
||||
getCliVersion(): string | undefined {
|
||||
return this.cliVersion;
|
||||
}
|
||||
|
||||
getSystemPromptMappings():
|
||||
| Array<{
|
||||
baseUrls?: string[];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue