added command line model invocations (to test)

This commit is contained in:
Gamosoft 2026-07-07 13:35:47 +02:00
parent bef020e9f8
commit 64aa99f791
1 changed files with 5 additions and 0 deletions

View File

@ -33,8 +33,13 @@ Then open:
Quick sanity-check that Ollama is up:
```bash
# List installed models
curl http://localhost:11434/api/tags # bash/zsh
Invoke-RestMethod http://localhost:11434/api/tags # PowerShell
# Actually poke the model
curl http://localhost:11434/api/generate -d '{"model":"qwen2.5:1.5b","prompt":"Finish the joke in one short sentence: Why do programmers prefer dark mode? Because...","stream":false}' # bash/zsh
Invoke-RestMethod http://localhost:11434/api/generate -Method Post -Body '{"model":"qwen2.5:1.5b","prompt":"Finish the joke in one short sentence: Why do programmers prefer dark mode? Because...","stream":false}' # PowerShell
```
## Connect Cursor