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

stream_options #1423

Open
2 tasks done
dq7532183 opened this issue May 11, 2024 · 6 comments
Open
2 tasks done

stream_options #1423

dq7532183 opened this issue May 11, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@dq7532183
Copy link

dq7532183 commented May 11, 2024

例行检查

  • [*] 我已确认目前没有类似 issue
  • [*] 我已确认我已升级到最新版本
  • [*] 我已完整查看过项目 README,尤其是常见问题部分
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
relay error (channel #1): Unrecognized request argument supplied: stream_options. Please contact us through an Azure support request at: https://go.microsoft.com/fwlink/?linkid=2213926 for further questions. (request id: 2024051109314182812859242806014)

复现步骤
2024-05-06 OpenAI add argument: stream_options

相关截图
Uploading image.png…

@dq7532183 dq7532183 added the bug Something isn't working label May 11, 2024
@qhhsy
Copy link

qhhsy commented May 14, 2024

+1

@LeoQuote
Copy link

按 azure 的文档, 确实没有这个参数, 之前设计的 azure 和 openai 是完全兼容的, 现在可能 azure 那边慢了, 如果 azure 那边更新慢, oneapi 这边估计只能用 adaptor 做兼容了 https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#completions

@VectorZhao
Copy link

+1

1 similar comment
@mengdahuang
Copy link

+1

@bbb3n
Copy link

bbb3n commented May 20, 2024

OpenAI ,5.6 才支持这个参数
https://platform.openai.com/docs/changelog/may-6th-2024

Azure ,这种 非关键性 的参数(除了超高并发中转为了节省 CPU 计算资源外,没多少系统会在意)
没个个把月 甚至一直不支持 我觉得都是可以理解的

但是这种参数(获取重要数据,更改后会造成严重后果的),不要由 one-api 来做处理
OpenAI 支持这个参数,原样传过来就行。Azure 不支持,报错传过来就行。
如果要为了 Azure 而 伪造 这个参数,我觉得是不应该的。一旦伪造的念头出现,那无须多言。

@LeoQuote
Copy link

伪造确实不是好的实现,我比较建议oneapi照着 azure的接口 spec 对传过来的请求进行改写,这样可以在请求时去掉一些azure 不支持的参数,oneapi会更健壮

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants