Skip to content

Commit

Permalink
🐛 fix: fix fetchOnClient functional for Moonshot (#4787)
Browse files Browse the repository at this point in the history
* 🐛 fix: fix `fetchOnClient` functional for Moonshot

* 🔨 chore: cleanup code
  • Loading branch information
hezhijie0327 authored Nov 25, 2024
1 parent 6b34f44 commit bef89a7
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/services/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,12 @@ export function initializeWithClientStore(provider: string, payload: any) {
};
break;
}
case ModelProvider.ZhiPu: {
break;
}
case ModelProvider.Google: {
providerOptions = {
baseURL: providerAuthPayload?.endpoint,
};
break;
}
case ModelProvider.Moonshot: {
break;
}
case ModelProvider.Bedrock: {
if (providerAuthPayload?.apiKey) {
providerOptions = {
Expand All @@ -142,39 +136,19 @@ export function initializeWithClientStore(provider: string, payload: any) {
};
break;
}
case ModelProvider.Qwen: {
break;
}

case ModelProvider.Anthropic: {
providerOptions = {
baseURL: providerAuthPayload?.endpoint,
};
break;
}

case ModelProvider.Mistral: {
break;
}
case ModelProvider.Groq: {
providerOptions = {
apikey: providerAuthPayload?.apiKey,
baseURL: providerAuthPayload?.endpoint,
};
break;
}
case ModelProvider.DeepSeek: {
break;
}
case ModelProvider.OpenRouter: {
break;
}
case ModelProvider.TogetherAI: {
break;
}
case ModelProvider.ZeroOne: {
break;
}
case ModelProvider.Cloudflare: {
providerOptions = {
apikey: providerAuthPayload?.apiKey,
Expand Down

0 comments on commit bef89a7

Please sign in to comment.