MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / modelProperties

Function modelProperties

integrations/replicate/src/utils.ts:31–45  ·  view source on GitHub ↗
(
  params: Partial<{
    model_owner: string;
    model_name: string;
    version_id: string;
    destination: string;
  }>
)

Source from the content-addressed store, hash-verified

29};
30
31export const modelProperties = (
32 params: Partial<{
33 model_owner: string;
34 model_name: string;
35 version_id: string;
36 destination: string;
37 }>
38) => {
39 return [
40 ...(params.model_owner ? [{ label: "Model Owner", text: params.model_owner }] : []),
41 ...(params.model_name ? [{ label: "Model Name", text: params.model_name }] : []),
42 ...(params.version_id ? [{ label: "Model Version", text: params.version_id }] : []),
43 ...(params.destination ? [{ label: "Destination Model", text: params.destination }] : []),
44 ];
45};
46
47export const streamingProperty = (params: { stream?: boolean }) => {
48 return [{ label: "Streaming Enabled", text: String(!!params.stream) }];

Callers 5

getMethod · 0.90
getMethod · 0.90
listMethod · 0.90
createMethod · 0.90
createAndAwaitMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…