{"record":{"id":"3ce19b36e0b62690","repo":"chroma-core/chroma","slug":"model-name-cannot-be-updated-3ce19b","errorCode":null,"errorMessage":"Model name cannot be updated","messagePattern":"Model name cannot be updated","errorType":"validation","errorClass":"ChromaValueError","httpStatus":null,"severity":"error","filePath":"clients/new-js/packages/ai-embeddings/cohere/src/index.ts","lineNumber":173,"sourceCode":"      embeddingType: config.embedding_type,\n      image: config.image,\n    });\n  }\n\n  getConfig(): CohereConfig {\n    return {\n      model_name: this.modelName,\n      api_key_env_var: this.apiKeyEnvVar,\n      input_type: this.inputType,\n      truncate: this.truncate,\n      embedding_type: this.embeddingType,\n      image: this.image,\n    };\n  }\n\n  public validateConfigUpdate(newConfig: Record<string, any>): void {\n    if (this.getConfig().model_name !== newConfig.model_name) {\n      throw new ChromaValueError(\"Model name cannot be updated\");\n    }\n  }\n\n  public static validateConfig(config: CohereConfig): void {\n    validateConfigSchema(config, NAME);\n  }\n}\n\nregisterEmbeddingFunction(NAME, CohereEmbeddingFunction);\n","sourceCodeStart":155,"sourceCodeEnd":183,"githubUrl":"https://github.com/chroma-core/chroma/blob/aecdd12c8a891610db8653630b066b32ceb678b5/clients/new-js/packages/ai-embeddings/cohere/src/index.ts#L155-L183","documentation":"Error \"Model name cannot be updated\" thrown in chroma-core/chroma.","triggerScenarios":"Thrown at clients/new-js/packages/ai-embeddings/cohere/src/index.ts:173 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":"aecdd12c8a891610db8653630b066b32ceb678b5","analyzedAt":"2026-08-16T21:53:27.228Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}