-
Notifications
You must be signed in to change notification settings - Fork 91
Description
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'
Originally posted by @phundal-openai in openai/openai-cookbook#1665 (comment)