Giter Site home page Giter Site logo

custom_agent_tutorial's Issues

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

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'

Using Ollama insted of ChatGPT

I came across your video 'Forget CrewAI & AutoGen, Build CUSTOM AI Agents!' and thought you made many good points, so I wanted to try the code myself. I don't have an OpenGPT account, so I wanted to try to adapt the code to use Ollama and llama3 instead. It all seemed quite manageable, but the problem I'm a bit stuck on / wondering how to get around or reimplement is the 'tool_calls' object that OpenGPT apparently has in its return JSON.

Do you have any suggestions or insights on how to best work around this? I tried following the 'solution' here (ollama/ollama-python#39 (comment)), but I can't get it to include 'tool_calls'. Any ideas or suggestions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.