{"record":{"id":"09f32291b74483d1","repo":"chroma-core/chroma","slug":"model-name-cannot-be-updated-09f322","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/jina/src/index.ts","lineNumber":171,"sourceCode":"    });\n  }\n\n  public getConfig(): JinaConfig {\n    return {\n      api_key_env_var: this.apiKeyEnvVar,\n      model_name: this.modelName,\n      task: this.task,\n      late_chunking: this.lateChunking,\n      truncate: this.truncate,\n      dimensions: this.dimensions,\n      embedding_type: this.embeddingType,\n      normalized: this.normalized,\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: JinaConfig): void {\n    validateConfigSchema(config, NAME);\n  }\n}\n\nregisterEmbeddingFunction(NAME, JinaEmbeddingFunction);\n","sourceCodeStart":153,"sourceCodeEnd":181,"githubUrl":"https://github.com/chroma-core/chroma/blob/aecdd12c8a891610db8653630b066b32ceb678b5/clients/new-js/packages/ai-embeddings/jina/src/index.ts#L153-L181","documentation":"Error \"Model name cannot be updated\" thrown in chroma-core/chroma.","triggerScenarios":"Thrown at clients/new-js/packages/ai-embeddings/jina/src/index.ts:171 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"}