versitile ooo

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-06-17 18:02:02 +02:00
parent be9f5c23e8
commit 5a242c60a5

View File

@@ -16,10 +16,10 @@ if len(sys.argv) < 2:
system_message = sys.argv[1] system_message = sys.argv[1]
input_text = sys.stdin.read() input_text = sys.stdin.read()
try: try:
response = ollama.chat(model='llama3.1:8b', messages=[ response = ollama.chat(model='gemma3:4b', messages=[
{ {
'role': 'system', 'role': 'system',
'content': "You are a text transformer. Follow the folling instruction:\n\n" + system_message + "\n\nOnly output the transformed text. Do not add any addidional conversation around the output. Just the result.", 'content': system_message,
}, },
{ {
'role': 'user', 'role': 'user',