feat: add Astraflow provider support - #376
Open
ucloudnb666 wants to merge 1 commit into
Open
ucloudnb666 wants to merge 1 commit into
ucloudnb666 wants to merge 1 commit into
Conversation
Signed-off-by: ucloudnb666 <[email protected]>
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Checklist
Before submitting this PR, please make sure:
Additional Information
Follows the exact same pattern as the
siliconcloudprovider. The following files were added:inference/providers/astraflow/__init__.py— empty package initinference/providers/astraflow/utils.py— header builder usingASTRAFLOW_API_KEYinference/providers/astraflow/chat_completion.py—AstraflowChatCompletionModelclass pointing tohttps://api-us-ca.umodelverse.ai/v1/chat/completionsinference/providers/astraflow/resources/provider.yml— provider metadata and credentials schemainference/providers/astraflow/resources/models/wildcard.yml— wildcard model schemainference/providers/astraflow/resources/i18n/en.yml— English i18n stringsinference/providers/astraflow/resources/icon.svg— provider icon (UCloud blue#0052D9)inference/.env.example— addedASTRAFLOW_API_KEY=entryNo new dependencies are required — Astraflow is OpenAI-compatible and reuses the existing HTTP-based chat completion infrastructure.