Soulter / hugging-chat-api

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

fix: remove 'hostname' property from WebSearchSource #218

Closed TribSTox closed 6 months ago

TribSTox commented 6 months ago

The 'hostname' property is no longer present in the JSON response, causing errors in the web search functionality. This commit removes the 'hostname' attribute from the WebSearchSource class and updates the Message class to handle the updated JSON structure correctly.

This fix resolves the issue where the web search results were causing errors due to the missing 'hostname' property.