diff --git a/pkg/provider/modelmgr/requesters/302aichatcmpl.yaml b/pkg/provider/modelmgr/requesters/302aichatcmpl.yaml
index 5128f61d..4fc22be4 100644
--- a/pkg/provider/modelmgr/requesters/302aichatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/302aichatcmpl.yaml
@@ -8,24 +8,25 @@ metadata:
icon: 302ai.png
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://api.302.ai/v1"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://api.302.ai/v1
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
- - text-embedding
+ - llm
+ - text-embedding
+ provider_category: maas
execution:
python:
path: ./302aichatcmpl.py
- attr: AI302ChatCompletions
\ No newline at end of file
+ attr: AI302ChatCompletions
diff --git a/pkg/provider/modelmgr/requesters/anthropicmsgs.yaml b/pkg/provider/modelmgr/requesters/anthropicmsgs.yaml
index e3f745fb..0ef60d3e 100644
--- a/pkg/provider/modelmgr/requesters/anthropicmsgs.yaml
+++ b/pkg/provider/modelmgr/requesters/anthropicmsgs.yaml
@@ -8,22 +8,23 @@ metadata:
icon: anthropic.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://api.anthropic.com"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://api.anthropic.com
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
+ - llm
+ provider_category: manufacturer
execution:
python:
path: ./anthropicmsgs.py
diff --git a/pkg/provider/modelmgr/requesters/bailianchatcmpl.yaml b/pkg/provider/modelmgr/requesters/bailianchatcmpl.yaml
index 10aae30f..7c405232 100644
--- a/pkg/provider/modelmgr/requesters/bailianchatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/bailianchatcmpl.yaml
@@ -8,22 +8,23 @@ metadata:
icon: bailian.png
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://dashscope.aliyuncs.com/compatible-mode/v1"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://dashscope.aliyuncs.com/compatible-mode/v1
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
+ - llm
+ provider_category: maas
execution:
python:
path: ./bailianchatcmpl.py
diff --git a/pkg/provider/modelmgr/requesters/chatcmpl.yaml b/pkg/provider/modelmgr/requesters/chatcmpl.yaml
index ff0de6f9..4f588fb2 100644
--- a/pkg/provider/modelmgr/requesters/chatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/chatcmpl.yaml
@@ -8,24 +8,25 @@ metadata:
icon: openai.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://api.openai.com/v1"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://api.openai.com/v1
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
- - text-embedding
+ - llm
+ - text-embedding
+ provider_category: manufacturer
execution:
python:
path: ./chatcmpl.py
- attr: OpenAIChatCompletions
\ No newline at end of file
+ attr: OpenAIChatCompletions
diff --git a/pkg/provider/modelmgr/requesters/compsharechatcmpl.yaml b/pkg/provider/modelmgr/requesters/compsharechatcmpl.yaml
index 2b7f9a70..92fcafdc 100644
--- a/pkg/provider/modelmgr/requesters/compsharechatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/compsharechatcmpl.yaml
@@ -8,23 +8,24 @@ metadata:
icon: compshare.png
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://api.modelverse.cn/v1"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://api.modelverse.cn/v1
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
+ - llm
+ provider_category: maas
execution:
python:
path: ./compsharechatcmpl.py
- attr: CompShareChatCompletions
\ No newline at end of file
+ attr: CompShareChatCompletions
diff --git a/pkg/provider/modelmgr/requesters/deepseekchatcmpl.yaml b/pkg/provider/modelmgr/requesters/deepseekchatcmpl.yaml
index 9a22c5d9..8ef1fcf9 100644
--- a/pkg/provider/modelmgr/requesters/deepseekchatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/deepseekchatcmpl.yaml
@@ -8,23 +8,24 @@ metadata:
icon: deepseek.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://api.deepseek.com"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://api.deepseek.com
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
+ - llm
+ provider_category: manufacturer
execution:
python:
path: ./deepseekchatcmpl.py
- attr: DeepseekChatCompletions
\ No newline at end of file
+ attr: DeepseekChatCompletions
diff --git a/pkg/provider/modelmgr/requesters/geminichatcmpl.yaml b/pkg/provider/modelmgr/requesters/geminichatcmpl.yaml
index 73fca19c..fdebe9b9 100644
--- a/pkg/provider/modelmgr/requesters/geminichatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/geminichatcmpl.yaml
@@ -8,22 +8,23 @@ metadata:
icon: gemini.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://generativelanguage.googleapis.com/v1beta/openai"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://generativelanguage.googleapis.com/v1beta/openai
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
+ - llm
+ provider_category: manufacturer
execution:
python:
path: ./geminichatcmpl.py
diff --git a/pkg/provider/modelmgr/requesters/giteeaichatcmpl.yaml b/pkg/provider/modelmgr/requesters/giteeaichatcmpl.yaml
index d1aec26b..e818bd7a 100644
--- a/pkg/provider/modelmgr/requesters/giteeaichatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/giteeaichatcmpl.yaml
@@ -8,24 +8,25 @@ metadata:
icon: giteeai.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://ai.gitee.com/v1"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://ai.gitee.com/v1
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
- - text-embedding
+ - llm
+ - text-embedding
+ provider_category: maas
execution:
python:
path: ./giteeaichatcmpl.py
- attr: GiteeAIChatCompletions
\ No newline at end of file
+ attr: GiteeAIChatCompletions
diff --git a/pkg/provider/modelmgr/requesters/jiekouaichatcmpl.yaml b/pkg/provider/modelmgr/requesters/jiekouaichatcmpl.yaml
index 44bfba38..3c791d73 100644
--- a/pkg/provider/modelmgr/requesters/jiekouaichatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/jiekouaichatcmpl.yaml
@@ -8,31 +8,32 @@ metadata:
icon: jiekouai.png
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://api.jiekou.ai/openai"
- - name: args
- label:
- en_US: Args
- zh_Hans: 附加参数
- type: object
- required: true
- default: {}
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: int
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://api.jiekou.ai/openai
+ - name: args
+ label:
+ en_US: Args
+ zh_Hans: 附加参数
+ type: object
+ required: true
+ default: {}
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: int
+ required: true
+ default: 120
support_type:
- - llm
- - text-embedding
+ - llm
+ - text-embedding
+ provider_category: maas
execution:
python:
path: ./jiekouaichatcmpl.py
- attr: JieKouAIChatCompletions
\ No newline at end of file
+ attr: JieKouAIChatCompletions
diff --git a/pkg/provider/modelmgr/requesters/lmstudiochatcmpl.yaml b/pkg/provider/modelmgr/requesters/lmstudiochatcmpl.yaml
index 8c44ab39..81dc82cf 100644
--- a/pkg/provider/modelmgr/requesters/lmstudiochatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/lmstudiochatcmpl.yaml
@@ -8,23 +8,24 @@ metadata:
icon: lmstudio.webp
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "http://127.0.0.1:1234/v1"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: http://127.0.0.1:1234/v1
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
- - text-embedding
+ - llm
+ - text-embedding
+ provider_category: self-hosted
execution:
python:
path: ./lmstudiochatcmpl.py
diff --git a/pkg/provider/modelmgr/requesters/modelscopechatcmpl.yaml b/pkg/provider/modelmgr/requesters/modelscopechatcmpl.yaml
index a926d889..8d22002d 100644
--- a/pkg/provider/modelmgr/requesters/modelscopechatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/modelscopechatcmpl.yaml
@@ -8,29 +8,30 @@ metadata:
icon: modelscope.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://api-inference.modelscope.cn/v1"
- - name: args
- label:
- en_US: Args
- zh_Hans: 附加参数
- type: object
- required: true
- default: {}
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: int
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://api-inference.modelscope.cn/v1
+ - name: args
+ label:
+ en_US: Args
+ zh_Hans: 附加参数
+ type: object
+ required: true
+ default: {}
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: int
+ required: true
+ default: 120
support_type:
- - llm
+ - llm
+ provider_category: maas
execution:
python:
path: ./modelscopechatcmpl.py
diff --git a/pkg/provider/modelmgr/requesters/moonshotchatcmpl.yaml b/pkg/provider/modelmgr/requesters/moonshotchatcmpl.yaml
index e51fdfa5..7a7e3060 100644
--- a/pkg/provider/modelmgr/requesters/moonshotchatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/moonshotchatcmpl.yaml
@@ -8,22 +8,23 @@ metadata:
icon: moonshot.png
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://api.moonshot.ai/v1"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://api.moonshot.ai/v1
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
+ - llm
+ provider_category: manufacturer
execution:
python:
path: ./moonshotchatcmpl.py
diff --git a/pkg/provider/modelmgr/requesters/newapichatcmpl.yaml b/pkg/provider/modelmgr/requesters/newapichatcmpl.yaml
index 33573df5..e0f44e99 100644
--- a/pkg/provider/modelmgr/requesters/newapichatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/newapichatcmpl.yaml
@@ -8,24 +8,25 @@ metadata:
icon: newapi.png
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "http://localhost:3000/v1"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: http://localhost:3000/v1
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
- - text-embedding
+ - llm
+ - text-embedding
+ provider_category: maas
execution:
python:
path: ./newapichatcmpl.py
- attr: NewAPIChatCompletions
\ No newline at end of file
+ attr: NewAPIChatCompletions
diff --git a/pkg/provider/modelmgr/requesters/ollamachat.yaml b/pkg/provider/modelmgr/requesters/ollamachat.yaml
index f7cdeeba..a724f8f8 100644
--- a/pkg/provider/modelmgr/requesters/ollamachat.yaml
+++ b/pkg/provider/modelmgr/requesters/ollamachat.yaml
@@ -8,23 +8,24 @@ metadata:
icon: ollama.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "http://127.0.0.1:11434"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: http://127.0.0.1:11434
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
- - text-embedding
+ - llm
+ - text-embedding
+ provider_category: self-hosted
execution:
python:
path: ./ollamachat.py
diff --git a/pkg/provider/modelmgr/requesters/openrouterchatcmpl.yaml b/pkg/provider/modelmgr/requesters/openrouterchatcmpl.yaml
index 8c957dba..f1603200 100644
--- a/pkg/provider/modelmgr/requesters/openrouterchatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/openrouterchatcmpl.yaml
@@ -8,23 +8,24 @@ metadata:
icon: openrouter.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://openrouter.ai/api/v1"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://openrouter.ai/api/v1
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
- - text-embedding
+ - llm
+ - text-embedding
+ provider_category: maas
execution:
python:
path: ./openrouterchatcmpl.py
diff --git a/pkg/provider/modelmgr/requesters/ppiochatcmpl.yaml b/pkg/provider/modelmgr/requesters/ppiochatcmpl.yaml
index 90a81614..9e8eb1b0 100644
--- a/pkg/provider/modelmgr/requesters/ppiochatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/ppiochatcmpl.yaml
@@ -3,36 +3,37 @@ kind: LLMAPIRequester
metadata:
name: ppio-chat-completions
label:
- en_US: ppio
+ en_US: ppio
zh_Hans: 派欧云
icon: ppio.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://api.ppinfra.com/v3/openai"
- - name: args
- label:
- en_US: Args
- zh_Hans: 附加参数
- type: object
- required: true
- default: {}
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: int
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://api.ppinfra.com/v3/openai
+ - name: args
+ label:
+ en_US: Args
+ zh_Hans: 附加参数
+ type: object
+ required: true
+ default: {}
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: int
+ required: true
+ default: 120
support_type:
- - llm
- - text-embedding
+ - llm
+ - text-embedding
+ provider_category: maas
execution:
python:
path: ./ppiochatcmpl.py
- attr: PPIOChatCompletions
\ No newline at end of file
+ attr: PPIOChatCompletions
diff --git a/pkg/provider/modelmgr/requesters/qhaigcchatcmpl.yaml b/pkg/provider/modelmgr/requesters/qhaigcchatcmpl.yaml
index 2cd777d0..46ae1fad 100644
--- a/pkg/provider/modelmgr/requesters/qhaigcchatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/qhaigcchatcmpl.yaml
@@ -8,31 +8,32 @@ metadata:
icon: qhaigc.png
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://api.qhaigc.net/v1"
- - name: args
- label:
- en_US: Args
- zh_Hans: 附加参数
- type: object
- required: true
- default: {}
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: int
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://api.qhaigc.net/v1
+ - name: args
+ label:
+ en_US: Args
+ zh_Hans: 附加参数
+ type: object
+ required: true
+ default: {}
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: int
+ required: true
+ default: 120
support_type:
- - llm
- - text-embedding
+ - llm
+ - text-embedding
+ provider_category: maas
execution:
python:
path: ./qhaigcchatcmpl.py
- attr: QHAIGCChatCompletions
\ No newline at end of file
+ attr: QHAIGCChatCompletions
diff --git a/pkg/provider/modelmgr/requesters/shengsuanyun.yaml b/pkg/provider/modelmgr/requesters/shengsuanyun.yaml
index 6668b677..77cf682c 100644
--- a/pkg/provider/modelmgr/requesters/shengsuanyun.yaml
+++ b/pkg/provider/modelmgr/requesters/shengsuanyun.yaml
@@ -8,31 +8,32 @@ metadata:
icon: shengsuanyun.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://router.shengsuanyun.com/api/v1"
- - name: args
- label:
- en_US: Args
- zh_Hans: 附加参数
- type: object
- required: true
- default: {}
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: int
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://router.shengsuanyun.com/api/v1
+ - name: args
+ label:
+ en_US: Args
+ zh_Hans: 附加参数
+ type: object
+ required: true
+ default: {}
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: int
+ required: true
+ default: 120
support_type:
- - llm
- - text-embedding
+ - llm
+ - text-embedding
+ provider_category: maas
execution:
python:
path: ./shengsuanyun.py
- attr: ShengSuanYunChatCompletions
\ No newline at end of file
+ attr: ShengSuanYunChatCompletions
diff --git a/pkg/provider/modelmgr/requesters/siliconflowchatcmpl.yaml b/pkg/provider/modelmgr/requesters/siliconflowchatcmpl.yaml
index 25a20653..28d3314a 100644
--- a/pkg/provider/modelmgr/requesters/siliconflowchatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/siliconflowchatcmpl.yaml
@@ -8,23 +8,24 @@ metadata:
icon: siliconflow.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://api.siliconflow.cn/v1"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://api.siliconflow.cn/v1
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
- - text-embedding
+ - llm
+ - text-embedding
+ provider_category: maas
execution:
python:
path: ./siliconflowchatcmpl.py
diff --git a/pkg/provider/modelmgr/requesters/tokenpony.yaml b/pkg/provider/modelmgr/requesters/tokenpony.yaml
index 363583b0..f160bdea 100644
--- a/pkg/provider/modelmgr/requesters/tokenpony.yaml
+++ b/pkg/provider/modelmgr/requesters/tokenpony.yaml
@@ -8,24 +8,25 @@ metadata:
icon: tokenpony.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://api.tokenpony.cn/v1"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://api.tokenpony.cn/v1
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
- - text-embedding
+ - llm
+ - text-embedding
+ provider_category: maas
execution:
python:
path: ./tokenponychatcmpl.py
- attr: TokenPonyChatCompletions
\ No newline at end of file
+ attr: TokenPonyChatCompletions
diff --git a/pkg/provider/modelmgr/requesters/volcarkchatcmpl.yaml b/pkg/provider/modelmgr/requesters/volcarkchatcmpl.yaml
index c711ef2d..e5c82657 100644
--- a/pkg/provider/modelmgr/requesters/volcarkchatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/volcarkchatcmpl.yaml
@@ -8,22 +8,23 @@ metadata:
icon: volcark.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://ark.cn-beijing.volces.com/api/v3"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://ark.cn-beijing.volces.com/api/v3
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
+ - llm
+ provider_category: maas
execution:
python:
path: ./volcarkchatcmpl.py
diff --git a/pkg/provider/modelmgr/requesters/xaichatcmpl.yaml b/pkg/provider/modelmgr/requesters/xaichatcmpl.yaml
index 2769a402..2e721d70 100644
--- a/pkg/provider/modelmgr/requesters/xaichatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/xaichatcmpl.yaml
@@ -8,22 +8,23 @@ metadata:
icon: xai.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://api.x.ai/v1"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://api.x.ai/v1
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
+ - llm
+ provider_category: manufacturer
execution:
python:
path: ./xaichatcmpl.py
diff --git a/pkg/provider/modelmgr/requesters/zhipuaichatcmpl.yaml b/pkg/provider/modelmgr/requesters/zhipuaichatcmpl.yaml
index 34539d95..a4ebb2ec 100644
--- a/pkg/provider/modelmgr/requesters/zhipuaichatcmpl.yaml
+++ b/pkg/provider/modelmgr/requesters/zhipuaichatcmpl.yaml
@@ -8,22 +8,23 @@ metadata:
icon: zhipuai.svg
spec:
config:
- - name: base_url
- label:
- en_US: Base URL
- zh_Hans: 基础 URL
- type: string
- required: true
- default: "https://open.bigmodel.cn/api/paas/v4"
- - name: timeout
- label:
- en_US: Timeout
- zh_Hans: 超时时间
- type: integer
- required: true
- default: 120
+ - name: base_url
+ label:
+ en_US: Base URL
+ zh_Hans: 基础 URL
+ type: string
+ required: true
+ default: https://open.bigmodel.cn/api/paas/v4
+ - name: timeout
+ label:
+ en_US: Timeout
+ zh_Hans: 超时时间
+ type: integer
+ required: true
+ default: 120
support_type:
- - llm
+ - llm
+ provider_category: manufacturer
execution:
python:
path: ./zhipuaichatcmpl.py
diff --git a/web/src/app/home/models/component/ChooseRequesterEntity.ts b/web/src/app/home/models/component/ChooseRequesterEntity.ts
index 5728c1ce..e2113af4 100644
--- a/web/src/app/home/models/component/ChooseRequesterEntity.ts
+++ b/web/src/app/home/models/component/ChooseRequesterEntity.ts
@@ -1,4 +1,5 @@
export interface IChooseRequesterEntity {
label: string;
value: string;
+ provider_category?: string;
}
diff --git a/web/src/app/home/models/component/embedding-form/EmbeddingForm.tsx b/web/src/app/home/models/component/embedding-form/EmbeddingForm.tsx
index 7d355c0c..ec9cac6c 100644
--- a/web/src/app/home/models/component/embedding-form/EmbeddingForm.tsx
+++ b/web/src/app/home/models/component/embedding-form/EmbeddingForm.tsx
@@ -34,6 +34,7 @@ import {
SelectContent,
SelectGroup,
SelectItem,
+ SelectLabel,
SelectTrigger,
SelectValue,
} from '@/components/ui/select';
@@ -186,6 +187,7 @@ export default function EmbeddingForm({
return {
label: extractI18nObject(item.label),
value: item.name,
+ provider_category: item.spec.provider_category || 'manufacturer',
};
}),
);
@@ -425,11 +427,44 @@ export default function EmbeddingForm({
- {requesterNameList.map((item) => (
-
- {item.label}
-
- ))}
+
+ {t('models.modelManufacturer')}
+
+ {requesterNameList
+ .filter(
+ (item) =>
+ item.provider_category === 'manufacturer',
+ )
+ .map((item) => (
+
+ {item.label}
+
+ ))}
+
+
+
+ {t('models.aggregationPlatform')}
+
+ {requesterNameList
+ .filter((item) => item.provider_category === 'maas')
+ .map((item) => (
+
+ {item.label}
+
+ ))}
+
+
+ {t('models.selfDeployed')}
+ {requesterNameList
+ .filter(
+ (item) =>
+ item.provider_category === 'self-hosted',
+ )
+ .map((item) => (
+
+ {item.label}
+
+ ))}
diff --git a/web/src/app/home/models/component/llm-form/LLMForm.tsx b/web/src/app/home/models/component/llm-form/LLMForm.tsx
index c10f1e94..a20d6745 100644
--- a/web/src/app/home/models/component/llm-form/LLMForm.tsx
+++ b/web/src/app/home/models/component/llm-form/LLMForm.tsx
@@ -34,6 +34,7 @@ import {
SelectContent,
SelectGroup,
SelectItem,
+ SelectLabel,
SelectTrigger,
SelectValue,
} from '@/components/ui/select';
@@ -203,6 +204,7 @@ export default function LLMForm({
return {
label: extractI18nObject(item.label),
value: item.name,
+ provider_category: item.spec.provider_category || 'manufacturer',
};
}),
);
@@ -440,11 +442,44 @@ export default function LLMForm({
- {requesterNameList.map((item) => (
-
- {item.label}
-
- ))}
+
+ {t('models.modelManufacturer')}
+
+ {requesterNameList
+ .filter(
+ (item) =>
+ item.provider_category === 'manufacturer',
+ )
+ .map((item) => (
+
+ {item.label}
+
+ ))}
+
+
+
+ {t('models.aggregationPlatform')}
+
+ {requesterNameList
+ .filter((item) => item.provider_category === 'maas')
+ .map((item) => (
+
+ {item.label}
+
+ ))}
+
+
+ {t('models.selfDeployed')}
+ {requesterNameList
+ .filter(
+ (item) =>
+ item.provider_category === 'self-hosted',
+ )
+ .map((item) => (
+
+ {item.label}
+
+ ))}
diff --git a/web/src/app/infra/entities/api/index.ts b/web/src/app/infra/entities/api/index.ts
index 152828fd..dbe7b145 100644
--- a/web/src/app/infra/entities/api/index.ts
+++ b/web/src/app/infra/entities/api/index.ts
@@ -29,6 +29,7 @@ export interface Requester {
icon?: string;
spec: {
config: IDynamicFormItemSchema[];
+ provider_category: string;
};
}
diff --git a/web/src/i18n/locales/en-US.ts b/web/src/i18n/locales/en-US.ts
index cf21c231..9a88837d 100644
--- a/web/src/i18n/locales/en-US.ts
+++ b/web/src/i18n/locales/en-US.ts
@@ -141,6 +141,9 @@ const enUS = {
selectModelProvider: 'Select Model Provider',
modelProviderDescription:
'Please fill in the model name provided by the supplier',
+ modelManufacturer: 'Model Manufacturer',
+ aggregationPlatform: 'Aggregation Platform',
+ selfDeployed: 'Self-deployed',
selectModel: 'Select Model',
testSuccess: 'Test successful',
testError: 'Test failed, please check your model configuration',
diff --git a/web/src/i18n/locales/ja-JP.ts b/web/src/i18n/locales/ja-JP.ts
index 3be362c3..0c02b7c3 100644
--- a/web/src/i18n/locales/ja-JP.ts
+++ b/web/src/i18n/locales/ja-JP.ts
@@ -144,6 +144,9 @@ const jaJP = {
'リクエストボディに追加されるパラメータ(max_tokens、temperature、top_p など)',
selectModelProvider: 'モデルプロバイダーを選択',
modelProviderDescription: 'プロバイダーが提供するモデル名をご入力ください',
+ modelManufacturer: 'モデルメーカー',
+ aggregationPlatform: 'アグリゲーションプラットフォーム',
+ selfDeployed: 'セルフデプロイ',
selectModel: 'モデルを選択してください',
testSuccess: 'テストに成功しました',
testError: 'テストに失敗しました。モデル設定を確認してください',
diff --git a/web/src/i18n/locales/zh-Hans.ts b/web/src/i18n/locales/zh-Hans.ts
index 54cbb2eb..f41db5d2 100644
--- a/web/src/i18n/locales/zh-Hans.ts
+++ b/web/src/i18n/locales/zh-Hans.ts
@@ -138,6 +138,9 @@ const zhHans = {
boolean: '布尔值',
selectModelProvider: '选择模型供应商',
modelProviderDescription: '请填写供应商向您提供的模型名称',
+ modelManufacturer: '模型厂商',
+ aggregationPlatform: '中转平台',
+ selfDeployed: '自部署',
selectModel: '请选择模型',
testSuccess: '测试成功',
testError: '测试失败,请检查模型配置',
diff --git a/web/src/i18n/locales/zh-Hant.ts b/web/src/i18n/locales/zh-Hant.ts
index a0060e5f..e7203803 100644
--- a/web/src/i18n/locales/zh-Hant.ts
+++ b/web/src/i18n/locales/zh-Hant.ts
@@ -138,6 +138,9 @@ const zhHant = {
boolean: '布林值',
selectModelProvider: '選擇模型供應商',
modelProviderDescription: '請填寫供應商向您提供的模型名稱',
+ modelManufacturer: '模型廠商',
+ aggregationPlatform: '中轉平台',
+ selfDeployed: '自部署',
selectModel: '請選擇模型',
testSuccess: '測試成功',
testError: '測試失敗,請檢查模型設定',