-
-
Notifications
You must be signed in to change notification settings - Fork 12k
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. |
๐ @hezhijie0327 Thank you for raising your pull request and contributing to our Community |
TestGru AssignmentSummary
Files
Tip You can |
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"> [](#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"> [](#readme-top) </div>
* ๐ docs(bot): Auto sync agents & plugin to readme * ๐ style: add `o3-mini` support for OpenAI & GitHub Models * ๐จ chore: change system role from `user` to `developer` for reasoning model * [feat] add `reasoning_effort` support for OpenAI Reasoning model * ๐จ chore: rollback `package.json` change * ๐จ chore: update locales for `enableReasoningEffort.title` * ๐ style: update i18n * ๐ style: add `reasoning_effort` intro to discover page * ๐ docs: add docs for `reasoning_effort` --------- Co-authored-by: lobehubbot <[email protected]>
## [Version 1.50.0](lobehub/lobe-chat@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 [lobehub#5657](lobehub#5657) ([492cfd4](lobehub@492cfd4)) #### What's fixed * **misc**: Fix parse of deepseek r1 in siliconflow provider, closes [lobehub#5687](lobehub#5687) ([44e81e2](lobehub@44e81e2)) </details> <div align="right"> [](#readme-top) </div>
callback ไธไธ๏ผo็ณปๅไธๆๅๆฐๅฏไปฅๅ่ claude ็ไบคไบ่ฎพ่ฎกๆฅไบ๏ผ |
๐ป ๅๆด็ฑปๅ | 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