Skip to main content

Variable: GatewayIntegrationModelsBulkUpdateRequestSchema

const GatewayIntegrationModelsBulkUpdateRequestSchema: ZodObject<{
models: ZodArray<ZodObject<{
slug: ZodString;
enabled: ZodBoolean;
is_custom: ZodOptional<ZodNullable<ZodBoolean>>;
is_finetune: ZodOptional<ZodNullable<ZodBoolean>>;
base_model_slug: ZodOptional<ZodNullable<ZodString>>;
configurations: ZodOptional<ZodIntersection<ZodObject<{
custom_host: ZodOptional<ZodString>;
custom_headers: ZodOptional<ZodObject<..., ..., ..., ..., ...>>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
custom_host?: string;
custom_headers?: objectOutputType<..., ..., ...>;
}, {
custom_host?: string;
custom_headers?: objectInputType<..., ..., ...>;
}>, ZodType<GatewayJsonObject, ZodTypeDef, GatewayJsonObject>>>;
pricing_config: ZodOptional<ZodIntersection<ZodType<{
type?: string;
pay_as_you_go?: {
request_token?: ...;
response_token?: ...;
};
}, ZodTypeDef, {
type?: string;
pay_as_you_go?: {
request_token?: ...;
response_token?: ...;
};
}>, ZodType<GatewayJsonObject, ZodTypeDef, GatewayJsonObject>>>;
}, "strict", ZodTypeAny, {
slug: string;
enabled: boolean;
is_custom?: boolean | null;
is_finetune?: boolean | null;
base_model_slug?: string | null;
configurations?: {
custom_host?: string;
custom_headers?: objectOutputType<{
key: ...;
value: ...;
}, ZodString, "strip">;
} & GatewayJsonObject;
pricing_config?: {
type?: string;
pay_as_you_go?: {
request_token?: ... | ...;
response_token?: ... | ...;
};
} & GatewayJsonObject;
}, {
slug: string;
enabled: boolean;
is_custom?: boolean | null;
is_finetune?: boolean | null;
base_model_slug?: string | null;
configurations?: {
custom_host?: string;
custom_headers?: objectInputType<{
key: ...;
value: ...;
}, ZodString, "strip">;
} & GatewayJsonObject;
pricing_config?: {
type?: string;
pay_as_you_go?: {
request_token?: ... | ...;
response_token?: ... | ...;
};
} & GatewayJsonObject;
}>, "many">;
allow_all_models: ZodOptional<ZodBoolean>;
}, "strict", ZodTypeAny, {
models: {
slug: string;
enabled: boolean;
is_custom?: boolean | null;
is_finetune?: boolean | null;
base_model_slug?: string | null;
configurations?: {
custom_host?: string;
custom_headers?: objectOutputType<{
key: ZodOptional<...>;
value: ZodOptional<...>;
}, ZodString, "strip">;
} & GatewayJsonObject;
pricing_config?: {
type?: string;
pay_as_you_go?: {
request_token?: {
price?: ...;
};
response_token?: {
price?: ...;
};
};
} & GatewayJsonObject;
}[];
allow_all_models?: boolean;
}, {
models: {
slug: string;
enabled: boolean;
is_custom?: boolean | null;
is_finetune?: boolean | null;
base_model_slug?: string | null;
configurations?: {
custom_host?: string;
custom_headers?: objectInputType<{
key: ZodOptional<...>;
value: ZodOptional<...>;
}, ZodString, "strip">;
} & GatewayJsonObject;
pricing_config?: {
type?: string;
pay_as_you_go?: {
request_token?: {
price?: ...;
};
response_token?: {
price?: ...;
};
};
} & GatewayJsonObject;
}[];
allow_all_models?: boolean;
}>;

Defined in: src/models/ai-gateway-requests.ts:386