Skip to content

feat: add Astraflow provider support#2473

Open
ucloudnb666 wants to merge 1 commit into
arc53:mainfrom
ucloudnb666:feat/astraflow-1778824039
Open

feat: add Astraflow provider support#2473
ucloudnb666 wants to merge 1 commit into
arc53:mainfrom
ucloudnb666:feat/astraflow-1778824039

Conversation

@ucloudnb666
Copy link
Copy Markdown

  • What kind of change does this PR introduce? Feature — adds Astraflow (by UCloud / 优刻得) as a supported LLM provider.

  • Why was this change needed? Astraflow is an OpenAI-compatible AI model aggregation platform supporting 200+ models. Adding it expands the range of available LLM providers. Two endpoints are supported: Global (https://api-us-ca.umodelverse.ai/v1, env var ASTRAFLOW_API_KEY) and China (https://api.modelverse.cn/v1, env var ASTRAFLOW_CN_API_KEY).

  • Other information:

    • New files: application/llm/astraflow.py (LLM classes AstraflowLLM / AstraflowCNLLM, subclassing OpenAILLM with custom base_url) and application/llm/providers/astraflow.py (provider plugin following the Novita pattern).
    • Modified files: application/core/settings.py (added ASTRAFLOW_API_KEY / ASTRAFLOW_CN_API_KEY fields and validator entries), application/llm/providers/__init__.py (imports and registers both providers in ALL_PROVIDERS), .env-template (documents the two new env vars).
    • No new dependencies — reuses the existing openai SDK since Astraflow is OpenAI-compatible.

Signed-off-by: ucloudnb666 <ucloudnb666@users.noreply.github.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 15, 2026

@ucloudnb666 is attempting to deploy a commit to the Arc53 Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added repo application Application labels May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant