{"record":{"id":"64c9dfafef04e072","repo":"router-for-me/CLIProxyAPI","slug":"invalid-disable-image-generation-value-q-allowed","errorCode":null,"errorMessage":"invalid disable-image-generation value %q (allowed: true, false, chat, passthrough)","messagePattern":"invalid disable-image-generation value %q \\(allowed: true, false, chat, passthrough\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/config/disable_image_generation_mode.go","lineNumber":145,"sourceCode":"\tif err := json.Unmarshal(trimmed, &s); err != nil {\n\t\treturn DisableImageGenerationOff, fmt.Errorf(\"invalid disable-image-generation value\")\n\t}\n\treturn parseDisableImageGenerationString(s)\n}\n\nfunc parseDisableImageGenerationString(s string) (DisableImageGenerationMode, error) {\n\ts = strings.TrimSpace(strings.ToLower(s))\n\tswitch s {\n\tcase \"\", \"false\", \"0\", \"off\", \"no\":\n\t\treturn DisableImageGenerationOff, nil\n\tcase \"true\", \"1\", \"on\", \"yes\":\n\t\treturn DisableImageGenerationAll, nil\n\tcase \"chat\":\n\t\treturn DisableImageGenerationChat, nil\n\tcase \"passthrough\":\n\t\treturn DisableImageGenerationPassthrough, nil\n\tdefault:\n\t\treturn DisableImageGenerationOff, fmt.Errorf(\"invalid disable-image-generation value %q (allowed: true, false, chat, passthrough)\", s)\n\t}\n}\n","sourceCodeStart":127,"sourceCodeEnd":148,"githubUrl":"https://github.com/router-for-me/CLIProxyAPI/blob/78f0c4079e3e6273d65d03b5549cffc898703264/internal/config/disable_image_generation_mode.go#L127-L148","documentation":"Error \"invalid disable-image-generation value %q (allowed: true, false, chat, passthrough)\" thrown in router-for-me/CLIProxyAPI.","triggerScenarios":"Thrown at internal/config/disable_image_generation_mode.go:145 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Replace the quoted invalid value with one of the allowed values: true, false, chat, passthrough.","Fix the disable-image-generation entry in config.yaml and reload."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"78f0c4079e3e6273d65d03b5549cffc898703264","analyzedAt":"2026-08-15T12:26:37.444Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}