TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
8.86k stars 697 forks source link

Shell-GPT Change LLM model #449

Closed karthikvijay5227 closed 5 months ago

karthikvijay5227 commented 5 months ago

How to solve this error

NotFoundError: Error code: 404 - {'error': {'message': 'The model gpt-4-1106-preview does not exist or you do not have access to it. Learn more: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

Even after managing to edit config file for model to be at gpt-3.5-turbo, it is showing quota exceeded but i am using new fresh api key.

RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

cybercrimeworld commented 5 months ago

You need to change mode version to gpt 3.5 or need to pay for this.

karthikvijay5227 commented 5 months ago

I am already using gpt 3.5 I think.Can you give the model name corresponding to gpt 3.5

On Wed, 24 Jan, 2024, 7:02 pm cybercrimeworld, @.***> wrote:

You need to change mode version to gpt 3.5 or need to pay for this.

— Reply to this email directly, view it on GitHub https://github.com/TheR1D/shell_gpt/issues/449#issuecomment-1908130810, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASNUMCR3YNJ543ZQULUITELYQEEPBAVCNFSM6AAAAABB4DY7B2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBYGEZTAOBRGA . You are receiving this because you authored the thread.Message ID: @.***>

a4v2d4 commented 5 months ago

+1, same here.

Additional Info:

TheR1D commented 5 months ago

OpenAI API and ChatGPT Plus subscription are billed separately. The API has its own pricing, which can be found at https://openai.com/pricing. The ChatGPT Plus subscription covers usage on chat.openai.com only. The OpenAI API is not available for free. You can link your payment method for API here.

a4v2d4 commented 5 months ago

Ah, thank you!

Bought some credits for OpenAI API, generated new key, and now everything working great using gpt-4-1106-preview.

Great work, @TheR1D 🙂

a4v2d4 commented 5 months ago

This could probably be closed as non-issue - guessing others had same issue as me (unless @karthikvijay5227 cares to object).

Or could change this issue to one of (or both):

jrbecart commented 5 months ago

As mentioned, If you have ChatGPT plus subscription you also need to buy credit here: https://platform.openai.com/account/billing/overview

THEN wait few minutes!