[Feature] Add UberLLM chat completion provider template

未关闭 适合新手
#10,999 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
74/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
ai, backend

调研方向

从 astrbot/core/config/default.py 中的提供商模板入手,尤其检查 issue 中提到的 302.AI 条目,并查看 dashboard 如何注册提供商图标。使用建议的值添加 UberLLM 模板;如果 docs/zh 和 docs/en 中维护了提供商列表,也请更新这些列表。完成标准是用户可以选择 UberLLM,且文档中记录了该提供商;issue 没有指定要运行的测试文件。

由索引模型根据 Issue 内容生成。

描述

Feature Description

Add an UberLLM chat-completion provider template next to OpenRouter, 302.AI, SiliconFlow and PPIO in astrbot/core/config/default.py, so users pick it from the provider list instead of filling a custom OpenAI-compatible source by hand.

Disclosure: I work on UberLLM. The PR template asks that new features be discussed with the authors first, so I'm opening this issue before any PR.

Proposed template (same shape as the 302.AI one):

"UberLLM": {
    "id": "uberllm",
    "provider": "uberllm",
    "type": "openai_chat_completion",
    "provider_type": "chat_completion",
    "enable": True,
    "key": [],
    "api_base": "https://api.uberllm.dev/v1",
    "timeout": 120,
    "proxy": "",
    "custom_headers": {},
},

plus the provider icon in the dashboard and a line in docs/zh and docs/en where the provider list is documented, if you want those.

About the service: UberLLM is a hosted OpenAI-compatible API (https://api.uberllm.dev/v1) for GPT, Claude, Gemini, DeepSeek, GLM, Qwen, Kimi and other models, with streaming and tool calls on /v1/chat/completions and a model list at GET /v1/models. It also serves some uncensored models, which roleplay bot users ask for. It is paid: prepaid credit from $5 by card or PayPal, no free tier.

Use Case

A bot owner who wants several model families on one key, without running a gateway themselves, selects UberLLM, pastes the key and picks a model id.

Checklist
  • I have searched the Issue list for related features and confirmed this feature idea has never been proposed.
  • The feature I am suggesting is related to AstrBot itself, not to a specific plugin.
  • I have read and agree to the project's Code of Conduct.
  • (Optional) I am willing to submit a PR to help implement this feature.
主要语言
Python
星标
46.4k
派生
3.4k
平均合并
1 天 12 小时
30 天内合并 PR
118

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AstrBotDevs/AstrBot 的其他 Issue

查看 AstrBotDevs/AstrBot 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。