Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelmansuy committed Jul 1, 2024
1 parent 582fb2c commit 2cb37fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/provider_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface ProviderConfig {
const PROVIDER_CONFIGS: Record<ProviderName, ProviderConfig> = {
anthropic: {
type: 'anthropic',
model: configManager.getConfig().modelAlias || anthropicConfig.defaultModel,
model: configManager.getConfig().modelAlias || anthropicConfig.defaultModel || '',
},
// Add configurations for other providers here as needed
openai: {
Expand All @@ -25,7 +25,7 @@ const PROVIDER_CONFIGS: Record<ProviderName, ProviderConfig> = {
},
};

export function getProviderConfig(providerName: ProviderName = configManager.getConfig().defaultProvider): ProviderConfig {
export function getProviderConfig(providerName: ProviderName): ProviderConfig {
const config = PROVIDER_CONFIGS[providerName];
if (!config) {
throw new Error(`Unknown provider: ${providerName}`);
Expand Down

0 comments on commit 2cb37fa

Please sign in to comment.