mirror of
https://github.com/ollama/ollama-python.git
synced 2026-09-02 09:49:54 +00:00
formatting fix
This commit is contained in:
@@ -78,7 +78,6 @@ def main() -> None:
|
|||||||
|
|
||||||
messages: List[Dict[str, Any]] = [{'role': 'user', 'content': query}]
|
messages: List[Dict[str, Any]] = [{'role': 'user', 'content': query}]
|
||||||
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
resp = client.chat(
|
resp = client.chat(
|
||||||
model='gpt-oss',
|
model='gpt-oss',
|
||||||
@@ -87,10 +86,10 @@ def main() -> None:
|
|||||||
think=True,
|
think=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
if resp.message.thinking:
|
if resp.message.thinking:
|
||||||
print('Thinking:\n========\n')
|
print('Thinking:\n========\n')
|
||||||
print(resp.message.thinking + '\n')
|
print(resp.message.thinking + '\n')
|
||||||
|
|
||||||
if resp.message.content:
|
if resp.message.content:
|
||||||
print('Response:\n========\n')
|
print('Response:\n========\n')
|
||||||
print(resp.message.content + '\n')
|
print(resp.message.content + '\n')
|
||||||
|
|||||||
Reference in New Issue
Block a user