Great action, thanks a lot! I tried “gpt-4o” as gtp-model. I got an answer, but also the error “could not get price from model gpt-4o”. My API access definitely includes gpt-4o access. Could this be fixed?
Hi, sorry for the late reply. I have just added support for new models like GPT-4o, GPT-4o-mini, O1-preview, and O1-mini, so this error should be fixed. Please update the action and try again.
Sadly, didn’t work for me.
After seemingly creating the API code ok, after running the action is get:
Unlike most people here, I’m not a code expert, so advise me like I’m a non-tech savvy person!
Thanks.
I think you have an old version of the action, did you install it recently? I’m looking at the current version in the directory and it does not use the gpt-4
model. I would start by trying to reinstall from the directory.
Then share again if you are still getting an error.
Like @agiletortoise said, the reason why it uses GPT-4 rather than GPT-4o by default is likely because the action is outdated. However, even so, GPT-4 should still be accessible according to OpenAI’s documentation. I searched for the error message and found that it might be caused by not having credits in your account. See: openai.error.InvalidRequestError: The model `gpt-4` does not exist or you do not have access to it - API - OpenAI Developer Forum
Thanks for the additional ideas. . . all makes good sense. I’ll look into it.