Files
AgentCompany/paperclip-reference/ui/src/adapters/http/build-config.ts
T
2026-03-25 23:46:16 -04:00

10 lines
291 B
TypeScript

import type { CreateConfigValues } from "../../components/AgentConfigForm";
export function buildHttpConfig(v: CreateConfigValues): Record<string, unknown> {
const ac: Record<string, unknown> = {};
if (v.url) ac.url = v.url;
ac.method = "POST";
ac.timeoutMs = 15000;
return ac;
}