-
Notifications
You must be signed in to change notification settings - Fork 281
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
Do not pick gpt-4o
as default model provider when it is not available as supported model in the provider model list.
#671
Comments
I think failure is the right response here, but maybe a better error can be provided since this is the default. Scripts are not really transferable between models, and especially if they don't have gpt-4o they are unlikely to have gpt-4... so they would have to use gpt-3.5 or worse. That would usually not work as expected. |
I came here from the getting started guide, and followed all instructions including getting an OpenAPI key, when I hit this error:
The documentation never mentioned the model used, or that I would have to get access to it, or that I need to follow additional steps to make it available. Showstopper. |
The only thing you need to do to get access to it is have a paid OpenAI api account, unless you have an org that has done previous configuration to limit what models are available. It is available by default to all functional paid accounts. OpenAI does not have a free tier, so if you don't have a paid account, you won't have access to the api unless you've received credits in some other way. |
This was the unmentioned requirement, yes.
Not a tier, but models - IIRC some models didn't require credits when I signed up. I guess that's gone now. |
Aside from very old stuff like gpt-3-sandbox, all the gpt models have required credits in recent times as far as I am aware. OpenAI used to do a small free credit grant to new accounts that would expire after a few months, but they don't even do that anymore. While we can certainly update the 'getting started' doc to include the phrase 'paid OpenAI API key,' I think there's a certain expectation that the payment terms for OpenAI are out of scope for our documentation. For example you don't see mentions of having to pay for an AWS account in the Terraform docs. A quick spot check of some other popular projects that use OpenAI's api don't mention paying either. As it relates to the original issue being reported here though, we might be able to wrap this with a more helpful error. OpenAI makes this weird by delisting gpt-4o entirely but leaving other models you still can't use without paying... |
gptscript version -
v0.0.0-dev-faaee653-dirty
Steps to reproduce the problem:
Free Trial
Script execution fails with following error since
gpt-4o
is used as the default provider in this case:gptscript --list-models
does not listgpt-4o
as expected in this case.Expected Behavior:
It should be possible for gptscript to not use
gpt-4o
in this case and may be prompt the user to pick a default provider that can be used as the default provider for all gptscript executions in this case.The text was updated successfully, but these errors were encountered: