From e5f0ffd960c4a5bc76b03f41cda6fb8514dfb6c5 Mon Sep 17 00:00:00 2001 From: hedging8563 <45883076+hedging8563@users.noreply.github.com> Date: Wed, 15 Jul 2026 18:10:05 +0800 Subject: [PATCH] feat(provider): add TokenLab requester (#2326) --- .../provider/modelmgr/requesters/tokenlab.svg | 5 ++++ .../modelmgr/requesters/tokenlabchatcmpl.yaml | 29 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/langbot/pkg/provider/modelmgr/requesters/tokenlab.svg create mode 100644 src/langbot/pkg/provider/modelmgr/requesters/tokenlabchatcmpl.yaml diff --git a/src/langbot/pkg/provider/modelmgr/requesters/tokenlab.svg b/src/langbot/pkg/provider/modelmgr/requesters/tokenlab.svg new file mode 100644 index 000000000..2308dca3b --- /dev/null +++ b/src/langbot/pkg/provider/modelmgr/requesters/tokenlab.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/langbot/pkg/provider/modelmgr/requesters/tokenlabchatcmpl.yaml b/src/langbot/pkg/provider/modelmgr/requesters/tokenlabchatcmpl.yaml new file mode 100644 index 000000000..9eb2c2e3d --- /dev/null +++ b/src/langbot/pkg/provider/modelmgr/requesters/tokenlabchatcmpl.yaml @@ -0,0 +1,29 @@ +apiVersion: v1 +kind: LLMAPIRequester +metadata: + name: tokenlab-chat-completions + label: + en_US: TokenLab + zh_Hans: TokenLab + icon: tokenlab.svg +spec: + litellm_provider: openai + config: + - name: base_url + label: + en_US: Base URL + zh_Hans: 基础 URL + type: string + required: true + default: https://api.tokenlab.sh/v1 + - name: timeout + label: + en_US: Timeout + zh_Hans: 超时时间 + type: integer + required: true + default: 120 + alias: "tokenlab TokenLab gpt claude gemini deepseek qwen kimi minimax glm grok openai-compatible" + support_type: + - llm + provider_category: maas