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

[Bug] Azure OpenAI 插件回复无法解析 #2689

Closed
3 of 17 tasks
BrandonStudio opened this issue May 28, 2024 · 3 comments · Fixed by #3046
Closed
3 of 17 tasks

[Bug] Azure OpenAI 插件回复无法解析 #2689

BrandonStudio opened this issue May 28, 2024 · 3 comments · Fixed by #3046
Labels
🐛 Bug Something isn't working | 缺陷 released

Comments

@BrandonStudio
Copy link
Contributor

📦 部署环境

  • Official
  • Official Preview
  • Vercel / Zeabur / Sealos
  • Docker
  • Other

📌 软件版本

0.162.1

💻 系统环境

  • Windows
  • macOS
  • Ubuntu
  • Other Linux
  • iOS
  • Android
  • Other

🌐 浏览器

  • Chrome
  • Edge
  • Safari
  • Firefox
  • Other

🐛 问题描述

Azure OpenAI GPT-4 0125 模型
插件调用不能正确解析

插件:当前时间助手
提示:你好,现在几点?
响应:
image

响应 EventStream
data: {"choices":[],"created":0,"id":"","model":"","object":"","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}]}

data: {"choices":[{"content_filter_results":{},"delta":{"content":null,"role":"assistant","tool_calls":[{"function":{"arguments":"","name":"current-datetime-assistant____getCurrentTime"},"id":"call_hRJ5JAtXP137AKT4Rkqkbhq9","index":0,"type":"function"}]},"finish_reason":null,"index":0}],"created":1716871732,"id":"chatcmpl-9Tj3U6AbBZVfDa8AGvuog4pWsW5QK","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"{\""},"index":0}]},"finish_reason":null,"index":0}],"created":1716871732,"id":"chatcmpl-9Tj3U6AbBZVfDa8AGvuog4pWsW5QK","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"ask"},"index":0}]},"finish_reason":null,"index":0}],"created":1716871732,"id":"chatcmpl-9Tj3U6AbBZVfDa8AGvuog4pWsW5QK","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"time"},"index":0}]},"finish_reason":null,"index":0}],"created":1716871732,"id":"chatcmpl-9Tj3U6AbBZVfDa8AGvuog4pWsW5QK","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"\":\""},"index":0}]},"finish_reason":null,"index":0}],"created":1716871732,"id":"chatcmpl-9Tj3U6AbBZVfDa8AGvuog4pWsW5QK","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"now"},"index":0}]},"finish_reason":null,"index":0}],"created":1716871732,"id":"chatcmpl-9Tj3U6AbBZVfDa8AGvuog4pWsW5QK","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"\",\""},"index":0}]},"finish_reason":null,"index":0}],"created":1716871732,"id":"chatcmpl-9Tj3U6AbBZVfDa8AGvuog4pWsW5QK","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"timezone"},"index":0}]},"finish_reason":null,"index":0}],"created":1716871732,"id":"chatcmpl-9Tj3U6AbBZVfDa8AGvuog4pWsW5QK","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"\":\""},"index":0}]},"finish_reason":null,"index":0}],"created":1716871732,"id":"chatcmpl-9Tj3U6AbBZVfDa8AGvuog4pWsW5QK","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"Asia"},"index":0}]},"finish_reason":null,"index":0}],"created":1716871732,"id":"chatcmpl-9Tj3U6AbBZVfDa8AGvuog4pWsW5QK","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"/Sh"},"index":0}]},"finish_reason":null,"index":0}],"created":1716871732,"id":"chatcmpl-9Tj3U6AbBZVfDa8AGvuog4pWsW5QK","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"anghai"},"index":0}]},"finish_reason":null,"index":0}],"created":1716871732,"id":"chatcmpl-9Tj3U6AbBZVfDa8AGvuog4pWsW5QK","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"\"}"},"index":0}]},"finish_reason":null,"index":0}],"created":1716871732,"id":"chatcmpl-9Tj3U6AbBZVfDa8AGvuog4pWsW5QK","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{},"finish_reason":"tool_calls","index":0}],"created":1716871732,"id":"chatcmpl-9Tj3U6AbBZVfDa8AGvuog4pWsW5QK","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: [DONE]

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

api-version: 2024-02-01

使用 时钟时间 插件测试,结果一样

时钟时间 响应 EventStream
data: {"choices":[],"created":0,"id":"","model":"","object":"","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}]}

data: {"choices":[{"content_filter_results":{},"delta":{"content":null,"role":"assistant","tool_calls":[{"function":{"arguments":"","name":"clock-time____getCurrentTime____standalone"},"id":"call_6cHoGa9AAQZgGqucIHmS1Ehw","index":0,"type":"function"}]},"finish_reason":null,"index":0}],"created":1716872342,"id":"chatcmpl-9TjDKm8qyk6vOvAdGHqnWRV8fiCtf","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"{}"},"index":0}]},"finish_reason":null,"index":0}],"created":1716872342,"id":"chatcmpl-9TjDKm8qyk6vOvAdGHqnWRV8fiCtf","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: {"choices":[{"content_filter_results":{},"delta":{},"finish_reason":"tool_calls","index":0}],"created":1716872342,"id":"chatcmpl-9TjDKm8qyk6vOvAdGHqnWRV8fiCtf","model":"gpt-4","object":"chat.completion.chunk","system_fingerprint":"fp_7ec89fabc6"}

data: [DONE]
@BrandonStudio BrandonStudio added the 🐛 Bug Something isn't working | 缺陷 label May 28, 2024
@lobehubbot
Copy link
Member

👀 @BrandonStudio

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@lobehubbot
Copy link
Member

@BrandonStudio

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

@lobehubbot
Copy link
Member

🎉 This issue has been resolved in version 1.1.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷 released
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants