devika icon indicating copy to clipboard operation
devika copied to clipboard

Should the open ai api key be given to run it??

Open sageakshay22 opened this issue 1 year ago • 14 comments

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x306642d50>: Failed to establish a new connection: [Errno 2] Lookup timed out'))

can the backend for devika be run without api keys??

sageakshay22 avatar Apr 02 '24 12:04 sageakshay22

Nope, actually you need it. If you don't want to, then try Ollama and run llama2, it would not require.

But bing search API key is a must as it seemed to me.

obliviousz avatar Apr 02 '24 13:04 obliviousz

but the backend it not running even after giving the bing api also its shows the same error as before

sageakshay22 avatar Apr 02 '24 13:04 sageakshay22

Did you select llama2 model?

obliviousz avatar Apr 02 '24 13:04 obliviousz

where to select??

sageakshay22 avatar Apr 02 '24 13:04 sageakshay22

my whole python backend is only not running its showing the open ai error

sageakshay22 avatar Apr 02 '24 13:04 sageakshay22

frontend is working

sageakshay22 avatar Apr 02 '24 13:04 sageakshay22

at what stage is this error coming? when you are doing

python3 devika.py?

obliviousz avatar Apr 02 '24 13:04 obliviousz

yes

sageakshay22 avatar Apr 02 '24 13:04 sageakshay22

I could run the project without openai API key. I think it's some other form of issue. If you could give me the whole error message.

obliviousz avatar Apr 02 '24 13:04 obliviousz

ill send

sageakshay22 avatar Apr 02 '24 13:04 sageakshay22

pip install urllib3==1.25.11

Run this

obliviousz avatar Apr 02 '24 13:04 obliviousz

The error traceback you've provided indicates several issues related to DNS resolution and connection problems, ultimately leading to a failure to establish a connection to openaipublic.blob.core.windows.net. Here's a breakdown of the issues:

DNS Resolution Error:

The first error seems to originate from a DNS resolution issue. It indicates that the DNS resolution lifetime expired after a certain period, likely due to malformed text input from the server. This error arises from the greendns.py module. It seems to be caused by malformed text input from the DNS server. Connection Timeout Error:

The second part of the traceback indicates a connection timeout error while trying to establish a connection to openaipublic.blob.core.windows.net. This error originates from the urllib3 and requests modules. The specific error message indicates that the lookup timed out. Max Retries Exceeded:

The third part of the traceback shows that max retries were exceeded while attempting to establish a connection to openaipublic.blob.core.windows.net. These errors suggest there might be network issues, DNS configuration problems, or possibly issues with the server hosting openaipublic.blob.core.windows.net. To resolve these issues, you may consider the following steps:

Check your network connectivity and ensure that DNS resolution is functioning correctly. Verify the DNS configuration and ensure that it's correctly resolving domain names. Check if there are any firewall or security settings blocking the connection. Ensure that the server openaipublic.blob.core.windows.net is reachable and operational. If the issue persists, you may need to contact the administrator of the DNS server or the owner of the openaipublic.blob.core.windows.net server for further assistance.

this is the error

sageakshay22 avatar Apr 02 '24 13:04 sageakshay22

https://stackoverflow.com/questions/39064126/failed-to-establish-a-new-connection

obliviousz avatar Apr 02 '24 13:04 obliviousz

is it solved or not? if solved then close the issue

ARajgor avatar Apr 03 '24 19:04 ARajgor