mirror of
https://github.com/mudler/LocalAI.git
synced 2025-03-12 07:24:00 +00:00
* squash past, centralize request middleware PR Signed-off-by: Dave Lee <dave@gray101.com> * migrate bruno request files to examples repo Signed-off-by: Dave Lee <dave@gray101.com> * fix Signed-off-by: Dave Lee <dave@gray101.com> * Update tests/e2e-aio/e2e_test.go Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com> --------- Signed-off-by: Dave Lee <dave@gray101.com> Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com> Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
17 lines
383 B
Go
17 lines
383 B
Go
package schema
|
|
|
|
import "time"
|
|
|
|
type TranscriptionSegment struct {
|
|
Id int `json:"id"`
|
|
Start time.Duration `json:"start"`
|
|
End time.Duration `json:"end"`
|
|
Text string `json:"text"`
|
|
Tokens []int `json:"tokens"`
|
|
}
|
|
|
|
type TranscriptionResult struct {
|
|
Segments []TranscriptionSegment `json:"segments"`
|
|
Text string `json:"text"`
|
|
}
|