refactor: ChatCompletionStreamChoice.FinishReason from string to FinishReason (#372)
This commit is contained in:
@@ -15,7 +15,7 @@ type ChatCompletionStreamChoiceDelta struct {
|
|||||||
type ChatCompletionStreamChoice struct {
|
type ChatCompletionStreamChoice struct {
|
||||||
Index int `json:"index"`
|
Index int `json:"index"`
|
||||||
Delta ChatCompletionStreamChoiceDelta `json:"delta"`
|
Delta ChatCompletionStreamChoiceDelta `json:"delta"`
|
||||||
FinishReason string `json:"finish_reason"`
|
FinishReason FinishReason `json:"finish_reason"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ChatCompletionStreamResponse struct {
|
type ChatCompletionStreamResponse struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user