mshumer/gpt-prompt-engineer

InvalidRequestError: The model: `gpt-4` does not exist

buzzfair opened this issue · 1 comments

NOTE: I have a gpt-4 (paid) account

final cell returned:

generate_optimal_prompt(description, test_cases, NUMBER_OF_PROMPTS, use_wandb)


InvalidRequestError Traceback (most recent call last)
in <cell line: 1>()
----> 1 generate_optimal_prompt(description, test_cases, NUMBER_OF_PROMPTS, use_wandb)

6 frames
/usr/local/lib/python3.10/dist-packages/openai/api_requestor.py in _interpret_response_line(self, rbody, rcode, rheaders, stream)
761 stream_error = stream and "error" in resp.data
762 if stream_error or not 200 <= rcode < 300:
--> 763 raise self.handle_error_response(
764 rbody, rcode, resp.data, rheaders, stream_error=stream_error
765 )

InvalidRequestError: The model: gpt-4 does not exist

To check what models you have access to:
curl https://api.openai.com/v1/models -H "Authorization: Bearer sk-your-openai-key" | grep -i "id"