MCPcopy
hub / github.com/QuantumNous/new-api / newAPIErrorFromParamOverride

Function newAPIErrorFromParamOverride

relay/param_override_error.go:8–13  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

6)
7
8func newAPIErrorFromParamOverride(err error) *types.NewAPIError {
9 if fixedErr, ok := relaycommon.AsParamOverrideReturnError(err); ok {
10 return relaycommon.NewAPIErrorFromParamOverride(fixedErr)
11 }
12 return types.NewError(err, types.ErrorCodeChannelParamOverrideInvalid, types.ErrOptionWithSkipRetry())
13}

Callers 9

ClaudeHelperFunction · 0.85
TextHelperFunction · 0.85
GeminiHelperFunction · 0.85
GeminiEmbeddingHandlerFunction · 0.85
EmbeddingHelperFunction · 0.85
ResponsesHelperFunction · 0.85
RerankHelperFunction · 0.85
ImageHelperFunction · 0.85

Calls 2

NewErrorFunction · 0.92
ErrOptionWithSkipRetryFunction · 0.92

Tested by

no test coverage detected