Created
January 10, 2025 01:11
-
-
Save revolunet/da5685508764b27cbf2261f8a1d8efed to your computer and use it in GitHub Desktop.
curl + jq + ollama FTW
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run query from a plain prompt text file | |
jq -Rs '{ stream: false, model: "llama3.2", prompt: . }' ./some.prompt | curl -X POST http://127.0.0.1:11434/api/generate --data-binary @- | jq -r '.response' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment