mirror of
https://github.com/ollama/ollama-python.git
synced 2026-01-14 06:07:17 +08:00
7 lines
208 B
Python
7 lines
208 B
Python
from ollama import generate
|
|
|
|
response = generate('deepseek-r1', 'why is the sky blue', think=True)
|
|
|
|
print('Thinking:\n========\n\n' + response.thinking)
|
|
print('\nResponse:\n========\n\n' + response.response)
|