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

百度支持了openai格式兼容,希望能更换接入百度的方式 #1997

Open
5 tasks done
binjie09 opened this issue Dec 24, 2024 · 2 comments
Open
5 tasks done
Labels
enhancement New feature or request

Comments

@binjie09
Copy link

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,已确定现有版本无法满足需求
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

功能描述
百度支持了openai格式兼容,希望能更换接入百度的方式
文档如下 https://cloud.baidu.com/doc/WENXINWORKSHOP/s/2m3fihw8s
应用场景
用于调用function calling

@binjie09 binjie09 added the enhancement New feature or request label Dec 24, 2024
@Timk-ztls
Copy link

别的不说 BearerToken 最长有效期30天 要是更换的话还要定时更新

@binjie09
Copy link
Author

别的不说 BearerToken 最长有效期30天 要是更换的话还要定时更新

就是为了顺便解决这个问题,在one-api中配置apiKey|secretKey来中转百度,定期更新BearerToken,转一下百度的key变成永久的token,还能支持了function calling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants