File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ available at `http://localhost:8080/v1` and it generally conforms to the
38
38
In order to download a model, you can use the following command (for example):
39
39
40
40
``` bash
41
- curl -X POST -H " Content-Type: application/json" -d ' {"Path" : "ggml-medium-q5_0.bin" }' localhost:8080/v1/models
41
+ curl -X POST -H " Content-Type: application/json" -d ' {"Path" : "ggml-medium-q5_0.bin" }' localhost:8080/v1/models\? stream=true
42
42
```
43
43
44
44
To list the models available, you can use the following command:
@@ -56,13 +56,13 @@ curl -X DELETE localhost:8080/v1/models/ggml-medium-q5_0
56
56
To transcribe a media file into it's original language, you can use the following command:
57
57
58
58
``` bash
59
- curl -F model=ggml-medium-q5_0 -F file=@samples/jfk.wav localhost:8080/v1/audio/transcriptions
59
+ curl -F model=ggml-medium-q5_0 -F file=@samples/jfk.wav localhost:8080/v1/audio/transcriptions\? stream=true
60
60
```
61
61
62
62
To translate a media file into a different language, you can use the following command:
63
63
64
64
``` bash
65
- curl -F model=ggml-medium-q5_0 -F file=@samples/de-podcast.wav -F language=en localhost:8080/v1/audio/transcriptions \? stream=true
65
+ curl -F model=ggml-medium-q5_0 -F file=@samples/de-podcast.wav -F language=en localhost:8080/v1/audio/translations \? stream=true
66
66
```
67
67
68
68
There's more information on the API [ here] ( doc/API.md ) .
You can’t perform that action at this time.
0 commit comments