Input and results
This commit is contained in:
15
check_connection.py
Normal file
15
check_connection.py
Normal 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"])
|
||||
Reference in New Issue
Block a user