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

ChatGPT error. #23

Open
wgiles200 opened this issue Apr 13, 2024 · 0 comments
Open

ChatGPT error. #23

wgiles200 opened this issue Apr 13, 2024 · 0 comments

Comments

@wgiles200
Copy link

I put my key into the .env file but receiving this error message? Everything else is working fine.

Exception in thread Thread-57 (run_single_machine):
Traceback (most recent call last):
File "C:\Users\icema\anaconda3\Lib\threading.py", line 1038, in _bootstrap_inner
self.run()
File "C:\Users\icema\anaconda3\Lib\threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\icema\Desktop\OSROKBOT-master\Classes\OS_ROKBOT.py", line 29, in run_single_machine
if machine.execute():
^^^^^^^^^^^^^^^^^
File "C:\Users\icema\Desktop\OSROKBOT-master\Classes\state_machine.py", line 20, in execute
result = state.perform()
^^^^^^^^^^^^^^^
File "C:\Users\icema\Desktop\OSROKBOT-master\Classes\Actions\action.py", line 38, in perform
result = self.execute()
^^^^^^^^^^^^^^
File "C:\Users\icema\Desktop\OSROKBOT-master\Classes\Actions\chatgpt_action.py", line 62, in execute
chat = openai.chat.completions.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\icema\anaconda3\Lib\site-packages\openai_utils_utils.py", line 275, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\icema\anaconda3\Lib\site-packages\openai\resources\chat\completions.py", line 667, in create
return self._post(
^^^^^^^^^^^
File "C:\Users\icema\anaconda3\Lib\site-packages\openai_base_client.py", line 1213, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\icema\anaconda3\Lib\site-packages\openai_base_client.py", line 902, in request
return self._request(
^^^^^^^^^^^^^^
File "C:\Users\icema\anaconda3\Lib\site-packages\openai_base_client.py", line 993, in _request
raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model gpt-4-1106-preview does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

Press k to for the next question

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