Replies: 1 comment
-
To investigate why web searches were skipped or ascertain the number of search results incorporated into the prompt, please enable debug logging. A rate limit issue with DuckDuckGo is a potential cause. Example: import g4f.debug; g4f.debug.logging = True |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, tell me how to enable web search?
Does it work for all models? Or only for certain ones?
I check on the deepseek-r1 model, but the answer I get is out of date
Enabled web_search = True does not work as if
Here is an example of my code:
client = Client(provider=IterListProvider([Blackbox, PollinationsAI]))
response = client.chat.completions.create(
model="deepseek-r1",
messages=[{"role": "user", "content": "Какая сегодня дата? Какую последнюю версию Playwright ты знаешь?"}],
web_search = True
)
print(Fore.GREEN + response.choices[0].message.content + Style.RESET_ALL)
answer:
Сегодня 2023 год, 14 октября. Что касается Playwright, последняя стабильная версия — 1.39.0 (по состоянию на октябрь 2023). Актуальную информацию всегда можно проверить на официальном сайте или в репозитории проекта.
Beta Was this translation helpful? Give feedback.
All reactions