[enhancement] Add reasoning_effort parameter support for Azure/OpenAI configs#3737
[enhancement] Add reasoning_effort parameter support for Azure/OpenAI configs#3737agam1092005 wants to merge 1 commit into
Conversation
|
Hey @agam1092005 thanks for sending this PR , could you update the title to [enhancement] , and then I will start the discussion and the review , could you also point me to this new change in OpenAIConfig , maybe a release note ? |
|
Thanks for reviewing! I've updated the PR title to include Regarding the OpenAI Documentation & Release Notes:
Context:The parameter controls the inference-time compute budget for reasoning models. Higher effort levels use more tokens and time but potentially provide better reasoning quality. This is particularly useful for evaluating performance/latency trade-offs. Let me know if you need any additional information or changes! 🙂 |
|
This pull request has been automatically marked as stale because it has not had any activity in 90 days. Please update your branch and address any review comments, or it may be closed in the future. |
|
Thanks for taking this on, @agam1092005! Your approach of scoping changes to just OpenAI and Azure configs was clean and focused. This issue has now been resolved via #4461, which has been merged. Closing this PR as the feature is now available on Appreciate your contribution — hope to see you on future issues! 🙏 |
Description
Added support for the
reasoning_effortparameter inAzureOpenAIConfigandOpenAIConfigclasses to enable testing and comparison of different reasoning effort levels ("low", "medium", "high") supported by OpenAI's reasoning models (o1, o3, gpt-5).The parameter was recently added to OpenAI SDK but was not implemented in Mem0's configuration classes, causing a
TypeErrorwhen users tried to passreasoning_effortin their config.This change enables users to evaluate performance and latency trade-offs across reasoning models directly within Mem0.
Fixes #3651
Type of change
How Has This Been Tested?
Tested by initializing both config classes with the
reasoning_effortparameter and verifying: