聊天报错
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 验证配置是否有效
|
||||
|
||||
Reference in New Issue
Block a user