@@ -166,6 +166,7 @@ def create(
166166 tool_choice : ChatCompletionToolChoiceOptionParam | None = None ,
167167 response_format : completion_create_params .ResponseFormat | None = None ,
168168 thinking : completion_create_params .Thinking | None = None ,
169+ max_completion_tokens : Optional [int ] | None = None ,
169170 user : str | None = None ,
170171 extra_headers : Headers | None = None ,
171172 extra_query : Query | None = None ,
@@ -206,6 +207,7 @@ def create(
206207 "tool_choice" : tool_choice ,
207208 "response_format" : response_format ,
208209 "thinking" : thinking ,
210+ "max_completion_tokens" : max_completion_tokens ,
209211 },
210212 options = make_request_options (
211213 extra_headers = extra_headers ,
@@ -313,6 +315,7 @@ async def create(
313315 tool_choice : ChatCompletionToolChoiceOptionParam | None = None ,
314316 response_format : completion_create_params .ResponseFormat | None = None ,
315317 thinking : completion_create_params .Thinking | None = None ,
318+ max_completion_tokens : Optional [int ] | None = None ,
316319 extra_headers : Headers | None = None ,
317320 extra_query : Query | None = None ,
318321 extra_body : Body | None = None ,
@@ -352,6 +355,7 @@ async def create(
352355 "tool_choice" : tool_choice ,
353356 "response_format" : response_format ,
354357 "thinking" : thinking ,
358+ "max_completion_tokens" : max_completion_tokens ,
355359 },
356360 options = make_request_options (
357361 extra_headers = extra_headers ,
0 commit comments