Soulter / hugging-chat-api

HuggingChat Python API🤗
GNU Affero General Public License v3.0
859 stars 123 forks source link

Web Search is Not working Properly also now Hugchat can perform web searchs with it's own in that case getting "KeyError":' hostname' #229

Closed Nitin-749 closed 5 months ago

Nitin-749 commented 5 months ago

Describing the bug Whenever we search with web_search parameter as True, it just sends an Empty response, on Website something will be shown like Image 1 attached. response And In Debbuger it throws Error:- Error in Debugging

Not Only when web_search parameter is set as True or Not anytime if LLM performs a Websearch it either parameter is on or off it throws same Error, this may due to the Working of huggingface.co has been changed, I know we have to either enable or disable the web_search through the Toggle provided by the Website but now LLM on it's own can Decide what to do.

Expected behavior I think we should able to fetch the content of Websearch, also where are other assistants that can performs Image Generations so I think we should Intregate them also, can you do that?

Additional context Using Windows 10 Using Python Version 3.11.9 Using hugchat version 0.4.5

github-actions[bot] commented 5 months ago

Hi! Thanks for your issue, we will deal with your issue as soon as possible.

Nitin-749 commented 5 months ago

Describing the bug Whenever we search with web_search parameter as True, it just sends an Empty response, on Website something will be shown like Image 1 attached. response And In Debbuger it throws Error:- Error in Debugging

Not Only when web_search parameter is set as True or Not anytime if LLM performs a Websearch it either parameter is on or off it throws same Error, this may due to the Working of huggingface.co has been changed, I know we have to either enable or disable the web_search through the Toggle provided by the Website but now LLM on it's own can Decide what to do.

Expected behavior I think we should able to fetch the content of Websearch, also where are other assistants that can performs Image Generations so I think we should Intregate them also, can you do that?

Additional context Using Windows 10 Using Python Version 3.11.9 Using hugchat version 0.4.5

Sorry When Later Checked there was an Update in Version everything works fine now, once again sorry for Issuing this