openai_compaction.go 516 B

1234567891011121314151617181920
  1. package dto
  2. import (
  3. "encoding/json"
  4. "github.com/QuantumNous/new-api/types"
  5. )
  6. type OpenAIResponsesCompactionResponse struct {
  7. ID string `json:"id"`
  8. Object string `json:"object"`
  9. CreatedAt int `json:"created_at"`
  10. Output json.RawMessage `json:"output"`
  11. Usage *Usage `json:"usage"`
  12. Error any `json:"error,omitempty"`
  13. }
  14. func (o *OpenAIResponsesCompactionResponse) GetOpenAIError() *types.OpenAIError {
  15. return GetOpenAIError(o.Error)
  16. }