lobehub/lobe-chat

[Bug] Unrecognized request argument supplied: tools #1118

binary-yuki posted onGitHub

💻 Operating System

macOS

📦 Environment

Vercel / Zeabur / Sealos

🌐 Browser

Chrome

🐛 Bug Description

Hi there,

为了兼容azure 和 openai 的api我采用了一个js 脚本用于转换azure请求格式为正常的openai请求格式达到兼容的效果

但是如果通过oneapi中转会出现error:

{
  "endpoint": "https://ai.si****ax.tech/v1",
  "error": {
    "message": "Unrecognized request argument supplied: tools (request id: 20240121111812191932400LDhGk8pV)",
    "type": "invalid_request_error",
    "param": "",
    "code": null
  }
}

如果不通过oneapi会出现一只加载中的情况 无任何输出

不知是否与#923 相关?

🚦 Expected Behavior

正常输出

📷 Recurrence Steps

ref:加一层oneapi中转:

<img width="1058" alt="截屏2024-01-21 11 30 10" src="https://github.com/lobehub/lobe-chat/assets/60097976/947eec14-d6d2-4f48-9c17-b5bb1db6bc0f">

ref:没有使用中转

<img width="1064" alt="截屏2024-01-21 11 30 23" src="https://github.com/lobehub/lobe-chat/assets/60097976/7db4ffec-4994-4950-96fd-24e4541f64b7">

📝 Additional Information

No response


👀 @binary-yuki

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

posted by lobehubbot about 1 year ago

你的 azure 部署版本太低了吧。不支持 tools 关键词。试试更新到最新的部署版本。参考:

posted by arvinxx about 1 year ago

✅ @binary-yuki

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

posted by lobehubbot about 1 year ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Your azure deployment version is too low. The tools keyword is not supported. Try updating to the latest deployment version. refer to:

posted by lobehubbot about 1 year ago

Fund this Issue

$0.00
Funded

Pull requests