"chore: bump version and update dependencies"

This commit is contained in:
2025-04-26 23:02:35 +08:00
parent 6376773e13
commit abac483610
6 changed files with 109 additions and 19 deletions

View File

@@ -40,13 +40,15 @@ export class ProviderManager {
if (!Provider) {
throw new Error(`Provider ${provider} not found`);
}
console.log('pm', 'Provider', ProviderMap[provider]);
this.provider = new Provider({
const providerConfig = {
model,
apiKey,
baseURL,
});
};
if (!providerConfig.baseURL) {
delete providerConfig.baseURL;
}
this.provider = new Provider(providerConfig);
}
static async createProvider(config: ProviderManagerConfig) {
if (!config.baseURL) {