File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
pydantic_ai_slim/pydantic_ai Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ async def _completions_create(
197
197
model = str (self .model_name ),
198
198
messages = groq_messages ,
199
199
n = 1 ,
200
- parallel_tool_calls = model_settings .get ('parallel_tool_calls' , True if self . tools else NOT_GIVEN ),
200
+ parallel_tool_calls = model_settings .get ('parallel_tool_calls' , NOT_GIVEN ),
201
201
tools = self .tools or NOT_GIVEN ,
202
202
tool_choice = tool_choice or NOT_GIVEN ,
203
203
stream = stream ,
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ async def _completions_create(
199
199
model = self .model_name ,
200
200
messages = openai_messages ,
201
201
n = 1 ,
202
- parallel_tool_calls = model_settings .get ('parallel_tool_calls' , True if self . tools else NOT_GIVEN ),
202
+ parallel_tool_calls = model_settings .get ('parallel_tool_calls' , NOT_GIVEN ),
203
203
tools = self .tools or NOT_GIVEN ,
204
204
tool_choice = tool_choice or NOT_GIVEN ,
205
205
stream = stream ,
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ class ModelSettings(TypedDict, total=False):
80
80
"""Whether to allow parallel tool calls.
81
81
82
82
Supported by:
83
- * OpenAI
83
+ * OpenAI (some models, not o1)
84
84
* Groq
85
85
* Anthropic
86
86
"""
You can’t perform that action at this time.
0 commit comments