Fix/multiple generation (#104)

* fixes #100

* Fix test

* fix: fix bad configuration issue
This commit is contained in:
Abhishek 2026-01-03 12:59:18 +05:30 committed by GitHub
parent 90b690efff
commit 56953bbd09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 758 additions and 460 deletions

View file

@ -27,6 +27,8 @@ import {
type KeyValueItem,
ParameterEditor,
type ToolParameter,
UrlInput,
validateUrl,
} from "@/components/http";
import { Button } from "@/components/ui/button";
import {
@ -151,8 +153,9 @@ export default function ToolDetailPage() {
const handleSave = async () => {
// Validate URL
if (!url.trim()) {
setError("URL is required");
const urlValidation = validateUrl(url);
if (!urlValidation.valid) {
setError(urlValidation.error || "Invalid URL");
return;
}
@ -431,10 +434,11 @@ const data = await response.json();`;
<div className="grid gap-2">
<Label>Endpoint URL</Label>
<Input
<UrlInput
value={url}
onChange={(e) => setUrl(e.target.value)}
onChange={setUrl}
placeholder="https://api.example.com/appointments"
showValidation
/>
</div>
</TabsContent>