[Feature] Add NagaAI to the chat provider templates

未关闭 适合新手
#11,038 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

找到 xAI、DeepSeek、302.AI、TokenPony 和 Compshare 现有的聊天提供商模板,并遵循匹配的 Responses API 模板模式。添加带有指定 API base 和自定义 header 的 NagaAI 模板,然后在 docs/en 和 docs/zh 下添加其图标和设置页面。验证保存和获取模型时只返回聊天模型。

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

描述

enhancement
Feature Description

Add NagaAI (https://naga.ac) as a chat provider template, next to 302.AI, TokenPony and Compshare.

NagaAI is an OpenAI-compatible API (https://api.naga.ac/v1) that serves models from Anthropic, OpenAI, Google, DeepSeek, Zhipu, Moonshot and other labs with one key, on the Responses API as well as Chat Completions. Its GET /v1/models also lists image, speech and embedding models; with the header x-naga-supported-endpoint: responses it returns only the models served on Responses.

The change I would submit:

  • a NagaAI template of type openai_responses, like the xAI and DeepSeek Responses templates, with api_base https://api.naga.ac/v1 and that header in custom_headers, so "Save and Fetch Models" lists chat models only and no new adapter is needed;
  • an icon and a setup page in docs/en and docs/zh.

Disclosure: I work on NagaAI.

Use Case

Users who already have a NagaAI key pick NagaAI in Providers → Chat Completion instead of configuring "OpenAI Compatible" by hand, and the model list shows only chat models.

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 天 9 小时
30 天内合并 PR
123

环境准备

从这里开始

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

AstrBotDevs/AstrBot 的其他 Issue

查看 AstrBotDevs/AstrBot 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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