We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some OpenAI models included are no longer supported and do not work. Should these be removed?
Traceback (most recent call last): File "/jupyter-ai/jupyter_ai/chat_handlers/base.py", line 113, in on_message await self.process_message(message) File "/jupyter_ai/chat_handlers/default.py", line 54, in process_message response = await self.llm_chain.apredict(input=message.body, stop=["\nHuman:"]) File "/lib/python3.10/site-packages/langchain/chains/llm.py", line 310, in apredict return (await self.acall(kwargs, callbacks=callbacks))[self.output_key] File "/lib/python3.10/site-packages/langchain/chains/base.py", line 413, in acall return await self.ainvoke( File "/lib/python3.10/site-packages/langchain/chains/base.py", line 209, in ainvoke raise e File "/lib/python3.10/site-packages/langchain/chains/base.py", line 203, in ainvoke await self._acall(inputs, run_manager=run_manager) File "/lib/python3.10/site-packages/langchain/chains/llm.py", line 275, in _acall response = await self.agenerate([inputs], run_manager=run_manager) File "/lib/python3.10/site-packages/langchain/chains/llm.py", line 142, in agenerate return await self.llm.agenerate_prompt( File "/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 535, in agenerate_prompt return await self.agenerate( File "/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 893, in agenerate output = await self._agenerate_helper( File "/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 757, in _agenerate_helper raise e File "/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 741, in _agenerate_helper await self._agenerate( File "/lib/python3.10/site-packages/langchain_community/llms/openai.py", line 523, in _agenerate response = await acompletion_with_retry( File "/lib/python3.10/site-packages/langchain_community/llms/openai.py", line 133, in acompletion_with_retry return await llm.async_client.create(**kwargs) File "/lib/python3.10/site-packages/openai/resources/completions.py", line 1133, in create return await self._post( File "/lib/python3.10/site-packages/openai/_base_client.py", line 1536, in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) File "/lib/python3.10/site-packages/openai/_base_client.py", line 1315, in request return await self._request( File "/lib/python3.10/site-packages/openai/_base_client.py", line 1392, in _request raise self._make_status_error_from_response(err.response) from None openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model `text-davinci-002` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}
On January 4th, 2024 Open Ai shut down a number of models (in bold these that I know are still used in this extension)
References:
jupyter-ai/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py
Lines 539 to 544 in 6de2047
The text was updated successfully, but these errors were encountered:
I cannot see the recent gpt-4o models; can the list be updated?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description
Some OpenAI models included are no longer supported and do not work. Should these be removed?
Reproduce
Expected behavior
Context
On January 4th, 2024 Open Ai shut down a number of models (in bold these that I know are still used in this extension)
References:
jupyter-ai/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py
Lines 539 to 544 in 6de2047
The text was updated successfully, but these errors were encountered: