MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / ProviderApplier

Interface ProviderApplier

internal/thinking/types.go:107–119  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

105// - Returns a modified copy of the request body
106// - Returns appropriate ThinkingError for unsupported configurations
107type 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}

Callers 3

ApplyThinkingFunction · 0.65
applyUserDefinedModelFunction · 0.65
applyPprofConfigMethod · 0.65

Implementers 8

thinkingAdapterinternal/pluginhost/adapters.go
Applierinternal/thinking/provider/gemini/appl
Applierinternal/thinking/provider/openai/appl
Applierinternal/thinking/provider/antigravity
Applierinternal/thinking/provider/codex/apply
Applierinternal/thinking/provider/claude/appl
Applierinternal/thinking/provider/kimi/apply.
pprofServersdk/cliproxy/pprof_server.go

Calls

no outgoing calls

Tested by

no test coverage detected