Gpt-plus api key get error: InvalidRequestError: The model `gpt-4` does not exist or you do not have access to it

#2
by fivn233 - opened

Traceback:
File "/home/user/.local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
exec(code, module.dict)
File "/home/user/app/app.py", line 527, in
app()
File "/home/user/app/app.py", line 453, in app
st.session_state.course_outline_list = initialize_outline(temp_file_paths, num_lessons, language)
File "/home/user/app/app.py", line 242, in initialize_outline
course_outline_list = courseOutlineGenerating(temp_file_paths, num_lessons, language)
File "/home/user/app/app.py", line 112, in courseOutlineGenerating
course_outline = genarating_outline(summarized_materials, num_lessons, language)
File "/home/user/app/app.py", line 99, in genarating_outline
response = get_completion_from_messages(messages)
File "/home/user/app/app.py", line 69, in get_completion_from_messages
response = openai.ChatCompletion.create(
File "/home/user/.local/lib/python3.10/site-packages/openai/api_resources/chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
File "/home/user/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
File "/home/user/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 230, in request
resp, got_stream = self._interpret_response(result, stream)
File "/home/user/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 624, in _interpret_response
self._interpret_response_line(
File "/home/user/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 687, in _interpret_response_line
raise self.handle_error_response(

Sign up or log in to comment