ProviderApplier defines the interface for provider-specific thinking configuration application. Types implementing this interface are responsible for converting a unified ThinkingConfig into provider-specific format and applying it to the request body. Implementation requirements: - Apply method m
| 105 | // - Returns a modified copy of the request body |
| 106 | // - Returns appropriate ThinkingError for unsupported configurations |
| 107 | type ProviderApplier interface { |
| 108 | // Apply applies the thinking configuration to the request body. |
| 109 | // |
| 110 | // Parameters: |
| 111 | // - body: Original request body JSON |
| 112 | // - config: Unified thinking configuration |
| 113 | // - modelInfo: Model registry information containing ThinkingSupport properties |
| 114 | // |
| 115 | // Returns: |
| 116 | // - Modified request body JSON |
| 117 | // - ThinkingError if the configuration is invalid or unsupported |
| 118 | Apply(body []byte, config ThinkingConfig, modelInfo *registry.ModelInfo) ([]byte, error) |
| 119 | } |
no outgoing calls
no test coverage detected