import requests | |
import json | |
reqUrl = "http://localhost:11434/api/pull" | |
headersList = { | |
"Accept": "*/*", | |
"Content-Type": "application/json" | |
} | |
payload = json.dumps({ | |
"name": "gemma:7b" | |
}) | |
response = requests.request("POST", reqUrl, data=payload, headers=headersList) | |
print(response.text) |