dto.go 586 B

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