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

Function NewThinkingErrorWithModel

internal/thinking/errors.go:71–77  ·  view source on GitHub ↗

NewThinkingErrorWithModel creates a new ThinkingError with model context.

(code ErrorCode, message, model string)

Source from the content-addressed store, hash-verified

69
70// NewThinkingErrorWithModel creates a new ThinkingError with model context.
71func NewThinkingErrorWithModel(code ErrorCode, message, model string) *ThinkingError {
72 return &ThinkingError{
73 Code: code,
74 Message: message,
75 Model: model,
76 }
77}
78
79// StatusCode implements a portable status code interface for HTTP handlers.
80func (e *ThinkingError) StatusCode() int {

Callers 1

ValidateConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected