summary refs log tree commit diff stats
path: root/ollama/ollama.py
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-05-29 15:10:41 +0000
committerChristian Krinitsin <mail@krinitsin.com>2025-05-29 15:10:41 +0000
commitcb7d17990cf4ed2a1e45b5f92c0209563b87afb4 (patch)
treecc578e254f7bfaa1146cf1e355a8f355cfc0e936 /ollama/ollama.py
parentdbbaa64f16cef5a2b32056a67433116dab84ab81 (diff)
downloadqemu-analysis-cb7d17990cf4ed2a1e45b5f92c0209563b87afb4.tar.gz
qemu-analysis-cb7d17990cf4ed2a1e45b5f92c0209563b87afb4.zip
add ollama test script
Diffstat (limited to 'ollama/ollama.py')
-rwxr-xr-xollama/ollama.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/ollama/ollama.py b/ollama/ollama.py
deleted file mode 100755
index ea183b398..000000000
--- a/ollama/ollama.py
+++ /dev/null
@@ -1,17 +0,0 @@
-from ollama import chat, ChatResponse
-
-model = "deepseek-r1:70b"
-
-response: ChatResponse = chat(
-    model=model, messages=[
-        {
-            'role': 'user',
-            'content': 'Hello, how are you?',
-        }
-    ],
-    stream=True
-)
-
-for chunk in response:
-    print(chunk['message']['content'], end='', flush=True)
-print("\n")