reasoning_effort.go 785 B

123456789101112131415161718192021
  1. package domain
  2. const (
  3. ReasoningEffortMatchExact = "exact"
  4. ReasoningEffortMatchPrefix = "prefix"
  5. ReasoningEffortMatchSuffix = "suffix"
  6. )
  7. // ReasoningEffortMapping rewrites one explicit OpenAI/Codex reasoning effort
  8. // value to another before the group ceiling is applied. To may also be "deny"
  9. // to reject the request when the matching source value is present.
  10. //
  11. // Model and MatchType optionally scope the rewrite to a request model:
  12. // exact matches the full model id, prefix/suffix match a model-id affix.
  13. // Empty MatchType and empty Model mean the mapping applies to every model.
  14. type ReasoningEffortMapping struct {
  15. From string `json:"from"`
  16. To string `json:"to"`
  17. MatchType string `json:"match_type,omitempty"`
  18. Model string `json:"model,omitempty"`
  19. }