{"record":{"id":"03e6db236ed08482","repo":"Budibase/budibase","slug":"error-updating-configuration-message","errorCode":null,"errorMessage":"Error updating configuration: ${message}","messagePattern":"Error updating configuration: (.+?)","errorType":"http","errorClass":"HTTPError","httpStatus":400,"severity":"error","filePath":"packages/server/src/sdk/workspace/ai/configs/litellm.ts","lineNumber":296,"sourceCode":"      litellm_params: litellmParams,\n      model_info: {\n        updated_at: new Date().toISOString(),\n        updated_by: (context.getIdentity() as UserContext)?.email,\n      },\n    }),\n  }\n\n  const res = await fetch(\n    `${liteLLMUrl}/model/${llmModelId}/update`,\n    requestOptions\n  )\n  if (!res.ok) {\n    const json = await res.json()\n    const message = sanitizeLiteLLMErrorMessage(\n      json.error?.message || json.result?.error\n    )\n\n    throw new HTTPError(\n      [`Error updating configuration`, message].filter(Boolean).join(\": \"),\n      res.status || 400\n    )\n  }\n\n  const json = await res.json()\n  if (json?.status && json.status !== \"success\") {\n    const message = sanitizeLiteLLMErrorMessage(\n      json.error?.message || json.result?.error\n    )\n    throw new HTTPError(\n      [\"Error updating configuration\", message].filter(Boolean).join(\": \"),\n      400\n    )\n  }\n}\n\nasync function validateCompletionsModel(model: {","sourceCodeStart":278,"sourceCodeEnd":314,"githubUrl":"https://github.com/Budibase/budibase/blob/a81a902e9a8fe55b467d106765f6638f12e35c49/packages/server/src/sdk/workspace/ai/configs/litellm.ts#L278-L314","documentation":"Error \"Error updating configuration: ${message}\" thrown in Budibase/budibase.","triggerScenarios":"Thrown at packages/server/src/sdk/workspace/ai/configs/litellm.ts:296 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":"a81a902e9a8fe55b467d106765f6638f12e35c49","analyzedAt":"2026-08-29T01:03:10.972Z","schemaVersion":2},"datasetVersion":"2026-08-29T02:17:18.158Z"}