mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-21 11:04:59 +00:00
fix: make completions endpoint more close to OpenAI specification (#790)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
26e1496075
commit
94817b557c
3 changed files with 4 additions and 4 deletions
|
@ -46,7 +46,7 @@ type OpenAIResponse struct {
|
|||
}
|
||||
|
||||
type Choice struct {
|
||||
Index int `json:"index,omitempty"`
|
||||
Index int `json:"index"`
|
||||
FinishReason string `json:"finish_reason,omitempty"`
|
||||
Message *Message `json:"message,omitempty"`
|
||||
Delta *Message `json:"delta,omitempty"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue