Skip to content

feat: add Astraflow provider support - #376

Open
ucloudnb666 wants to merge 1 commit into
TaskingAI:masterfrom
ucloudnb666:feat/astraflow-1778823787
Open

ucloudnb666 wants to merge 1 commit into
TaskingAI:masterfrom
ucloudnb666:feat/astraflow-1778823787

Conversation

@ucloudnb666

Copy link
Copy Markdown

Pull Request

PR Description

Adds Astraflow (by UCloud / 优刻得) as a new inference provider in TaskingAI.

Astraflow is an OpenAI-compatible AI model aggregation platform supporting 200+ models.

Linked Issue

N/A

Type of Change

  • Bug fix
  • New feature
  • Performance enhancement
  • Code refactor
  • Documentation update
  • Other, please describe:

Checklist

Before submitting this PR, please make sure:

  • I have read the CONTRIBUTING.md guidelines.
  • I have tested my changes locally to ensure they are effective.
  • I have updated the necessary documentation (if applicable).

Additional Information

Follows the exact same pattern as the siliconcloud provider. The following files were added:

  • inference/providers/astraflow/__init__.py — empty package init
  • inference/providers/astraflow/utils.py — header builder using ASTRAFLOW_API_KEY
  • inference/providers/astraflow/chat_completion.py — AstraflowChatCompletionModel class pointing to https://api-us-ca.umodelverse.ai/v1/chat/completions
  • inference/providers/astraflow/resources/provider.yml — provider metadata and credentials schema
  • inference/providers/astraflow/resources/models/wildcard.yml — wildcard model schema
  • inference/providers/astraflow/resources/i18n/en.yml — English i18n strings
  • inference/providers/astraflow/resources/icon.svg — provider icon (UCloud blue #0052D9)
  • inference/.env.example — added ASTRAFLOW_API_KEY= entry

No new dependencies are required — Astraflow is OpenAI-compatible and reuses the existing HTTP-based chat completion infrastructure.

This branch had an error being deployed

1 failed deployment
test — bb57cbd4 Deployed May 15, 2026 by ucloudnb666 via build-and-test #258
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