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

feat: add parameter "reasoning_effort" and Openai o3-mini #13243

Merged
merged 9 commits into from
Feb 6, 2025

Conversation

k-zaku
Copy link
Contributor

@k-zaku k-zaku commented Feb 5, 2025

Summary

I added a new parameter reasoning_effort for OpenAI o1 model and o3-mini model.
And, I changed the OpenAI SDK version to use the parameter and o3-mini model safely.

about the parameter: https://platform.openai.com/docs/api-reference/chat/create#chat-create-reasoning_effort
about OpenAI SDK: https://github.com/openai/openai-python/releases/tag/v1.61.0

Close #13242

Tip

Close issue syntax: Fixes #<issue number> or Resolves #<issue number>, see documentation for more details.

Screenshots

Dify_add_o3-mini

Checklist

Important

Please review the checklist below before submitting your pull request.

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. dependencies Pull requests that update a dependency file ⚙️ feat:model-runtime 📚 documentation Improvements or additions to documentation labels Feb 5, 2025
api/Dockerfile Outdated Show resolved Hide resolved
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Feb 5, 2025
This should not have been included in the PR.
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Feb 5, 2025
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Feb 5, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 6, 2025
@crazywoola crazywoola merged commit 7203991 into langgenius:main Feb 6, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file 📚 documentation Improvements or additions to documentation ⚙️ feat:model-runtime lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run faild: [openai] Bad Request Error, Error code: 400 - 'max_tokens' is not supported with this model.
2 participants