stable ver:
import requests
import json # ✅ This is the correct module to use
def talk_to_waifu(prompt):
response = requests.post(
"http://localhost:11434/api/generate",
json={"model": "llama3", "prompt": prompt},
stream=True
)
full_reply = ""
for line...