i encountered this error - Exception has occurred: ValidationError
2 validation errors for ChatCompletions
choices.0.message.tool_calls.1
Input should be a valid dictionary or instance of ChatCompletionMessageToolCall [type=model_type, input_value=None, input_type=NoneType]
For further information visit
https://errors.pydantic.dev/2.10/v/model_typechoices.0.message.tool_calls.3
Input should be a valid dictionary or instance of ChatCompletionMessageToolCall [type=model_type, input_value=None, input_type=NoneType]
For further information visit
https://errors.pydantic.dev/2.10/v/model_type File "C:\Users\shreyas\Music\Cenzex\CityInsider\playo\playo_agent.py", line 295, in trigger
response: ChatCompletion = await self.async_client.chat.completions.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\shreyas\Music\Cenzex\CityInsider\playo\playo_agent.py", line 452, in ask_question
return await self.trigger()
File "C:\Users\shreyas\Music\Cenzex\CityInsider\interfect_ae_agents.py", line 85, in websocket_endpoint
response = await instance.ask_question(message["data"])
File "C:\Users\shreyas\Music\Cenzex\CityInsider\main.py", line 8, in <module>
uvicorn.run(app, port=7005, factory=False)
pydantic_core._pydantic_core.ValidationError: 2 validation errors for ChatCompletions
choices.0.message.tool_calls.1
Input should be a valid dictionary or instance of ChatCompletionMessageToolCall [type=model_type, input_value=None, input_type=NoneType]
For further information visit
https://errors.pydantic.dev/2.10/v/model_typechoices.0.message.tool_calls.3
Input should be a valid dictionary or instance of ChatCompletionMessageToolCall [type=model_type, input_value=None, input_type=NoneType]
For further information visit
https://errors.pydantic.dev/2.10/v/model_type