deedy5 / duckduckgo_search

Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com search engine. Downloading files and images to a local hard drive.
MIT License
927 stars 117 forks source link

[PR revoked] add llama-3 and mixtral model for ai chat #225

Closed hjlarry closed 2 weeks ago

hjlarry commented 3 weeks ago

Hi,the duckduckgo now support two more models

I added them and tested locally.

20240610115027

PeteHemery commented 3 weeks ago

You might want to add this too

diff --git a/duckduckgo_search/cli.py b/duckduckgo_search/cli.py
index deccd8c..1b609f6 100644
--- a/duckduckgo_search/cli.py
+++ b/duckduckgo_search/cli.py
@@ -137,7 +137,7 @@ def version():
 def chat(save, proxy):
     """CLI function to perform an interactive AI chat using DuckDuckGo API."""
     cache_file = "ddgs_chat_conversation.json"
-    models = ["gpt-3.5", "claude-3-haiku"]
+    models = ["gpt-3.5", "claude-3-haiku", "llama-3", "mixtral"]
     client = DDGS(proxy=proxy)

     print("DuckDuckGo AI chat. Available models:")
hjlarry commented 3 weeks ago

You might want to add this too

diff --git a/duckduckgo_search/cli.py b/duckduckgo_search/cli.py
index deccd8c..1b609f6 100644
--- a/duckduckgo_search/cli.py
+++ b/duckduckgo_search/cli.py
@@ -137,7 +137,7 @@ def version():
 def chat(save, proxy):
     """CLI function to perform an interactive AI chat using DuckDuckGo API."""
     cache_file = "ddgs_chat_conversation.json"
-    models = ["gpt-3.5", "claude-3-haiku"]
+    models = ["gpt-3.5", "claude-3-haiku", "llama-3", "mixtral"]
     client = DDGS(proxy=proxy)

     print("DuckDuckGo AI chat. Available models:")

yes, I forgot to add it, thanks!

hjlarry commented 3 weeks ago

There will probably be some other models appearing there, so it is advisable to name them more specifically: "llama-3-70b", "mixtral-8x7b"

Ok, I have already renamed them, please review it.

deedy5 commented 2 weeks ago

Changes reverted, not working. Need to add tests for specific models as well.