mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-07 22:36:02 +00:00
* Initial plan * Add provider category field to requesters and implement grouped dropdown Co-authored-by: RockChinQ <45992437+RockChinQ@users.noreply.github.com> * Fix TypeScript type and prettier formatting issues Co-authored-by: RockChinQ <45992437+RockChinQ@users.noreply.github.com> * Rename provider categories: aggregator→maas, self_deployed→self-hosted Co-authored-by: RockChinQ <45992437+RockChinQ@users.noreply.github.com> * Move provider_category from metadata to spec section Co-authored-by: RockChinQ <45992437+RockChinQ@users.noreply.github.com> * perf: adjust category * perf: adjust data structure --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: RockChinQ <45992437+RockChinQ@users.noreply.github.com> Co-authored-by: Junyan Qin <rockchinq@gmail.com>
39 lines
738 B
YAML
39 lines
738 B
YAML
apiVersion: v1
|
|
kind: LLMAPIRequester
|
|
metadata:
|
|
name: modelscope-chat-completions
|
|
label:
|
|
en_US: ModelScope
|
|
zh_Hans: 魔搭社区
|
|
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
|
|
support_type:
|
|
- llm
|
|
provider_category: maas
|
|
execution:
|
|
python:
|
|
path: ./modelscopechatcmpl.py
|
|
attr: ModelScopeChatCompletions
|