Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
add finish_reason
Browse files Browse the repository at this point in the history
  • Loading branch information
cubatic45 committed Mar 19, 2024
1 parent 0ef7ed2 commit 9a5a155
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ type streamOutput struct {
Model string `json:"model"`
SystemFingerprint any `json:"system_fingerprint,omitempty"`
Choices []struct {
Index int `json:"index"`
Delta struct {
Index int `json:"index"`
FinishReason string `json:"finish_reason"`
Delta struct {
Role string `json:"role"`
Content string `json:"content"`
} `json:"delta"`
Expand Down

0 comments on commit 9a5a155

Please sign in to comment.