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:
Zamil Majdy
2026-01-27 13:52:09 -06:00
parent 4bf616cb38
commit bf29f5b49d

View File

@@ -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,
)