llama-stack-apps
llama-stack-apps copied to clipboard
Error "Input should be a valid string" when running the inflation.py
Running examples/scripts/inflation.py
caused the server the error below:
Downloading https://raw.githubusercontent.com/meta-llama/llama-agentic-system/main/examples/resources/inflation.csv -> /tmp/tmph0zd9sgq/cBgnRF4Jinflation.csv
role='ipython' call_id='' tool_name=<BuiltinTool.code_interpreter: 'code_interpreter'> content=['# There is a file accessible to you at "/tmp/tmph0zd9sgq/cBgnRF4Jinflation.csv"\n']
Traceback (most recent call last):
File "/opt/conda/envs/llamastack-8b-instruct/lib/python3.10/site-packages/llama_toolchain/core/server.py", line 175, in sse_generator
async for item in event_gen:
File "/opt/conda/envs/llamastack-8b-instruct/lib/python3.10/site-packages/llama_toolchain/agentic_system/meta_reference/agentic_system.py", line 124, in create_agentic_system_turn
async for event in agent.create_and_execute_turn(request):
File "/opt/conda/envs/llamastack-8b-instruct/lib/python3.10/site-packages/llama_toolchain/agentic_system/meta_reference/agent_instance.py", line 153, in create_and_execute_turn
async for chunk in self.run(
File "/opt/conda/envs/llamastack-8b-instruct/lib/python3.10/site-packages/llama_toolchain/agentic_system/meta_reference/agent_instance.py", line 226, in run
async for res in self._run(
File "/opt/conda/envs/llamastack-8b-instruct/lib/python3.10/site-packages/llama_toolchain/agentic_system/meta_reference/agent_instance.py", line 402, in _run
async for chunk in self.inference_api.chat_completion(req):
File "/opt/conda/envs/llamastack-8b-instruct/lib/python3.10/site-packages/llama_toolchain/inference/adapters/together/together.py", line 122, in chat_completion
for chunk in self.client.chat.completions.create(
File "/opt/conda/envs/llamastack-8b-instruct/lib/python3.10/site-packages/together/resources/chat/completions.py", line 116, in create
parameter_payload = ChatCompletionRequest(
File "/opt/conda/envs/llamastack-8b-instruct/lib/python3.10/site-packages/pydantic/main.py", line 193, in __init__
self.__pydantic_validator__.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for ChatCompletionRequest
messages.3.content
Input should be a valid string [type=string_type, input_value=['# There is a file acces...gnRF4Jinflation.csv"\n'], input_type=list]
For further information visit https://errors.pydantic.dev/2.8/v/string_type
@ashwinb @dltn