AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

[Feature] Add NagaAI to the chat provider templates

Open zentixua opened this issue 3 weeks ago • 2 comments

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

  • [x] I have searched the Issue list for related features and confirmed this feature idea has never been proposed.
  • [x] The feature I am suggesting is related to AstrBot itself, not to a specific plugin.
  • [x] I have read and agree to the project's Code of Conduct.
  • [x] (Optional) I am willing to submit a PR to help implement this feature.

zentixua avatar Nov 07 '26 17:11 zentixua

@anka-afk ad,close

NayukiChiba avatar Nov 08 '26 01:11 NayukiChiba

Hi, thanks for your interest in AstrBot and for disclosing your affiliation.

Before opening an implementation PR or requesting a built-in provider entry: the right channel for commercial provider presets and built-in integrations is email. Please reach out to [email protected] first — that's where provider placement, product evaluation, and partnership/sponsorship inquiries are handled (https://astrbot.app/#/sponsors).

A few notes depending on the integration type:

  • Standard OpenAI / Anthropic-compatible LLM services: AstrBot already supports custom endpoints out of the box (Providers → Add Provider → OpenAI Compatible, fill in the API Base URL and API Key, and click Fetch Models). Because this works without code changes, built-in presets in default.py are treated as directory placements rather than technical features.
  • Custom built-in providers (e.g., web search, TTS, STT, or non-standard APIs): Each built-in integration adds ongoing maintenance surface across core tools, WebUI settings, i18n, documentation, and tests. Maintainers evaluate product fit, community demand, and long-term maintenance cost before accepting an implementation PR. Alternatively, you can publish the integration right away as a standalone AstrBot plugin or MCP server without waiting for core changes.

Thanks for understanding!

mantoujun6 avatar Nov 08 '26 02:11 mantoujun6