mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-18 20:27:57 +00:00
fix(sse): do not omit empty finish_reason (#1745)
Fixes https://github.com/mudler/LocalAI/issues/1744
This commit is contained in:
parent
0135e1e3b9
commit
aa098e4d0b
@ -49,7 +49,7 @@ type OpenAIResponse struct {
|
|||||||
|
|
||||||
type Choice struct {
|
type Choice struct {
|
||||||
Index int `json:"index"`
|
Index int `json:"index"`
|
||||||
FinishReason string `json:"finish_reason,omitempty"`
|
FinishReason string `json:"finish_reason"`
|
||||||
Message *Message `json:"message,omitempty"`
|
Message *Message `json:"message,omitempty"`
|
||||||
Delta *Message `json:"delta,omitempty"`
|
Delta *Message `json:"delta,omitempty"`
|
||||||
Text string `json:"text,omitempty"`
|
Text string `json:"text,omitempty"`
|
||||||
|
Loading…
Reference in New Issue
Block a user