On a windows 11 machine, I am trying to get a json reponse from the llama3 model on my local ollama installation on jupyter notebook but it does not work Steps I tried: This below snippet works import ollama prompt = "What is the capital of France?" response = ollama.chat( model="llama3", messages=[{"role":"user","content":prompt}] ) print(response['message']['content']) But this one does not work: import requests def query_ollama(prompt: str,...
Originally asked by Pri on Stack Exchange (stackoverflow) (CC BY-SA 4.0).