AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(backend): Add migrations to fix credentials inputs with invalid provider "llm" (vol. 2)
Reinier van der Leer2a66295a929c
diff --git a/autogpt_platform/backend/migrations/20241115170707_fix_llm_provider_credentials/migration.sql b/autogpt_platform/backend/migrations/20241115170707_fix_llm_provider_credentials/migration.sqlindex 5a145caf9e..59b1d0b059 100644--- a/autogpt_platform/backend/migrations/20241115170707_fix_llm_provider_credentials/migration.sql+++ b/autogpt_platform/backend/migrations/20241115170707_fix_llm_provider_credentials/migration.sql@@ -7,7 +7,7 @@ SET "constantInput" = JSONB_SET(WHEN "constantInput"::jsonb->'credentials'->>'id' = '53c25cb8-e3ee-465c-a4d1-e75a4c899c2a' THEN '"openai"'::jsonbWHEN "constantInput"::jsonb->'credentials'->>'id' = '24e5d942-d9e3-4798-8151-90143ee55629' THEN '"anthropic"'::jsonbWHEN "constantInput"::jsonb->'credentials'->>'id' = '4ec22295-8f97-4dd1-b42b-2c6957a02545' THEN '"groq"'::jsonb- ELSE ("constantInput"::jsonb->'credentials'->>'provider')::jsonb+ ELSE "constantInput"::jsonb->'credentials'->'provider'END)::textWHERE "constantInput"::jsonb->'credentials'->>'provider' = 'llm';