聊天报错

This commit is contained in:
2025-09-21 19:41:49 +08:00
parent 35aa92d78a
commit 274f02b867
7 changed files with 243 additions and 221 deletions
@@ -27,6 +27,8 @@ export class ApiConfig {
private static _instance: ApiConfig;
private config: AIConfig;
private baseUrl: "https://generativelanguage.googleapis.com";
private constructor() {
this.initConfig();
}
@@ -104,6 +106,9 @@ export class ApiConfig {
public getTimeout() {
return this.config.timeout;
}
public getBaseUrl() {
return this.baseUrl;
}
/**
* 验证配置是否有效