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

Add QianFan model client #751

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mxsl-gr
Copy link
Contributor

@mxsl-gr mxsl-gr commented May 22, 2024

Hi, this PR is add QianFan model client and has passed unit testing.

I can provide my api_key if needed for testing

the PR content:

  • chat client
  • embedding client
  • spring starter
  • unit test
  • chat client documents
  • embedding client documents

For some reasons, products from OpenAI and others can't be directly used in Chinese Mainland.

QianFan is a big model platform, A variety of models are offered, among which ERNIE Speed and ERNIE Lite are fully free. Although their API design is quite strange.

the link: QianFan

If they can supported, it will further aid spring-ai to promotion in Chinese Mainland.

If necessary, I can take care of subsequent maintenance since I'm currently using them.

The DeepSeek PR is #702
The Moonshot PR is #596

@markpollack markpollack added this to the 1.0.0-M2 milestone May 24, 2024
@mxsl-gr mxsl-gr force-pushed the feature/model-client-qianfan branch from 24839d2 to e0a8177 Compare June 4, 2024 18:49
@mxsl-gr
Copy link
Contributor Author

mxsl-gr commented Jun 4, 2024

update content:

  • add unit test
  • add image client
  • add image documents
  • model client refactor
  • squash commits.

@mxsl-gr mxsl-gr force-pushed the feature/model-client-qianfan branch from e0a8177 to dbef1e9 Compare June 4, 2024 18:53
@mxsl-gr mxsl-gr force-pushed the feature/model-client-qianfan branch from dbef1e9 to e8bf2aa Compare June 5, 2024 02:49
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.

None yet

2 participants