{"record":{"id":"65d8a3a78e5edb0e","repo":"sipeed/picoclaw","slug":"model-identifier-must-not-contain","errorCode":null,"errorMessage":"model identifier must not contain //","messagePattern":"model identifier must not contain //","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/config/config.go","lineNumber":862,"sourceCode":"\t\treturn fmt.Errorf(\"model is required\")\n\t}\n\tif _, err := providercommon.NormalizeToolSchemaTransform(c.ToolSchemaTransform); err != nil {\n\t\treturn err\n\t}\n\n\t// Reject whitespace in model identifier\n\tif strings.ContainsAny(c.Model, \" \\t\\n\\r\") {\n\t\treturn fmt.Errorf(\"model identifier contains whitespace\")\n\t}\n\n\t// Reject leading slash\n\tif strings.HasPrefix(c.Model, \"/\") {\n\t\treturn fmt.Errorf(\"model identifier must not start with /\")\n\t}\n\n\t// Reject consecutive slashes\n\tif strings.Contains(c.Model, \"//\") {\n\t\treturn fmt.Errorf(\"model identifier must not contain //\")\n\t}\n\treturn nil\n}\n\nfunc (c *ModelConfig) SetAPIKey(value string) {\n\tif len(c.APIKeys) > 0 {\n\t\tc.APIKeys[0].Set(value)\n\t} else {\n\t\tc.APIKeys = append(c.APIKeys, NewSecureString(value))\n\t}\n}\n\ntype ToolDiscoveryConfig struct {\n\tEnabled          bool `json:\"enabled\"            env:\"PICOCLAW_TOOLS_DISCOVERY_ENABLED\"`\n\tTTL              int  `json:\"ttl\"                env:\"PICOCLAW_TOOLS_DISCOVERY_TTL\"`\n\tMaxSearchResults int  `json:\"max_search_results\" env:\"PICOCLAW_MAX_SEARCH_RESULTS\"`\n\tUseBM25          bool `json:\"use_bm25\"           env:\"PICOCLAW_TOOLS_DISCOVERY_USE_BM25\"`\n\tUseRegex         bool `json:\"use_regex\"          env:\"PICOCLAW_TOOLS_DISCOVERY_USE_REGEX\"`","sourceCodeStart":844,"sourceCodeEnd":880,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/config/config.go#L844-L880","documentation":"Error \"model identifier must not contain //\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/config/config.go:862 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}