added command line model invocations (to test)
This commit is contained in:
parent
bef020e9f8
commit
64aa99f791
|
|
@ -33,8 +33,13 @@ Then open:
|
||||||
Quick sanity-check that Ollama is up:
|
Quick sanity-check that Ollama is up:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# List installed models
|
||||||
curl http://localhost:11434/api/tags # bash/zsh
|
curl http://localhost:11434/api/tags # bash/zsh
|
||||||
Invoke-RestMethod http://localhost:11434/api/tags # PowerShell
|
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
|
## Connect Cursor
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue