Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(llm-connections): show bedrock error (#6000)

Hassieb Pakzad136f8a3e83e9
diff --git a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
index 32a09a61fd..4680bfb6e6 100644
--- a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
+++ b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
@@ -199,7 +199,7 @@ export function CreateLLMApiKeyForm({
if (!testResult.success) throw new Error(testResult.error);
} catch (error) {
console.error(error);
- form.setError("secretKey", {
+ form.setError("root", {
type: "manual",
message:
error instanceof Error
@@ -577,7 +577,9 @@ export function CreateLLMApiKeyForm({
Save new LLM API key
</Button>
- <FormMessage />
+ {form.formState.errors.root && (
+ <FormMessage>{form.formState.errors.root.message}</FormMessage>
+ )}
</form>
</Form>
);