Versions in this module Expand all Collapse all v6 v6.9.3 Mar 25, 2026 Changes in this version + const ThresholdHigh + const ThresholdLow + const ThresholdMedium + const ThresholdMinimal + func ApplyThinking(body []byte, model string, fromFormat string, toFormat string, ...) ([]byte, error) + func ConvertBudgetToLevel(budget int) (string, bool) + func ConvertLevelToBudget(level string) (int, bool) + func GetThinkingText(part gjson.Result) string + func HasLevel(levels []string, target string) bool + func IsUserDefinedModel(modelInfo *registry.ModelInfo) bool + func MapToClaudeEffort(level string, supportsMax bool) (string, bool) + func ParseNumericSuffix(rawSuffix string) (budget int, ok bool) + func RegisterProvider(name string, applier ProviderApplier) + func StripThinkingConfig(body []byte, provider string) []byte + type ErrorCode string + const ErrBudgetOutOfRange + const ErrInvalidSuffix + const ErrLevelNotSupported + const ErrProviderMismatch + const ErrThinkingNotSupported + const ErrUnknownLevel + type ModelCapability int + const CapabilityBudgetOnly + const CapabilityHybrid + const CapabilityLevelOnly + const CapabilityNone + const CapabilityUnknown + type ProviderApplier interface + Apply func(body []byte, config ThinkingConfig, modelInfo *registry.ModelInfo) ([]byte, error) + func GetProviderApplier(provider string) ProviderApplier + type SuffixResult struct + HasSuffix bool + ModelName string + RawSuffix string + func ParseSuffix(model string) SuffixResult + type ThinkingConfig struct + Budget int + Level ThinkingLevel + Mode ThinkingMode + func ValidateConfig(config ThinkingConfig, modelInfo *registry.ModelInfo, ...) (*ThinkingConfig, error) + type ThinkingError struct + Code ErrorCode + Details map[string]interface{} + Message string + Model string + func NewThinkingError(code ErrorCode, message string) *ThinkingError + func NewThinkingErrorWithModel(code ErrorCode, message, model string) *ThinkingError + func (e *ThinkingError) Error() string + func (e *ThinkingError) StatusCode() int + type ThinkingLevel string + const LevelAuto + const LevelHigh + const LevelLow + const LevelMax + const LevelMedium + const LevelMinimal + const LevelNone + const LevelXHigh + func ParseLevelSuffix(rawSuffix string) (level ThinkingLevel, ok bool) + type ThinkingMode int + const ModeAuto + const ModeBudget + const ModeLevel + const ModeNone + func ParseSpecialSuffix(rawSuffix string) (mode ThinkingMode, ok bool) + func (m ThinkingMode) String() string v6.9.2-rc1 Mar 25, 2026