[go: up one dir, main page]

Skip to content
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

Getting the following API issues #22

Closed
saurabh-jadhav-09 opened this issue Aug 23, 2023 · 0 comments
Closed

Getting the following API issues #22

saurabh-jadhav-09 opened this issue Aug 23, 2023 · 0 comments

Comments

@saurabh-jadhav-09
Copy link

Welcome to natbot! What is your objective?
bloom
Parsing time: 0.10 seconds
Traceback (most recent call last):
File "/home/ubuntu/natbot/natbot.py", line 602, in
gpt_cmd = get_gpt_command(objective, _crawler.page.url, prev_cmd, browser_content)
File "/home/ubuntu/natbot/natbot.py", line 561, in get_gpt_command
response = openai.Completion.create(model="text-davinci-003", prompt=prompt, temperature=0.5, best_of=10, n=3, max_tokens=50)
File "/usr/local/lib/python3.10/dist-packages/openai/api_resources/completion.py", line 25, in create
return super().create(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/openai/api_resources/abstract/engine_api_resource.py", line 149, in create
) = cls.__prepare_create_request(
File "/usr/local/lib/python3.10/dist-packages/openai/api_resources/abstract/engine_api_resource.py", line 106, in __prepare_create_request
requestor = api_requestor.APIRequestor(
File "/usr/local/lib/python3.10/dist-packages/openai/api_requestor.py", line 138, in init
self.api_key = key or util.default_api_key()
File "/usr/local/lib/python3.10/dist-packages/openai/util.py", line 186, in default_api_key
raise openai.error.AuthenticationError(
openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.

I checked API issues using:
curl -X GET https://api.openai.com/v1/models -H "Authorization: Bearer sk-kufw3eq_MY_API_KEY_asdqe23adg"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant