Add done_reason

This commit is contained in:
jmorganca
2024-04-22 09:30:19 -04:00
parent 62be2050dd
commit e117483ef6
5 changed files with 70 additions and 36 deletions

View File

@@ -98,7 +98,8 @@ type ChatResponse struct {
CreatedAt time.Time `json:"created_at"`
Message Message `json:"message"`
Done bool `json:"done"`
Done bool `json:"done"`
DoneReason string `json:"done_reason,omitempty"`
Metrics
}
@@ -265,8 +266,9 @@ type GenerateResponse struct {
CreatedAt time.Time `json:"created_at"`
Response string `json:"response"`
Done bool `json:"done"`
Context []int `json:"context,omitempty"`
Done bool `json:"done"`
DoneReason string `json:"done_reason,omitempty"`
Context []int `json:"context,omitempty"`
Metrics
}