Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add two more providers: Ali Bailian(Qwen) and Volengine(Doubao, Bytedance) #747

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

btspoony
Copy link
Contributor

@btspoony btspoony commented Dec 1, 2024

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 and VOLENGINE_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 this Enum 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

@lalalune lalalune merged commit cbd77e5 into elizaOS:main Dec 2, 2024
@btspoony btspoony deleted the tbh/more-providers branch December 2, 2024 05:53
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.

2 participants