mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
chore: add configurable cache control (#498)
* chore: add configurable cache control * fix: ci/cd
This commit is contained in:
@@ -217,6 +217,7 @@ export interface ConfigParameters {
|
||||
contentGenerator?: {
|
||||
timeout?: number;
|
||||
maxRetries?: number;
|
||||
disableCacheControl?: boolean;
|
||||
samplingParams?: {
|
||||
[key: string]: unknown;
|
||||
};
|
||||
@@ -302,6 +303,7 @@ export class Config {
|
||||
private readonly contentGenerator?: {
|
||||
timeout?: number;
|
||||
maxRetries?: number;
|
||||
disableCacheControl?: boolean;
|
||||
samplingParams?: Record<string, unknown>;
|
||||
};
|
||||
private readonly cliVersion?: string;
|
||||
@@ -801,6 +803,10 @@ export class Config {
|
||||
return this.contentGenerator?.maxRetries;
|
||||
}
|
||||
|
||||
getContentGeneratorDisableCacheControl(): boolean | undefined {
|
||||
return this.contentGenerator?.disableCacheControl;
|
||||
}
|
||||
|
||||
getContentGeneratorSamplingParams(): ContentGeneratorConfig['samplingParams'] {
|
||||
return this.contentGenerator?.samplingParams as
|
||||
| ContentGeneratorConfig['samplingParams']
|
||||
|
||||
Reference in New Issue
Block a user