From b002392c21b33b1ef252d32bafe519e6fe287d84 Mon Sep 17 00:00:00 2001 From: lidongjie Date: Fri, 11 Oct 2024 14:04:49 +0800 Subject: [PATCH 1/9] =?UTF-8?q?add:=E6=B7=BB=E5=8A=A0=E9=80=9A=E4=B9=89?= =?UTF-8?q?=E5=8D=83=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai-provider/model-runtime/model-providers/tongyi/tongyi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai-provider/model-runtime/model-providers/tongyi/tongyi.yaml b/ai-provider/model-runtime/model-providers/tongyi/tongyi.yaml index 6b2f9192..1281e46e 100644 --- a/ai-provider/model-runtime/model-providers/tongyi/tongyi.yaml +++ b/ai-provider/model-runtime/model-providers/tongyi/tongyi.yaml @@ -48,4 +48,4 @@ model_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://dashscope.aliyuncs.com/compatible-mode \ No newline at end of file From 17623863367fffbef39c52d91207f60f9759834c Mon Sep 17 00:00:00 2001 From: lidongjie Date: Fri, 11 Oct 2024 14:13:25 +0800 Subject: [PATCH 2/9] =?UTF-8?q?add:=E6=B7=BB=E5=8A=A0=E9=80=9A=E4=B9=89?= =?UTF-8?q?=E5=8D=83=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gateway/apinto/profession.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gateway/apinto/profession.go b/gateway/apinto/profession.go index 9bc21beb..274ac61c 100644 --- a/gateway/apinto/profession.go +++ b/gateway/apinto/profession.go @@ -55,6 +55,10 @@ var dynamicResourceMap = map[string]Worker{ Profession: ProfessionAIProvider, Driver: "moonshot", }, + "tongyi": { + Profession: ProfessionAIProvider, + Driver: "tongyi", + }, } type Worker struct { From 864591a37a29461b18caa4e6bfa05c6a5bdd0366 Mon Sep 17 00:00:00 2001 From: lidongjie Date: Fri, 11 Oct 2024 14:42:58 +0800 Subject: [PATCH 3/9] =?UTF-8?q?fix:=E9=80=9A=E4=B9=89=E5=8D=83=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai-provider/model-runtime/model-providers/tongyi/tongyi.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/ai-provider/model-runtime/model-providers/tongyi/tongyi.yaml b/ai-provider/model-runtime/model-providers/tongyi/tongyi.yaml index 1281e46e..10dc3664 100644 --- a/ai-provider/model-runtime/model-providers/tongyi/tongyi.yaml +++ b/ai-provider/model-runtime/model-providers/tongyi/tongyi.yaml @@ -16,8 +16,6 @@ help: en_US: https://bailian.console.aliyun.com/?apiKey=1#/api-key supported_model_types: - llm - - tts - - text-embedding configurate_methods: - predefined-model - customizable-model From 80f8b9163156ab41d66913e76b2e79d45c7731c2 Mon Sep 17 00:00:00 2001 From: lidongjie Date: Fri, 11 Oct 2024 16:02:15 +0800 Subject: [PATCH 4/9] modify:tongyi host --- .../model-providers/tongyi/tongyi.yaml | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/ai-provider/model-runtime/model-providers/tongyi/tongyi.yaml b/ai-provider/model-runtime/model-providers/tongyi/tongyi.yaml index 10dc3664..da535348 100644 --- a/ai-provider/model-runtime/model-providers/tongyi/tongyi.yaml +++ b/ai-provider/model-runtime/model-providers/tongyi/tongyi.yaml @@ -29,21 +29,4 @@ provider_credential_schema: placeholder: zh_Hans: 在此输入您的 API Key en_US: Enter your API Key -model_credential_schema: - model: - label: - en_US: Model Name - zh_Hans: 模型名称 - placeholder: - en_US: Enter full model name - zh_Hans: 输入模型全称 - credential_form_schemas: - - variable: dashscope_api_key - required: true - label: - en_US: API Key - type: secret-input - placeholder: - zh_Hans: 在此输入您的 API Key - en_US: Enter your API Key -address: https://dashscope.aliyuncs.com/compatible-mode \ No newline at end of file +address: https://dashscope.aliyuncs.com \ No newline at end of file From 6991275d542ebf410f874541a0b5d562473e136f Mon Sep 17 00:00:00 2001 From: lidongjie Date: Fri, 11 Oct 2024 16:28:29 +0800 Subject: [PATCH 5/9] =?UTF-8?q?add:=E6=99=BA=E8=B0=B1ai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model-runtime/model-providers/zhipuai/zhipuai.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ai-provider/model-runtime/model-providers/zhipuai/zhipuai.yaml b/ai-provider/model-runtime/model-providers/zhipuai/zhipuai.yaml index 2c3ba4c5..3a33ee45 100644 --- a/ai-provider/model-runtime/model-providers/zhipuai/zhipuai.yaml +++ b/ai-provider/model-runtime/model-providers/zhipuai/zhipuai.yaml @@ -21,7 +21,7 @@ configurate_methods: - predefined-model provider_credential_schema: credential_form_schemas: - - variable: api_key + - variable: zhipuai_api_key label: en_US: APIKey type: secret-input @@ -29,4 +29,4 @@ provider_credential_schema: placeholder: zh_Hans: 在此输入您的 APIKey en_US: Enter your APIKey -address: https://api.openai.com \ No newline at end of file +address: https://open.bigmodel.cn \ No newline at end of file From e2761a3e03ab4daf97fa1d82b5113ee6c6a754b6 Mon Sep 17 00:00:00 2001 From: lidongjie Date: Fri, 11 Oct 2024 17:00:11 +0800 Subject: [PATCH 6/9] =?UTF-8?q?add:=E6=99=BA=E8=B0=B1ai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gateway/apinto/profession.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gateway/apinto/profession.go b/gateway/apinto/profession.go index 274ac61c..4152879c 100644 --- a/gateway/apinto/profession.go +++ b/gateway/apinto/profession.go @@ -59,6 +59,10 @@ var dynamicResourceMap = map[string]Worker{ Profession: ProfessionAIProvider, Driver: "tongyi", }, + "zhipuai": { + Profession: ProfessionAIProvider, + Driver: "zhipuai", + }, } type Worker struct { From 8568957afae2570e2ac963d742d32354e1ca100f Mon Sep 17 00:00:00 2001 From: lidongjie Date: Fri, 11 Oct 2024 17:16:16 +0800 Subject: [PATCH 7/9] =?UTF-8?q?add:=E6=B7=BB=E5=8A=A0fireworks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model-runtime/model-providers/fireworks/fireworks.yaml | 2 +- gateway/apinto/profession.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ai-provider/model-runtime/model-providers/fireworks/fireworks.yaml b/ai-provider/model-runtime/model-providers/fireworks/fireworks.yaml index fcfba8e4..be734ac4 100644 --- a/ai-provider/model-runtime/model-providers/fireworks/fireworks.yaml +++ b/ai-provider/model-runtime/model-providers/fireworks/fireworks.yaml @@ -28,4 +28,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.fireworks.ai \ No newline at end of file diff --git a/gateway/apinto/profession.go b/gateway/apinto/profession.go index 4152879c..506346c4 100644 --- a/gateway/apinto/profession.go +++ b/gateway/apinto/profession.go @@ -63,6 +63,10 @@ var dynamicResourceMap = map[string]Worker{ Profession: ProfessionAIProvider, Driver: "zhipuai", }, + "fireworks": { + Profession: ProfessionAIProvider, + Driver: "fireworks", + }, } type Worker struct { From 1bbc1f2d86a2ac73e89022a7ad38c9b5ebf1ae5a Mon Sep 17 00:00:00 2001 From: lidongjie Date: Fri, 11 Oct 2024 17:41:02 +0800 Subject: [PATCH 8/9] =?UTF-8?q?add:=E6=B7=BB=E5=8A=A0novita=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 --- ai-provider/model-runtime/model-providers/novita/novita.yaml | 2 +- gateway/apinto/profession.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ai-provider/model-runtime/model-providers/novita/novita.yaml b/ai-provider/model-runtime/model-providers/novita/novita.yaml index 41a6c5db..852c3422 100644 --- a/ai-provider/model-runtime/model-providers/novita/novita.yaml +++ b/ai-provider/model-runtime/model-providers/novita/novita.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.novita.ai \ No newline at end of file diff --git a/gateway/apinto/profession.go b/gateway/apinto/profession.go index 506346c4..3a2552c5 100644 --- a/gateway/apinto/profession.go +++ b/gateway/apinto/profession.go @@ -67,6 +67,10 @@ var dynamicResourceMap = map[string]Worker{ Profession: ProfessionAIProvider, Driver: "fireworks", }, + "novita": { + Profession: ProfessionAIProvider, + Driver: "novita", + }, } type Worker struct { From 5b7c68bf9e3bf8d2fe5fed3c50792f3ea6e33107 Mon Sep 17 00:00:00 2001 From: lidongjie Date: Fri, 11 Oct 2024 18:02:23 +0800 Subject: [PATCH 9/9] =?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 {