Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

[Bug]: API calls to the model of gpt-3.5-turbo may result in errors #1442

Closed
1 task done
ainndejj11 opened this issue Jun 28, 2023 · 1 comment
Closed
1 task done

Comments

@ainndejj11
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

Using the same network and OpenAI key
By calling the gpt-3.5-turbo model in my own python code, I can run it correctly

Steps to reproduce the problem

Using the same network and OpenAI key
By calling the gpt-3.5-turbo model in my own python code, I can run it correctly

The code example is as follows:

from langchain.llms import OpenAI
openai_api_key = ' '
llm = OpenAI(model_name='gpt-3.5-turbo', openai_api_key=openai_api_key)

promit = "hello"
result = llm(promit)
print(result)

But calling this gpt-3.5 turbo model under another project will cause problems, The error message is as follows:
APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openapi.com', port=443): Max
retries exceeded with url: /v1/chat/completions (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of
protocol (_ssl.c:1131)')))

What should have happened?

May I ask what is the reason and how should I solve it??

Version where the problem happens

.

What Python version are you running this with?

No response

What is your operating system ?

No response

Command Line Arguments

no

Console logs

APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openapi.com', port=443): Max 
retries exceeded with url: /v1/chat/completions (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of 
protocol (_ssl.c:1131)')))

Additional information

No response

@acheong08
Copy link
Owner

SSL errors are caused by your own network

@acheong08 acheong08 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants