mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
feat: Optimize the code
This commit is contained in:
@@ -908,29 +908,8 @@ export class Config {
|
||||
return this.tavilyApiKey;
|
||||
}
|
||||
|
||||
getWebSearchConfig():
|
||||
| {
|
||||
provider: Array<{
|
||||
type: 'tavily' | 'google' | 'dashscope';
|
||||
config: Record<string, unknown>;
|
||||
}>;
|
||||
default: string;
|
||||
}
|
||||
| undefined {
|
||||
if (!this.webSearch) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return {
|
||||
provider: this.webSearch.provider.map((p) => ({
|
||||
type: p.type,
|
||||
config: {
|
||||
apiKey: p.apiKey,
|
||||
searchEngineId: p.searchEngineId,
|
||||
},
|
||||
})),
|
||||
default: this.webSearch.default,
|
||||
};
|
||||
getWebSearchConfig() {
|
||||
return this.webSearch;
|
||||
}
|
||||
|
||||
getIdeMode(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user