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

AI 代理 Wasm 插件对接百度文心一言切换到 v2 API #1504

Closed
johnlanni opened this issue Nov 12, 2024 · 0 comments · Fixed by #1527
Closed

AI 代理 Wasm 插件对接百度文心一言切换到 v2 API #1504

johnlanni opened this issue Nov 12, 2024 · 0 comments · Fixed by #1527

Comments

@johnlanni
Copy link
Collaborator

Why do you need it?

切换到 v2 api 的好处:

  1. v1 api 的 access token 有固定 30 天过期时间,v2 api 的 bearer token 用户可以配置没有过期时间
  2. 和 openai 协议兼容,逻辑更简单

Other related information

当前的实现:https://github.com/alibaba/higress/blob/main/plugins/wasm-go/extensions/ai-proxy/provider/baidu.go
v2 API 的认证:https://cloud.baidu.com/doc/WENXINWORKSHOP/s/Um2wxbaps
v2 API 的协议:https://cloud.baidu.com/doc/WENXINWORKSHOP/s/Zm2ycv77m

@github-project-automation github-project-automation bot moved this to Todo in Higress Nov 12, 2024
@cr7258 cr7258 self-assigned this Nov 12, 2024
@johnlanni johnlanni removed the help wanted Extra attention is needed label Nov 12, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Higress Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants