Code Monkey home page Code Monkey logo

Comments (5)

ScSofts avatar ScSofts commented on August 11, 2024

image
I think you may pay some money to solve the problem.
Please take a look at https://openai.com/api/pricing/

from gepetto.

JusticeRage avatar JusticeRage commented on August 11, 2024

The plugin is already using the most expensive model (Davinci), and there is a hard limit in the API for the size of queries.
First, I will do a sanity check to avoid sending the queries that are too big and display an error message. The next step will be, as a workaround, to allow sending only parts of a function for analysis.

There are other models with different limits, but my initial testing shows that the results are very unreliable.

from gepetto.

ScSofts avatar ScSofts commented on August 11, 2024

The plugin is already using the most expensive model (Davinci), and there is a hard limit in the API for the size of queries.
First, I will do a sanity check to avoid sending the queries that are too big and display an error message. The next step will be, as a workaround, to allow sending only parts of a function for analysis.

There are other models with different limits, but my initial testing shows that the results are very unreliable.

Maybe we can do it offline?

from gepetto.

ScSofts avatar ScSofts commented on August 11, 2024

I have seen serval opensource models like GPT-Neo which can be used to do the same thing

from gepetto.

JusticeRage avatar JusticeRage commented on August 11, 2024

As far as I can tell, other models provided by OpenAI do not work as well when it comes to explaining code unfortunately.
I'll close this issue for now, until such a time that a better model becomes available.
For now, I don't think it's worth adding options that are (again, based on my testing), strictly worse.

The initial request, handling the content-length issue was resolved by commit c16c482 as far as I can tell.

from gepetto.

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.