OLLAMAAPIURL = 'http://localhost:11434/api/generate' OLLAMAMODEL =…
- User
OLLAMA_API_URL = 'http://localhost:11434/api/generate' OLLAMA_MODEL = 'mistral-small3.2:24b'
def query_ollama(prompt): payload = { "model": OLLAMA_MODEL, "prompt": prompt, "stream": False } try: res = requests.post(OLLAMA_API_URL, json=payload) res.raise_for_status() return res.json().get('response', '[No response]') except Exception as e: return f"[Error from Ollama: {str(e)}]"
what is this
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.