28e53d90fc
- 统一 OpenAI 兼容 /v1 中继 + 渠道/额度/令牌/流水 - 各领域包:relay 模型网关、model 数据层、controller 管理 API
21 lines
525 B
Go
21 lines
525 B
Go
package dto
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
"github.com/QuantumNous/new-api/relaykit/types"
|
|
)
|
|
|
|
type OpenAIResponsesCompactionResponse struct {
|
|
ID string `json:"id"`
|
|
Object string `json:"object"`
|
|
CreatedAt int `json:"created_at"`
|
|
Output json.RawMessage `json:"output"`
|
|
Usage *Usage `json:"usage"`
|
|
Error any `json:"error,omitempty"`
|
|
}
|
|
|
|
func (o *OpenAIResponsesCompactionResponse) GetOpenAIError() *types.OpenAIError {
|
|
return GetOpenAIError(o.Error)
|
|
}
|