-
-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
🐛 fix: update message roles for specific Azure OpenAI models #6222
Conversation
@cygnaw is attempting to deploy a commit to the LobeHub Team on Vercel. A member of the Team first needs to authorize it. |
👍 @hcygnaw Thank you for raising your pull request and contributing to our Community |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6222 +/- ##
==========================================
- Coverage 91.86% 91.83% -0.04%
==========================================
Files 684 684
Lines 62196 62311 +115
Branches 3095 2908 -187
==========================================
+ Hits 57137 57221 +84
- Misses 5059 5090 +31
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…lobe-chat into cygnaw/changesystemrole
.github/workflows/lobechatazure-AutoDeployTrigger-bdbe175d-28d2-43a7-a2db-f0a2225af446.yml
Outdated
Show resolved
Hide resolved
…2-43a7-a2db-f0a2225af446.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now. Thanks for your contribution!
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
❤️ Great PR @hcygnaw ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
### [Version 1.62.2](v1.62.1...v1.62.2) <sup>Released on **2025-02-20**</sup> #### 🐛 Bug Fixes - **misc**: Fix message roles for specific Azure OpenAI models. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix message roles for specific Azure OpenAI models, closes [#6222](#6222) ([d49329a](d49329a)) </details> <div align="right"> [](#readme-top) </div>
🎉 This PR is included in version 1.62.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
我测试了v1.62.2,Azure的o1-mini模型还是用的system role...请问这是什么原因 |
I tested v1.62.2, and Azure's o1-mini model still uses the system role... What is the reason for this? |
### [Version 1.103.1](v1.103.0...v1.103.1) <sup>Released on **2025-02-20**</sup> #### 🐛 Bug Fixes - **misc**: Add sambanova proxy url, fix message roles for specific Azure OpenAI models. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Add sambanova proxy url, closes [lobehub#6348](https://github.com/bentwnghk/lobe-chat/issues/6348) ([c9cb7d9](c9cb7d9)) * **misc**: Fix message roles for specific Azure OpenAI models, closes [lobehub#6222](https://github.com/bentwnghk/lobe-chat/issues/6222) ([d49329a](d49329a)) </details> <div align="right"> [](#readme-top) </div>
@1oca1h0st 我这边deploy了1.62.3版本,测试gpt-4o, gpt-4o-mini, o1-mini, o3-mini都是没问题的,o1没有访问权限所以没有测试。你升到1.62.3版本试试? |
@1oca1h0st 我这边deploy了1.62.3版本,测试gpt-4o, gpt-4o-mini, o1-mini, o3-mini都是没问题的,o1没有访问权限所以没有测试。 Have you tried to upgrade to version 1.62.3? |
* 🐛 fix: update message roles for specific Azure OpenAI models * 🐛 fix: refine role assignment logic for specific Azure OpenAI models * Create an auto-deploy file * Delete .github/workflows/lobechatazure-AutoDeployTrigger-bdbe175d-28d2-43a7-a2db-f0a2225af446.yml --------- Co-authored-by: yichuan <[email protected]>
不好意思,我看了下代码,是我搞错了,我用的是Azure AI的provider,我已经另外提了一个PR来修复这个bug了。 |
Sorry, I looked at the code and it was me who made a mistake. I was using Azure AI provider. I have mentioned another PR to fix this bug. |
* 🐛 fix: update message roles for specific Azure OpenAI models * 🐛 fix: refine role assignment logic for specific Azure OpenAI models * Create an auto-deploy file * Delete .github/workflows/lobechatazure-AutoDeployTrigger-bdbe175d-28d2-43a7-a2db-f0a2225af446.yml --------- Co-authored-by: yichuan <[email protected]>
### [Version 1.62.2](lobehub/lobe-chat@v1.62.1...v1.62.2) <sup>Released on **2025-02-20**</sup> #### 🐛 Bug Fixes - **misc**: Fix message roles for specific Azure OpenAI models. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix message roles for specific Azure OpenAI models, closes [lobehub#6222](lobehub#6222) ([d49329a](lobehub@d49329a)) </details> <div align="right"> [](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
Fix #6201
将
system
role切换成user
role或者developer
role。📝 补充信息 | Additional Information
当使用 Azure OpenAI 的 O-series 模型(如 o1, o1-mini 等)时,如果设定了 system prompt 会导致以下错误: