dto.go 617 B

1234567891011121314151617
  1. package openrouter
  2. import "encoding/json"
  3. type RequestReasoning struct {
  4. Enabled bool `json:"enabled"`
  5. // One of the following (not both):
  6. Effort string `json:"effort,omitempty"` // Can be "high", "medium", or "low" (OpenAI-style)
  7. MaxTokens int `json:"max_tokens,omitempty"` // Specific token limit (Anthropic-style)
  8. // Optional: Default is false. All models support this.
  9. Exclude bool `json:"exclude,omitempty"` // Set to true to exclude reasoning tokens from response
  10. }
  11. type OpenRouterEnterpriseResponse struct {
  12. Data json.RawMessage `json:"data"`
  13. Success bool `json:"success"`
  14. }