Git Product home page Git Product logo

Comments (5)

gencay avatar gencay commented on May 17, 2024

Thanks for the suggestion! Yes, this is in the todo list for the extension

from vscode-chatgpt.

benzntech avatar benzntech commented on May 17, 2024

Use the official OpenAI API to generate code or natural language responses from OpenAI's GPT3/GPT3.5 to your questions, right within the editor

https://github.com/timkmecl/codegpt

from vscode-chatgpt.

benzntech avatar benzntech commented on May 17, 2024

Limitation on API :
OpenAI has some rate limits on their API access:

20 requests per minute for free access
60 rpm in pay as you go initially, then it ramps up to 3000 later
see https://help.openai.com/en/articles/5955598-is-api-usage-subject-to-any-rate-limits for details.

Describe the solution you'd like
I see 3 solutions:

get paid plan and wait a bit (3000 requests per minute should be fine for most cases)
hack a time.sleep(X) in here
haystack implements an optional rate limit in the eval methods

This request queries the Davinci model to complete the text starting with a prompt of "Say this is a test". The max_tokens parameter sets an upper bound on how many tokens the API will return. You should get a response back that resembles the following:

API usage subject to any rate limits
image

from vscode-chatgpt.

gencay avatar gencay commented on May 17, 2024

@benzntech please check V3. OpenAI GPT3 integration is now available. And yes, there are rate-limits and I suspect the APIs will get more restrictive in the future. But I added it as a method for people to experiment with their personal or organizational API Keys.

from vscode-chatgpt.

benzntech avatar benzntech commented on May 17, 2024

API is not working. Ask to reset the session not working as expected.

from vscode-chatgpt.

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.