Skip to content

Conversation

msingh-openai
Copy link
Contributor

Summary

Updates to include o3-mini model and the reasoning parameter.

Motivation

Adding reasoning parameter to the Cookbook for o3-mini

@phundal-openai
Copy link
Contributor

Hi Mandeep,

I'm getting an error running this latest version of your notebook:

2025-02-03 16:19:57,589 - MyApp - ERROR - OpenAI call failed: Completions.create() got an unexpected keyword argument 'reasoning_effort' Traceback (most recent call last): File "/Users/phundal/code/openai-cookbook/examples/object_oriented_agentic_approach/resources/object_oriented_agents/services/openai_language_model.py", line 45, in generate_completion response = self.openai_client.chat.completions.create(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/phundal/.pyenv/versions/3.11.8/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ TypeError: Completions.create() got an unexpected keyword argument 'reasoning_effort'

Copy link
Contributor

@phundal-openai phundal-openai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good.

@msingh-openai msingh-openai merged commit f297551 into main Feb 4, 2025
@msingh-openai msingh-openai deleted the msingh-openai-reasoning-param branch February 4, 2025 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants