mirror of
https://github.com/ollama/ollama-python.git
synced 2026-06-06 00:04:47 +00:00
examples: fix model web search (#589)
This commit is contained in:
@@ -49,7 +49,7 @@ print('Query: ', query)
|
||||
|
||||
messages = [{'role': 'user', 'content': query}]
|
||||
while True:
|
||||
response = chat(model='deepseek-v3.1:671b-cloud', messages=messages, tools=[web_search, web_fetch], think=True)
|
||||
response = chat(model='qwen3', messages=messages, tools=[web_search, web_fetch], think=True)
|
||||
if response.message.thinking:
|
||||
print('Thinking: ')
|
||||
print(response.message.thinking + '\n\n')
|
||||
|
||||
Reference in New Issue
Block a user