OvidijusParsiunas / deep-chat

Fully customizable AI chatbot component for your website
https://deepchat.dev
MIT License
1.26k stars 170 forks source link

HuggingFace - time out error #203

Open shivrajjadhav733 opened 1 month ago

shivrajjadhav733 commented 1 month ago

Hi,

I went to example-servers folder. I used Java sample for server and UI example. I have added hugging face api key to application.properties Besides that there is no change at all to any of the codebase.

When I try to interact on UI, I get error either as operation timed out or network unreachable. Is it something related to proxy? If yes, where to set proxy. Can you share sample code?

4D8F44A7-268A-44B6-A72A-F033319D43EB

0282CA70-506E-46CF-9662-587EA1D4DA83 image

OvidijusParsiunas commented 1 month ago

Hi @shivrajjadhav733. There is no proxy and things should work right out of the box. Having said that, there are two types of errors that you can expect from Hugging Face:

Having said all of this, the error in your screen appears to be related with something potentially in your network. It could be because of the region you are in or a proxy/vpn that you may have. I would recommend trying to call their APIs via cURL/Postman instead and seeing if you get the same error. I would then try to check any issues with your network.

Apologies for not being able to help much more as I cannot reproduce the issue. Sorry.