You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ curl -X POST http:https://localhost:11434/api/generate -d '{ "model": "mistral", "prompt":"Here is a story about llamas eating grass" }'
{"model":"mistral","created_at":"2024-06-18T08:03:01.76453978Z","response":" Title","done":false}
{"model":"mistral","created_at":"2024-06-18T08:03:02.057336093Z","response":":","done":false}
{"model":"mistral","created_at":"2024-06-18T08:03:02.346361586Z","response":" The","done":false}
{"model":"mistral","created_at":"2024-06-18T08:03:02.55772899Z","response":" L","done":false}
{"model":"mistral","created_at":"2024-06-18T08:03:02.670552331Z","response":"l","done":false}
{"model":"mistral","created_at":"2024-06-18T08:03:02.784986299Z","response":"ama","done":false}
{"model":"mistral","created_at":"2024-06-18T08:03:02.891749852Z","response":" G","done":false}
{"model":"mistral","created_at":"2024-06-18T08:03:02.995237782Z","response":"raz","done":false}
{"model":"mistral","created_at":"2024-06-18T08:03:03.102841835Z","response":"ers","done":false}
{"model":"mistral","created_at":"2024-06-18T08:03:03.229874023Z","response":" of","done":false}
{"model":"mistral","created_at":"2024-06-18T08:03:03.334951599Z","response":" the","done":false}
^C
Looks like everything is working well except the Querying done in the notebook. In fact, the server seems to work without failure using requests:
In [13]: payload= {"model":"mistral", "prompt": "is the sky blue ?", "stream": False}
In [14]: r=requests.post('http:https://localhost:11434/api/generate', json=payload)
In [15]: rOut[15]: <Response [200]>
The text was updated successfully, but these errors were encountered:
Really sorry but I have made a mistake. In fact, I ran Ollama with ollama run mistral instead of the needed one ollama run mistral:instruct. Works fine with mistral:instruct.
I am trying to run Ollama <> Mistral <> LlamaIndex Cookbook's notebook.
The Querying part of the notebook raises a
HTTPStatusError
:I have installed all the needed packages to run the notebook, from Ollama and pip.
In addition, the Ollama server is running and I can query it with the example curl code from the documentation:
Looks like everything is working well except the Querying done in the notebook. In fact, the server seems to work without failure using requests:
The text was updated successfully, but these errors were encountered: