File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
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-tiny.en-q8_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
42
42
```
43
43
44
44
To list the models available, you can use the following command:
@@ -50,19 +50,19 @@ curl -X GET localhost:8080/v1/models
50
50
To delete a model, you can use the following command:
51
51
52
52
``` bash
53
- curl -X DELETE localhost:8080/v1/models/ggml-tiny.en-q8_0
53
+ curl -X DELETE localhost:8080/v1/models/ggml-medium-q5_0
54
54
```
55
55
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-tiny.en-q8_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
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-tiny.en-q8_0 " -F " file=@samples/de-podcast.wav" -F " language=en" localhost:8080/v1/audio/transcriptions
65
+ curl -F model=ggml-medium-q5_0 -F file=@samples/de-podcast.wav -F language=en localhost:8080/v1/audio/transcriptions\? stream=true
66
66
```
67
67
68
68
There's more information on the API [ here] ( doc/API.md ) .
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6T
26
26
github.com/mattn/go-runewidth v0.0.16 /go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w =
27
27
github.com/mutablelogic/go-client v1.0.9 h1:Eh4sjQOFDldP/L3IizqkcOD3WigZR+u1VaHTUM4ujYw =
28
28
github.com/mutablelogic/go-client v1.0.9 /go.mod h1:VLyB8j8IBJSK/FXvvqhmq93PRWDKkyLu8R7V2Vudb6A =
29
- github.com/mutablelogic/go-media v1.6.8 h1:3v4povSQlOnvg9mHx6Bp9NVdCCjrNdDCjMHBGFHnVE8 =
30
- github.com/mutablelogic/go-media v1.6.8 /go.mod h1:HulNT0yyH63a3FRlbuzNDakhOypYrmtFVkHEXZjDgAY =
29
+ github.com/mutablelogic/go-media v1.6.9 h1:jkmqrMo7yKXaYXkALBeyVGpV6tNNEf36tmxdOX06VXI =
30
+ github.com/mutablelogic/go-media v1.6.9 /go.mod h1:HulNT0yyH63a3FRlbuzNDakhOypYrmtFVkHEXZjDgAY =
31
31
github.com/mutablelogic/go-server v1.4.14 h1:MsYyS9MjBoYtWfJo/iw6DnZ8slnhakWhPPqVCuzuaV8 =
32
32
github.com/mutablelogic/go-server v1.4.14 /go.mod h1:9nenPAohKu8bFoRgwHJh+3s8h0kLFjUAb8KZvT1TQNU =
33
33
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
You can’t perform that action at this time.
0 commit comments