mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-07 11:45:21 +00:00
update readme
This commit is contained in:
parent
89f3bae306
commit
30823ec925
@ -2,15 +2,24 @@
|
|||||||
|
|
||||||
### To run
|
### To run
|
||||||
`make {/path/to/whisper.cpp/server}`
|
`make {/path/to/whisper.cpp/server}`
|
||||||
|
- replace `whisperServer` in `routes.go` with path to server
|
||||||
|
|
||||||
|
## CLI
|
||||||
|
`./ollama run llama3 [PROMPT] --speech`
|
||||||
|
- processes voice audio with the provided prompt
|
||||||
|
|
||||||
|
`./ollama run llama3 --speech`
|
||||||
|
- enters interactive mode for continuous voice chat
|
||||||
|
- TODO: fix exiting interactive mode
|
||||||
|
|
||||||
|
Notes: uses default model
|
||||||
|
|
||||||
### Update routes.go
|
|
||||||
- replace `whisperServer` with path to server
|
|
||||||
|
|
||||||
## api/generate
|
## api/generate
|
||||||
### Request fields
|
### Request fields
|
||||||
- `speech` (required):
|
- `speech` (required):
|
||||||
- `audio` (required): path to audio file
|
- `audio` (required): path to audio file
|
||||||
- `model` (required): path to whisper model
|
- `model` (optional): path to whisper model, uses default if null
|
||||||
- `transcribe` (optional): if true, will transcribe and return the audio file
|
- `transcribe` (optional): if true, will transcribe and return the audio file
|
||||||
- `keep_alive`: (optional): sets how long the model is stored in memory (default: `5m`)
|
- `keep_alive`: (optional): sets how long the model is stored in memory (default: `5m`)
|
||||||
- `prompt` (optional): if not null, passed in with the transcribed audio
|
- `prompt` (optional): if not null, passed in with the transcribed audio
|
||||||
@ -45,9 +54,10 @@ curl http://localhost:11434/api/generate -d '{
|
|||||||
## api/chat
|
## api/chat
|
||||||
### Request fields
|
### Request fields
|
||||||
- `model` (required): language model to chat with
|
- `model` (required): language model to chat with
|
||||||
- `speech` (required):
|
- `speech` (optional):
|
||||||
- `model` (required): path to whisper model
|
- `model` (optional): path to whisper model, uses default if null
|
||||||
- `keep_alive`: (optional): sets how long the model is stored in memory (default: `5m`)
|
- `keep_alive`: (optional): sets how long the model is stored in memory (default: `5m`)
|
||||||
|
- `run_speech` (optional): either this flag must be true or `speech` must be passed in for speech mode to run
|
||||||
- `messages`/`message`/`audio` (required): path to audio file
|
- `messages`/`message`/`audio` (required): path to audio file
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user