assafelovic / gpt-researcher

GPT based autonomous agent that does online comprehensive research on any given topic
https://gptr.dev
MIT License
13.01k stars 1.61k forks source link

"model 'gpt-4o' not found, try pulling it first" #532

Closed mccoydj1 closed 3 weeks ago

mccoydj1 commented 1 month ago

I got this error.

openai.NotFoundError: Error code: 404 - {'error': {'message': "model 'gpt-4o' not found, try pulling it first", 'type': 'api_error', 'param': None, 'code': None}}

I am using the example code - what am I doing wrong? https://docs.gptr.dev/docs/gpt-researcher/pip-package

(Also i used os.environ["OPENAI_API_KEY"] to set my openai key)

assafelovic commented 1 month ago

This is strange. Did you try exporting your key like so: export OPENAI_API_KEY=... ?