feat(AihubmixAPIClient): add getBaseURL method to handle client base URL retrieval

This commit is contained in:
suyao 2025-06-26 00:52:48 +08:00 committed by one
parent 5f2d0d4bfc
commit 751879d42e

View File

@ -66,6 +66,13 @@ export class AihubmixAPIClient extends BaseApiClient {
this.currentClient = this.defaultClient as BaseApiClient
}
override getBaseURL(): string {
if (!this.currentClient) {
return this.provider.apiHost
}
return this.currentClient.getBaseURL()
}
/**
* client是BaseApiClient的实例
*/