From 5b7c68bf9e3bf8d2fe5fed3c50792f3ea6e33107 Mon Sep 17 00:00:00 2001 From: lidongjie Date: Fri, 11 Oct 2024 18:02:23 +0800 Subject: [PATCH] =?UTF-8?q?add:=E6=B7=BB=E5=8A=A0mistralai=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model-runtime/model-providers/mistralai/mistralai.yaml | 2 +- gateway/apinto/profession.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ai-provider/model-runtime/model-providers/mistralai/mistralai.yaml b/ai-provider/model-runtime/model-providers/mistralai/mistralai.yaml index c2b5a5ce..e00a4821 100644 --- a/ai-provider/model-runtime/model-providers/mistralai/mistralai.yaml +++ b/ai-provider/model-runtime/model-providers/mistralai/mistralai.yaml @@ -29,4 +29,4 @@ provider_credential_schema: placeholder: zh_Hans: 在此输入您的 API Key en_US: Enter your API Key -address: https://api.openai.com \ No newline at end of file +address: https://api.mistral.ai \ No newline at end of file diff --git a/gateway/apinto/profession.go b/gateway/apinto/profession.go index 3a2552c5..664a482b 100644 --- a/gateway/apinto/profession.go +++ b/gateway/apinto/profession.go @@ -71,6 +71,10 @@ var dynamicResourceMap = map[string]Worker{ Profession: ProfessionAIProvider, Driver: "novita", }, + "mistralai": { + Profession: ProfessionAIProvider, + Driver: "mistralai", + }, } type Worker struct {