mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-03-30 05:20:18 +00:00
* feat: openai response /v1/response/compact * feat: /v1/response/compact bill * feat: /v1/response/compact * feat: /v1/responses/compact -> codex channel * feat: /v1/responses/compact -> codex channel * feat: /v1/responses/compact -> codex channel * feat: codex channel default models * feat: compact model price * feat: /v1/responses/comapct test
21 lines
516 B
Go
21 lines
516 B
Go
package dto
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
"github.com/QuantumNous/new-api/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)
|
|
}
|