2025-06-05 17:35:48 +08:00
|
|
|
package openrouter
|
|
|
|
|
|
2025-09-28 15:23:27 +08:00
|
|
|
import "encoding/json"
|
|
|
|
|
|
2025-06-05 17:35:48 +08:00
|
|
|
type RequestReasoning struct {
|
2026-03-05 06:12:48 +08:00
|
|
|
Enabled bool `json:"enabled"`
|
2025-06-05 17:35:48 +08:00
|
|
|
// One of the following (not both):
|
|
|
|
|
Effort string `json:"effort,omitempty"` // Can be "high", "medium", or "low" (OpenAI-style)
|
|
|
|
|
MaxTokens int `json:"max_tokens,omitempty"` // Specific token limit (Anthropic-style)
|
|
|
|
|
// Optional: Default is false. All models support this.
|
|
|
|
|
Exclude bool `json:"exclude,omitempty"` // Set to true to exclude reasoning tokens from response
|
|
|
|
|
}
|
2025-09-28 15:23:27 +08:00
|
|
|
|
|
|
|
|
type OpenRouterEnterpriseResponse struct {
|
|
|
|
|
Data json.RawMessage `json:"data"`
|
|
|
|
|
Success bool `json:"success"`
|
|
|
|
|
}
|