Skip to content

Commit

Permalink
Update web_search.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian-Winter committed May 25, 2024
1 parent c12d772 commit dd37640
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, llm_provider: LlmProvider, message_formatter_type: MessagesFo
self.web_crawler = web_crawler

if web_search_provider is None:
self.web_search_provider = DDGWebSearchProvider
self.web_search_provider = DDGWebSearchProvider()
else:
self.web_search_provider = web_search_provider

Expand Down Expand Up @@ -67,7 +67,7 @@ def send_message_to_user(message: str):
add_tools_and_structures_documentation_to_system_prompt=True,
)

search_tool = DDGWebSearch(provider, MessagesFormatterType.CHATML)
search_tool = WebSearchTool(provider, MessagesFormatterType.CHATML)

settings = provider.get_provider_default_settings()

Expand Down

0 comments on commit dd37640

Please sign in to comment.