-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
✨ feat: add o3-mini
support for OpenAI & GitHub Models
#5657
Conversation
@hezhijie0327 is attempting to deploy a commit to the LobeHub Team on Vercel. A member of the Team first needs to authorize it. |
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 #5657 +/- ##
=========================================
Coverage 92.11% 92.12%
=========================================
Files 647 647
Lines 57831 57888 +57
Branches 4270 2910 -1360
=========================================
+ Hits 53272 53328 +56
- Misses 4559 4560 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
似乎還沒有對 調整思考時間(reasoning_effort) 參數進行處理,但可以確保 o3-mini 模型的基本運作(Defaults to medium)。 參考 #5643 |
@Sen-CaPoo 已支持,默认禁用,启用后将引入 |
@Sen-CaPoo has been supported and disabled by default. After use, it will be introduced to |
! [Image] (https://github.com/user-attachments/aSSETS/E3DB6262-1C6B-4352-9a62-1402795402B5)))))))) The temporary solution seems to be satisfied. After all, it is not very good to adjust the option of thinking time every time; in the end, the ideal may be that the thinking model of the OpenAI thinks will appear in the toolbar of the dialogue input box. Essence |
在 #5556 我评论下的讨论中,xu似乎说过他们有模型层面绑定参数的路线。 |
In the discussion under #5556, XU seemed to say that they had the route of binding parameters at the model level. |
似乎推理模型大多不接受temperature、top_p、presence_penalty、frequency_penalty等常规模型参数(比如R1),所以建议在这个PR中一并提供推理模型禁用上述参数设置(UI中也置于不可用)的路径 |
It seems that most of the reasoning models do not accept conventional model parameters such as Temperature, TOP_P, Presence_Penalty, Frequency_Penalty (such as R1). Therefore |
我看了下 R1 和 o1 目前的策略一致,在使用推理模型时直接忽略这些参数,UI 如何设置都不影响后续传参 lobe-chat/src/libs/agent-runtime/deepseek/index.ts Lines 38 to 56 in 2bec876
lobe-chat/src/libs/agent-runtime/openai/index.ts Lines 14 to 24 in 2bec876
|
I looked at the current strategies of R1 and O1. When using the reasoning model, I ignored these parameters directly. How to set up UI will not affect subsequent pass parameters. |
emmm,其实我的意思是在UI中给予参数不可用的提示,比如温度设置项直接置于不可点击等方式 |
EMMM, in fact, I mean that the parameters are not available in the UI, such as the temperature setting item is directly placed in the method of not clicking |
ci 咋挂了 |
Ci hung up |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@arvinxx 重新拉了下主线就好了,看了下之前的报错好像是数据库测试超时 |
o3-mini
support for OpenAI & GitHub Modelso3-mini
support for OpenAI & GitHub Models
❤️ Great PR @hezhijie0327 ❤️ 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.50.0](v1.49.16...v1.50.0) <sup>Released on **2025-02-03**</sup> #### ✨ Features - **misc**: Add `o3-mini` support for OpenAI & GitHub Models. #### 🐛 Bug Fixes - **misc**: Fix parse of deepseek r1 in siliconflow provider. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add `o3-mini` support for OpenAI & GitHub Models, closes [#5657](#5657) ([492cfd4](492cfd4)) #### What's fixed * **misc**: Fix parse of deepseek r1 in siliconflow provider, closes [#5687](#5687) ([44e81e2](44e81e2)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 1.50.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
v1.50.0 数据库版本镜像构建失败了 |
emmm 得点下重新构建
|
EMMM has to be restarted down
|
## [Version 1.92.0](v1.91.6...v1.92.0) <sup>Released on **2025-02-03**</sup> #### ✨ Features - **misc**: Add `o3-mini` support for OpenAI & GitHub Models. #### 🐛 Bug Fixes - **misc**: Fix parse of deepseek r1 in siliconflow provider, fix provider update issue, Optimize requests without historical messages. #### 💄 Styles - **misc**: Update Fireworks check model and fix check error, Update perplexity models. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add `o3-mini` support for OpenAI & GitHub Models, closes [lobehub#5657](https://github.com/bentwnghk/lobe-chat/issues/5657) ([492cfd4](492cfd4)) #### What's fixed * **misc**: Fix parse of deepseek r1 in siliconflow provider, closes [lobehub#5687](https://github.com/bentwnghk/lobe-chat/issues/5687) ([44e81e2](44e81e2)) * **misc**: Fix provider update issue, closes [lobehub#5676](https://github.com/bentwnghk/lobe-chat/issues/5676) ([e5d81ea](e5d81ea)) * **misc**: Optimize requests without historical messages, closes [lobehub#5174](https://github.com/bentwnghk/lobe-chat/issues/5174) ([182f8d9](182f8d9)) #### Styles * **misc**: Update Fireworks check model and fix check error, closes [lobehub#5680](https://github.com/bentwnghk/lobe-chat/issues/5680) ([64ea539](64ea539)) * **misc**: Update perplexity models, closes [lobehub#5624](https://github.com/bentwnghk/lobe-chat/issues/5624) ([58a86fc](58a86fc)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
o3-mini
模型o1
模型丢失的问题o1Models
->reasoningModels
pruneO1Payload
->pruneReasoningPayload
o3-mini
禁用流式输出o1-mini
价格,同o3-mini
user
改为developer
reasoning_effort
控制,可在 Agent 设置中启用(默认为禁用即不引入参数),启用后可选择low
medium
high
(默认为medium
)reasoning_effort
的描述,补齐文档📝 补充信息 | Additional Information
ref: https://platform.openai.com/docs/api-reference/chat/create#chat-create-messages
close #5644
close #5649
close #5643
close #5690