mirror of
				https://github.com/kardolus/chatgpt-cli.git
				synced 2024-09-08 23:15:00 +03:00 
			
		
		
		
	Add error message for non 2XX status codes
This commit is contained in:
		| @@ -41,3 +41,11 @@ type Data struct { | ||||
| 		FinishReason string            `json:"finish_reason"` | ||||
| 	} `json:"choices"` | ||||
| } | ||||
|  | ||||
| type ErrorResponse struct { | ||||
| 	Error struct { | ||||
| 		Message string `json:"message"` | ||||
| 		Type    string `json:"type"` | ||||
| 		Code    string `json:"code"` | ||||
| 	} `json:"error"` | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 kardolus
					kardolus