-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The model: gpt-4
does not exist
#41
Comments
Try using gpt-3.5-turbo it worked best for me. |
Actually to help you even further go to your https://platform.openai.com/account/rate-limits page and you will see a list of models you can replace gpt-4 with... test out all the different models available for your account. additionally you can get on the waiting list for gpt-4 here: https://openai.com/waitlist/gpt-4-api |
Make a PR with a fix to automatically switch over to gpt-3.5-turbo: #42 |
yeah I changed |
You should check that you have access to the GPT-4 model. |
So I do have GPT-4 (on ChatGPT) and I am getting the same error. |
I don't have access to |
In db.py I had to add utf-8 encoding because I'm on Windows: And I also had to play around (didn't work the first time) with the set command (export doesn't work in Windows Anaconda): The setx command, on the other hand, permanently sets an environment variable. The new setting will persist even after you close and reopen the terminal. However, it won't affect any currently open terminals — only new ones. If you're having trouble with the set command, using setx might solve your problem. But remember, after setting the environment variable with setx, you'll need to start a new terminal session for the change to take effect. If you're still having trouble, you could set the API key directly in your Python code as I suggested earlier, but be sure not to share this code with anyone or commit it to a public version control repository, as that would expose your API key. What (I think) eventually worked was manually setting the Windows environment variable manually, closing the Anaconda, reopening it, and then I did start getting some results (though it does seem to just stop arbitrarily without warning or error...but it is digging into some of the work. Give it a try and good luck. Manually set a windows environment variable like this: Right-click on Computer on the desktop or in the Start menu. ALSO!!! If you do have gpt-4 api access, use the new model gpt-4-0613 (not just main.py, you gotta look through and find everywhere the model is defined). |
Oh, also, I think I did have to rerun the activate command after manually setting the environment variable and reopening anaconda. |
Update: Seems like I thought I have GPT-4 API access but apparently not. based on the below output.
|
Correct, we recently merged that functionality, falling back into model for anyone landing on this issue in the future: make sure you have a valid |
Open discussion related to this in #135 |
@patillacode my PR also solves this for both the main.py and the rerun_edited_message_logs.py in a central file in the main repo directory called model_select.py. this way both fall back to the same fallback model and also centralizes the change out of the ai.py so that the rest of the code can reference in the future, making things easier to maintain and add to later on. |
After adding api key and running the project for the first time, I am getting an error as follows:
The text was updated successfully, but these errors were encountered: