vertex ai on user_idle.push_frame(LLMMessagesFrame(messages)) giving error
pipecat version
0.0.63
Python version
3.11.11
Operating System
ubuntu 24.04
Issue description
File "/root/miniconda3/envs/vtv_env/lib/python3.11/site-packages/pydantic/main.py", line 214, in init validated_self = self.pydantic_validator.validate_python(data, self_instance=self) │ │ │ │ └ LLMTokenUsage() │ │ │ └ {'prompt_tokens': 1432, 'completion_tokens': None, 'total_tokens': 1432} │ │ └ <method 'validate_python' of 'pydantic_core._pydantic_core.SchemaValidator' objects> │ └ SchemaValidator(title="LLMTokenUsage", validator=Model( │ ModelValidator { │ revalidate: Never, │ validator: Mo... └ LLMTokenUsage()
pydantic_core._pydantic_core.ValidationError: 1 validation error for LLMTokenUsage completion_tokens Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.10/v/int_type File "/root/miniconda3/envs/vtv_env/lib/python3.11/site-packages/pydantic/main.py", line 214, in init validated_self = self.pydantic_validator.validate_python(data, self_instance=self) │ │ │ │ └ LLMTokenUsage() │ │ │ └ {'prompt_tokens': 1432, 'completion_tokens': None, 'total_tokens': 1432} │ │ └ <method 'validate_python' of 'pydantic_core._pydantic_core.SchemaValidator' objects> │ └ SchemaValidator(title="LLMTokenUsage", validator=Model( │ ModelValidator { │ revalidate: Never, │ validator: Mo... └ LLMTokenUsage()
pydantic_core._pydantic_core.ValidationError: 1 validation error for LLMTokenUsage completion_tokens Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType] For further information visit https://errors.pydantic.dev/2.10/v/int_type
Reproduction steps
push user_idle.push_frame(LLMMessagesFrame(messages)) error will be triggered
Expected behavior
it should say the text for idle user
Actual behavior
throws error
Logs
File "/root/miniconda3/envs/vtv_env/lib/python3.11/site-packages/pydantic/main.py", line 214, in __init__
validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
│ │ │ │ └ LLMTokenUsage()
│ │ │ └ {'prompt_tokens': 1432, 'completion_tokens': None, 'total_tokens': 1432}
│ │ └ <method 'validate_python' of 'pydantic_core._pydantic_core.SchemaValidator' objects>
│ └ SchemaValidator(title="LLMTokenUsage", validator=Model(
│ ModelValidator {
│ revalidate: Never,
│ validator: Mo...
└ LLMTokenUsage()
pydantic_core._pydantic_core.ValidationError: 1 validation error for LLMTokenUsage
completion_tokens
Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/int_type File "/root/miniconda3/envs/vtv_env/lib/python3.11/site-packages/pydantic/main.py", line 214, in __init__
validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
│ │ │ │ └ LLMTokenUsage()
│ │ │ └ {'prompt_tokens': 1432, 'completion_tokens': None, 'total_tokens': 1432}
│ │ └ <method 'validate_python' of 'pydantic_core._pydantic_core.SchemaValidator' objects>
│ └ SchemaValidator(title="LLMTokenUsage", validator=Model(
│ ModelValidator {
│ revalidate: Never,
│ validator: Mo...
└ LLMTokenUsage()
pydantic_core._pydantic_core.ValidationError: 1 validation error for LLMTokenUsage
completion_tokens
Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.10/v/int_type
Which LLM were you using?
gemini 2.0 flash