dto.go 398 B

12345678910111213141516171819
  1. package replicate
  2. type PredictionResponse struct {
  3. Status string `json:"status"`
  4. Output any `json:"output"`
  5. Error *PredictionError `json:"error"`
  6. }
  7. type PredictionError struct {
  8. Code string `json:"code"`
  9. Message string `json:"message"`
  10. Detail string `json:"detail"`
  11. }
  12. type FileUploadResponse struct {
  13. Urls struct {
  14. Get string `json:"get"`
  15. } `json:"urls"`
  16. }