GithubHelp home page GithubHelp logo

Comments (2)

zijinoier avatar zijinoier commented on September 29, 2024

Hi Haowei:
Thanks for your interest of our project!

It appears that the issue you are facing is due to the high number of tools and ideas that need to be invoked in the decision-making process, causing the token limit of the OpenAI model to be exceeded before a decision can be made. Based on your error message, we guess you're using a gpt-3.5-turbo model with only 4k token contexts. However, we recommend using GPT models with at least 8k contexts.

For the OpenAI API, we suggest using either the gpt-3.5-turbo-16k-0613 or gpt-3.5-turbo-16k model, or any GPT4 model. You can refer to the following link for more details: https://platform.openai.com/docs/models/overview

Specifically, you can modify line 36 on HELLM.py with the following code:

llm = ChatOpenAI(
    temperature=0.,
    model_name='gpt-3.5-turbo-16k-0613', # or any other model with 8k+ context
    max_tokens=1024
)

from drivelikeahuman.

miracelplus avatar miracelplus commented on September 29, 2024

Thanks a lot! That solves my question.

from drivelikeahuman.

Related Issues (20)

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.