mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-30 09:28:51 +00:00
255748bcba
This PR specifically introduces a `core` folder and moves the following packages over, without any other changes: - `api/backend` - `api/config` - `api/options` - `api/schema` Once this is merged and we confirm there's no regressions, I can migrate over the remaining changes piece by piece to split up application startup, backend services, http, and mqtt as was the goal of the earlier PRs!
17 lines
331 B
Go
17 lines
331 B
Go
package schema
|
|
|
|
import "time"
|
|
|
|
type Segment struct {
|
|
Id int `json:"id"`
|
|
Start time.Duration `json:"start"`
|
|
End time.Duration `json:"end"`
|
|
Text string `json:"text"`
|
|
Tokens []int `json:"tokens"`
|
|
}
|
|
|
|
type Result struct {
|
|
Segments []Segment `json:"segments"`
|
|
Text string `json:"text"`
|
|
}
|