mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-20 12:30:38 +09:00
10 lines
285 B
TypeScript
10 lines
285 B
TypeScript
|
|
import type { CreateConfigValues } from "@paperclip/adapter-utils";
|
||
|
|
|
||
|
|
export function buildOpenClawConfig(v: CreateConfigValues): Record<string, unknown> {
|
||
|
|
const ac: Record<string, unknown> = {};
|
||
|
|
if (v.url) ac.url = v.url;
|
||
|
|
ac.method = "POST";
|
||
|
|
ac.timeoutSec = 30;
|
||
|
|
return ac;
|
||
|
|
}
|