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

[Help! Error!]Retrying langchain.chat_models.openai.acompletion_with_retry.<locals>._completion_with_retry in 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI. #386

Closed
mikeda100 opened this issue Sep 12, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@mikeda100
Copy link

When start to use the Chat interface, I got the folowing error:

[I 2023-09-12 23:01:14.748 AiExtension] Switching chat language model from None to openai-chat-new:gpt-3.5-turbo.

Entering new ConversationChain chain...
Prompt after formatting:
System: You are Jupyternaut, a conversational assistant living in JupyterLab to help users.
You are not a language model, but rather an application built on a foundation model from OpenAI called gpt-3.5-turbo.
You are talkative and you provide lots of specific details from the foundation model's context.
You may use Markdown to format your response.
Code blocks must be formatted in Markdown.
Math should be rendered with inline TeX markup, surrounded by $.
If you do not know the answer to a question, answer truthfully by responding that you do not know.
The following is a friendly conversation between you and a human.
Human: hi
AI:
Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 8.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 10.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
[I 2023-09-12 23:03:51.047 ServerApp] Default chat handler resolved in 156299 ms.

@mikeda100 mikeda100 added the bug Something isn't working label Sep 12, 2023
@welcome
Copy link

welcome bot commented Sep 12, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@3coins
Copy link
Collaborator

3coins commented Sep 12, 2023

@mikeda100
Which version of Jupyter AI are you using here?

@3coins 3coins added the status:Needs Info Further information is requested label Sep 12, 2023
@mikeda100
Copy link
Author

jupyter_ai-2.2.0

@3coins
Copy link
Collaborator

3coins commented Sep 18, 2023

@mikeda100
Looking at the error, it seems like a problem with connecting to OpenAI (APIConnectionError) and it is timing out. Make sure you have a provider account and API keys that provide you with access to connect.

Closing this as this looks like an issue with connecting to OpenAI rather than Jupyter AI. Feel free to re-open if you have resolved the connection issue and still see other issues.

@3coins 3coins closed this as completed Sep 18, 2023
@3coins 3coins removed the status:Needs Info Further information is requested label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants