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

Function isModelSupportError

sdk/cliproxy/auth/conductor.go:3959–3968  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

3957}
3958
3959func isModelSupportError(err error) bool {
3960 if err == nil {
3961 return false
3962 }
3963 status := statusCodeFromError(err)
3964 if status != http.StatusBadRequest && status != http.StatusUnprocessableEntity {
3965 return false
3966 }
3967 return isModelSupportErrorMessage(err.Error())
3968}
3969
3970func isModelSupportResultError(err *Error) bool {
3971 if err == nil {

Callers 1

isRequestInvalidErrorFunction · 0.85

Calls 3

statusCodeFromErrorFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected