Skip to content

Error: 'choices' key not found in response. Using empty content. #3

@MyraBaba

Description

@MyraBaba

python agent.py run
Enter your query: https://inverbathrooms.ie/ extract : Contact informations headquarter or any location offices all phones with details any team member , managmenet member listed give me names and contact also all adressess including HQ, other locations , distributors make the result pretty read able and explain

gives error:

Error: 'choices' key not found in response. Using empty content.
Integration Agent:
Traceback (most recent call last):
File "/home/bc/Projects/custom_agent_tutorial/agent.py", line 166, in
agent.execute()
File "/home/bc/Projects/custom_agent_tutorial/agent.py", line 151, in execute
plan = self.run_planning_agent(query, plan=plan, outputs=outputs, feedback=response)
File "/home/bc/Projects/custom_agent_tutorial/agent.py", line 54, in run_planning_agent
content = response_dict['choices'][0]['message']['content']
KeyError: 'choices'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions