mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-28 00:18:25 -05:00
fix(chat): remove tools=None to fix pyright error
The OpenAI client doesn't accept None for tools parameter. Omitting the parameter entirely achieves the same effect.
This commit is contained in:
@@ -1694,10 +1694,10 @@ async def _generate_llm_continuation(
|
||||
|
||||
from openai.types.chat import ChatCompletionMessageParam
|
||||
|
||||
# No tools parameter = text-only response (no tool calls)
|
||||
response = await client.chat.completions.create(
|
||||
model=config.model,
|
||||
messages=cast(list[ChatCompletionMessageParam], messages),
|
||||
tools=None, # No tools for continuation - just text response
|
||||
extra_body=extra_body,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user