MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / appendManagedModel

Function appendManagedModel

frontend-workflow/src/utils/runtimeBillingForm.ts:23–36  ·  view source on GitHub ↗
(
  formData: FormData,
  userApiConfigRequired: boolean,
  key: string,
  value: string | null | undefined,
)

Source from the content-addressed store, hash-verified

21
22
23export function appendManagedModel(
24 formData: FormData,
25 userApiConfigRequired: boolean,
26 key: string,
27 value: string | null | undefined,
28): void {
29 if (!userApiConfigRequired) {
30 return;
31 }
32 const normalizedValue = (value || '').trim();
33 if (normalizedValue) {
34 formData.append(key, normalizedValue);
35 }
36}

Callers 7

handleGenerateFunction · 0.90
handleUploadAndParseFunction · 0.90
generateInitialPPTFunction · 0.90
handleGenerateFinalFunction · 0.90
handleStartParseFunction · 0.90
Paper2DrawioPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected