Input and results

This commit is contained in:
2026-05-16 16:20:12 +02:00
parent 27783e7efb
commit b24657e7bf
6 changed files with 26 additions and 5 deletions

15
check_connection.py Normal file
View File

@ -0,0 +1,15 @@
import requests
url = "http://127.0.0.1:11434/api/generate"
payload = {
"model": "llama3.2-vision",
"prompt": "Csak ezt írd vissza: ok",
"stream": False
}
r = requests.post(url, json=payload, timeout=60)
r.raise_for_status()
data = r.json()
print(data["response"])