Skip to content

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

fix(web): contain long provider error in New LLM Connection modal (#14499)

Nikita Kabardin5d403e392674
diff --git a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
index 6f9eda9c33..66c6142e8c 100644
--- a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
+++ b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
@@ -1377,7 +1377,7 @@ export function CreateLLMApiKeyForm({
</DialogBody>
<DialogFooter>
- <div className="flex flex-col gap-4">
+ <div className="flex min-w-0 flex-col gap-4">
{showOtherModelInfo ? (
<Button
type="button"
@@ -1396,7 +1396,11 @@ export function CreateLLMApiKeyForm({
</Button>
)}
{form.formState.errors.root && (
- <FormMessage>{form.formState.errors.root.message}</FormMessage>
+ <div className="max-h-32 overflow-y-auto">
+ <FormMessage className="break-words wrap-anywhere">
+ {form.formState.errors.root.message}
+ </FormMessage>
+ </div>
)}
</div>
</DialogFooter>