You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask\app.py", line 2213, in call
return self.wsgi_app(environ, start_response)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask\app.py", line 2193, in wsgi_app
response = self.handle_exception(e)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask\app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask\app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask\app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask\app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "E:\workplace\Auto-PPT\application.py", line 73, in stream1
return Response(gen_title_v2.predict_title_v2(form, role, title, topic_num),
File "E:\workplace\Auto-PPT\generation\gen_ppt_outline.py", line 37, in predict_title_v2
return self.GptChain.predict(text)
File "E:\workplace\Auto-PPT\chain\gpt_memory.py", line 51, in predict
return self.llm_chain.predict(human_input=question)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\chains\llm.py", line 298, in predict
return self(kwargs, callbacks=callbacks)[self.output_key]
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\chains\base.py", line 310, in call
raise e
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\chains\base.py", line 304, in call
self._call(inputs, run_manager=run_manager)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\chains\llm.py", line 108, in _call
response = self.generate([inputs], run_manager=run_manager)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\chains\llm.py", line 120, in generate
return self.llm.generate_prompt(
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\llms\base.py", line 507, in generate_prompt
return self.generate(prompt_strings, stop=stop, callbacks=callbacks, **kwargs)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\llms\base.py", line 656, in generate
output = self._generate_helper(
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\llms\base.py", line 544, in _generate_helper
raise e
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\llms\base.py", line 531, in _generate_helper
self._generate(
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\llms\openai.py", line 1117, in _generate
for chunk in self._stream(prompts[0], stop, run_manager, **kwargs):
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\llms\openai.py", line 1077, in _stream
for stream_resp in completion_with_retry(
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\llms\openai.py", line 114, in completion_with_retry
return llm.client.create(**kwargs)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\openai_utils_proxy.py", line 22, in getattr
return getattr(self.get_proxied(), attr)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\openai_utils_proxy.py", line 43, in get_proxied
return self.load()
File "E:\workplace\Auto-PPT\venv\lib\site-packages\openai\lib_old_api.py", line 33, in load
raise APIRemovedInV1(symbol=self._symbol)
openai.lib._old_api.APIRemovedInV1:
You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.
You can run openai migrate to automatically upgrade your codebase to use the 1.0.0 interface.
Alternatively, you can pin your installation to the old version, e.g. pip install openai==0.28
Traceback (most recent call last):
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask\app.py", line 2213, in call
return self.wsgi_app(environ, start_response)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask\app.py", line 2193, in wsgi_app
response = self.handle_exception(e)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask\app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask\app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask\app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "E:\workplace\Auto-PPT\venv\lib\site-packages\flask\app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "E:\workplace\Auto-PPT\application.py", line 73, in stream1
return Response(gen_title_v2.predict_title_v2(form, role, title, topic_num),
File "E:\workplace\Auto-PPT\generation\gen_ppt_outline.py", line 37, in predict_title_v2
return self.GptChain.predict(text)
File "E:\workplace\Auto-PPT\chain\gpt_memory.py", line 51, in predict
return self.llm_chain.predict(human_input=question)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\chains\llm.py", line 298, in predict
return self(kwargs, callbacks=callbacks)[self.output_key]
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\chains\base.py", line 310, in call
raise e
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\chains\base.py", line 304, in call
self._call(inputs, run_manager=run_manager)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\chains\llm.py", line 108, in _call
response = self.generate([inputs], run_manager=run_manager)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\chains\llm.py", line 120, in generate
return self.llm.generate_prompt(
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\llms\base.py", line 507, in generate_prompt
return self.generate(prompt_strings, stop=stop, callbacks=callbacks, **kwargs)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\llms\base.py", line 656, in generate
output = self._generate_helper(
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\llms\base.py", line 544, in _generate_helper
raise e
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\llms\base.py", line 531, in _generate_helper
self._generate(
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\llms\openai.py", line 1117, in _generate
for chunk in self._stream(prompts[0], stop, run_manager, **kwargs):
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\llms\openai.py", line 1077, in _stream
for stream_resp in completion_with_retry(
File "E:\workplace\Auto-PPT\venv\lib\site-packages\langchain\llms\openai.py", line 114, in completion_with_retry
return llm.client.create(**kwargs)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\openai_utils_proxy.py", line 22, in getattr
return getattr(self.get_proxied(), attr)
File "E:\workplace\Auto-PPT\venv\lib\site-packages\openai_utils_proxy.py", line 43, in get_proxied
return self.load()
File "E:\workplace\Auto-PPT\venv\lib\site-packages\openai\lib_old_api.py", line 33, in load
raise APIRemovedInV1(symbol=self._symbol)
openai.lib._old_api.APIRemovedInV1:
You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.
You can run
openai migrate
to automatically upgrade your codebase to use the 1.0.0 interface.Alternatively, you can pin your installation to the old version, e.g.
pip install openai==0.28
A detailed migration guide is available here: openai/openai-python#742
openai : 1.3.0
langchain : 0.0.336
The text was updated successfully, but these errors were encountered: