mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
fix normalize in different place
This commit is contained in:
parent
588ef60411
commit
56492be757
3 changed files with 33 additions and 18 deletions
|
|
@ -748,9 +748,9 @@ export class Config {
|
|||
initializeTelemetry(this);
|
||||
}
|
||||
|
||||
const normalizedProxy = normalizeProxyUrl(this.getProxy());
|
||||
if (normalizedProxy) {
|
||||
setGlobalDispatcher(new ProxyAgent(normalizedProxy));
|
||||
const proxyUrl = this.getProxy();
|
||||
if (proxyUrl) {
|
||||
setGlobalDispatcher(new ProxyAgent(proxyUrl));
|
||||
}
|
||||
this.geminiClient = new GeminiClient(this);
|
||||
this.chatRecordingService = this.chatRecordingEnabled
|
||||
|
|
@ -1719,7 +1719,7 @@ export class Config {
|
|||
}
|
||||
|
||||
getProxy(): string | undefined {
|
||||
return this.proxy;
|
||||
return normalizeProxyUrl(this.proxy);
|
||||
}
|
||||
|
||||
getWorkingDir(): string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue