Skip to content

feat: add Astraflow provider support#80

Open
ucloudnb666 wants to merge 1 commit into
calesthio:mainfrom
ucloudnb666:feat/astraflow-1778824762
Open

feat: add Astraflow provider support#80
ucloudnb666 wants to merge 1 commit into
calesthio:mainfrom
ucloudnb666:feat/astraflow-1778824762

Conversation

@ucloudnb666

Copy link
Copy Markdown

Summary

Adds Astraflow (by UCloud / 优刻得) as a supported LLM provider.

Astraflow is an OpenAI-compatible AI model aggregation platform supporting 200+ models, available via a global endpoint and a China endpoint.

Changes

  • config.yaml — adds astraflow and astraflow-cn to the llm.provider comment so users know these are valid choices
  • .env.example — documents ASTRAFLOW_API_KEY (global) and ASTRAFLOW_CN_API_KEY (China) with sign-up links
  • lib/providers/__init__.py — implements get_provider_config() and is_openai_compatible() helpers that route all supported providers (including the new Astraflow entries) to their correct base_url / API-key env var

Provider details

Variant Env var Base URL
astraflow (global) ASTRAFLOW_API_KEY https://api-us-ca.umodelverse.ai/v1
astraflow-cn (China) ASTRAFLOW_CN_API_KEY https://api.modelverse.cn/v1

Because Astraflow is fully OpenAI-compatible, no new SDK is required — only base_url + api_key need to be set, exactly like OpenRouter or Mistral.

Signed-off-by: ucloudnb666 <ucloudnb666@users.noreply.github.com>
@ucloudnb666 ucloudnb666 requested a review from calesthio as a code owner May 15, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant