kimi support function call

This commit is contained in:
lloydzhou
2024-09-02 21:55:17 +08:00
parent 801b62543a
commit 078305f5ac
2 changed files with 71 additions and 109 deletions

View File

@@ -273,7 +273,11 @@ export function isDalle3(model: string) {
}
export function showPlugins(provider: ServiceProvider, model: string) {
if (provider == ServiceProvider.OpenAI || provider == ServiceProvider.Azure) {
if (
provider == ServiceProvider.OpenAI ||
provider == ServiceProvider.Azure ||
provider == ServiceProvider.Moonshot
) {
return true;
}
if (provider == ServiceProvider.Anthropic && !model.includes("claude-2")) {