feat: Add two more providers: Ali Bailian(Qwen) and Volengine(Doubao, Bytedance) #747
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.
Relates to:
No specific issue or ticket linked
Risks
Low
Background
What does this PR do?
This PR introduces the as two new model providers to the Eliza project.
The addition includes configuration setup, integration into the existing provider framework, and necessary type definitions.
What kind of change is this?
Configuration:
.env.example
:Added
ALI_BAILIAN_API_KEY
andVOLENGINE_API_KEY
variables to facilitate configuration of the Ali Bailian and VolEngine Ark.Providers Integration:
agent/src/index.ts
,packages/core/src/models.ts
,packages/core/src/types.ts
Implementation:
packages/core/src/generation.ts
:The API of these two providers are both OpenAPI compatible.
Why are we doing this? Any context or related work?
Provide more providers and their models to meet the diverse needs of developers.
Aliyun Bailian - Aliyun is the creator of Qwen models, and Bailian provides more advanced versions of
qwen
models.VolEngine Ark - VolEngine is the ByteDance's cloud service, it provides the
doubao
models' services.Documentation changes needed?
ModelProviderName
Updated, so some documents related to thisEnum
need to be changed.Testing
Where should a reviewer start?
Register at Ali Bailian and VolEngine Ark
Get the API Key and test.
Detailed testing steps
None, automated tests are fine.
Discord username
bt.wood