error handling

This commit is contained in:
Roy Han
2024-08-06 11:45:13 -07:00
parent 2a9feb0707
commit a5181a8c51
3 changed files with 9 additions and 7 deletions

View File

@@ -457,7 +457,8 @@ type GenerateResponse struct {
}
type WhisperCompletion struct {
Text string `json:"text"`
Text string `json:"text"`
Error string `json:"error,omitempty"`
}
// ModelDetails provides details about a model.