@keystrokehq/openrouter 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/create-chat-completion.cjs +11 -11
- package/dist/actions/create-chat-completion.cjs.map +1 -1
- package/dist/actions/create-chat-completion.d.cts +15 -13
- package/dist/actions/create-chat-completion.d.mts +15 -13
- package/dist/actions/create-chat-completion.mjs +11 -11
- package/dist/actions/create-chat-completion.mjs.map +1 -1
- package/dist/actions/create-coinbase-charge.cjs +3 -3
- package/dist/actions/create-coinbase-charge.cjs.map +1 -1
- package/dist/actions/create-coinbase-charge.d.cts +3 -3
- package/dist/actions/create-coinbase-charge.d.mts +3 -3
- package/dist/actions/create-coinbase-charge.mjs +3 -3
- package/dist/actions/create-coinbase-charge.mjs.map +1 -1
- package/dist/actions/create-message.cjs +7 -7
- package/dist/actions/create-message.cjs.map +1 -1
- package/dist/actions/create-message.d.cts +11 -7
- package/dist/actions/create-message.d.mts +11 -7
- package/dist/actions/create-message.mjs +7 -7
- package/dist/actions/create-message.mjs.map +1 -1
- package/dist/actions/get-credits.cjs +2 -2
- package/dist/actions/get-credits.cjs.map +1 -1
- package/dist/actions/get-credits.d.cts +2 -2
- package/dist/actions/get-credits.d.mts +2 -2
- package/dist/actions/get-credits.mjs +2 -2
- package/dist/actions/get-credits.mjs.map +1 -1
- package/dist/actions/get-current-key.cjs +3 -3
- package/dist/actions/get-current-key.cjs.map +1 -1
- package/dist/actions/get-current-key.d.cts +3 -3
- package/dist/actions/get-current-key.d.mts +3 -3
- package/dist/actions/get-current-key.mjs +3 -3
- package/dist/actions/get-current-key.mjs.map +1 -1
- package/dist/actions/get-generation.cjs +2 -2
- package/dist/actions/get-generation.cjs.map +1 -1
- package/dist/actions/get-generation.d.cts +2 -2
- package/dist/actions/get-generation.d.mts +2 -2
- package/dist/actions/get-generation.mjs +2 -2
- package/dist/actions/get-generation.mjs.map +1 -1
- package/dist/actions/get-models-count.cjs +2 -2
- package/dist/actions/get-models-count.cjs.map +1 -1
- package/dist/actions/get-models-count.d.cts +2 -2
- package/dist/actions/get-models-count.d.mts +2 -2
- package/dist/actions/get-models-count.mjs +2 -2
- package/dist/actions/get-models-count.mjs.map +1 -1
- package/dist/actions/list-available-models.cjs +7 -7
- package/dist/actions/list-available-models.cjs.map +1 -1
- package/dist/actions/list-available-models.d.cts +7 -7
- package/dist/actions/list-available-models.d.mts +7 -7
- package/dist/actions/list-available-models.mjs +7 -7
- package/dist/actions/list-available-models.mjs.map +1 -1
- package/dist/actions/list-embedding-models.cjs +7 -7
- package/dist/actions/list-embedding-models.cjs.map +1 -1
- package/dist/actions/list-embedding-models.d.cts +7 -7
- package/dist/actions/list-embedding-models.d.mts +7 -7
- package/dist/actions/list-embedding-models.mjs +7 -7
- package/dist/actions/list-embedding-models.mjs.map +1 -1
- package/dist/actions/list-model-endpoints.cjs +5 -5
- package/dist/actions/list-model-endpoints.cjs.map +1 -1
- package/dist/actions/list-model-endpoints.d.cts +5 -5
- package/dist/actions/list-model-endpoints.d.mts +5 -5
- package/dist/actions/list-model-endpoints.mjs +5 -5
- package/dist/actions/list-model-endpoints.mjs.map +1 -1
- package/dist/actions/list-providers.cjs +1 -1
- package/dist/actions/list-providers.cjs.map +1 -1
- package/dist/actions/list-providers.d.cts +1 -1
- package/dist/actions/list-providers.d.mts +1 -1
- package/dist/actions/list-providers.mjs +1 -1
- package/dist/actions/list-providers.mjs.map +1 -1
- package/dist/actions/list-user-models.cjs +7 -7
- package/dist/actions/list-user-models.cjs.map +1 -1
- package/dist/actions/list-user-models.d.cts +7 -7
- package/dist/actions/list-user-models.d.mts +7 -7
- package/dist/actions/list-user-models.mjs +7 -7
- package/dist/actions/list-user-models.mjs.map +1 -1
- package/dist/actions/list-zdr-endpoints.cjs +5 -5
- package/dist/actions/list-zdr-endpoints.cjs.map +1 -1
- package/dist/actions/list-zdr-endpoints.d.cts +5 -5
- package/dist/actions/list-zdr-endpoints.d.mts +5 -5
- package/dist/actions/list-zdr-endpoints.mjs +5 -5
- package/dist/actions/list-zdr-endpoints.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -10,19 +10,19 @@ const OpenrouterListEmbeddingModels_PricingSchema = z.object({
|
|
|
10
10
|
prompt: z.string().describe("Price per prompt token.").nullable(),
|
|
11
11
|
request: z.string().describe("Price per request.").nullable().optional(),
|
|
12
12
|
completion: z.string().describe("Price per completion token.").nullable()
|
|
13
|
-
});
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const OpenrouterListEmbeddingModels_ArchitectureSchema = z.object({
|
|
15
15
|
modality: z.string().describe("Model modality (e.g., 'text->text').").nullable().optional(),
|
|
16
16
|
tokenizer: z.string().describe("Tokenization method used.").nullable(),
|
|
17
17
|
instruct_type: z.string().describe("Instruction format type (e.g., 'chatml').").nullable().optional(),
|
|
18
18
|
input_modalities: z.array(z.string()).describe("Supported input types (e.g., 'text', 'image')."),
|
|
19
19
|
output_modalities: z.array(z.string()).describe("Supported output types (e.g., 'text').")
|
|
20
|
-
});
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const OpenrouterListEmbeddingModels_TopProviderSchema = z.object({
|
|
22
22
|
is_moderated: z.boolean().describe("Indicates if the content is moderated.").nullable(),
|
|
23
23
|
context_length: z.number().int().describe("Maximum context window size in tokens for the top provider.").nullable(),
|
|
24
24
|
max_completion_tokens: z.number().int().describe("Maximum number of completion tokens.").nullable().optional()
|
|
25
|
-
});
|
|
25
|
+
}).passthrough();
|
|
26
26
|
const OpenrouterListEmbeddingModels_EmbeddingModelInfoSchema = z.object({
|
|
27
27
|
id: z.string().describe("Unique model identifier.").nullable(),
|
|
28
28
|
name: z.string().describe("Human-readable display name for the model.").nullable(),
|
|
@@ -35,16 +35,16 @@ const OpenrouterListEmbeddingModels_EmbeddingModelInfoSchema = z.object({
|
|
|
35
35
|
context_length: z.number().int().describe("Maximum context window size in tokens.").nullable(),
|
|
36
36
|
expiration_date: z.string().describe("Expiration date of the model, if applicable.").nullable().optional(),
|
|
37
37
|
hugging_face_id: z.string().describe("Identifier for the model on Hugging Face.").nullable().optional(),
|
|
38
|
-
default_parameters: z.
|
|
39
|
-
per_request_limits: z.
|
|
38
|
+
default_parameters: z.record(z.string(), z.unknown()).describe("Default parameters for the model, or null if none.").nullable().optional(),
|
|
39
|
+
per_request_limits: z.record(z.string(), z.unknown()).describe("Rate limiting information as a mapping of limit names to values, or null if no limits.").nullable().optional(),
|
|
40
40
|
supported_parameters: z.array(z.string()).describe("Supported API parameters for this model.")
|
|
41
|
-
});
|
|
41
|
+
}).passthrough();
|
|
42
42
|
const openrouterListEmbeddingModels = action("OPENROUTER_LIST_EMBEDDING_MODELS", {
|
|
43
43
|
slug: "openrouter-list-embedding-models",
|
|
44
44
|
name: "List Embedding Models",
|
|
45
45
|
description: "Tool to list all available embeddings models via OpenRouter API. Returns a list of embeddings models with their properties including architecture, pricing, and capabilities.",
|
|
46
46
|
input: OpenrouterListEmbeddingModelsInput,
|
|
47
|
-
output: z.object({ data: z.array(OpenrouterListEmbeddingModels_EmbeddingModelInfoSchema).describe("List of available embedding models.") })
|
|
47
|
+
output: z.object({ data: z.array(OpenrouterListEmbeddingModels_EmbeddingModelInfoSchema).describe("List of available embedding models.") }).passthrough()
|
|
48
48
|
});
|
|
49
49
|
//#endregion
|
|
50
50
|
export { openrouterListEmbeddingModels };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-embedding-models.mjs","names":[],"sources":["../../src/actions/list-embedding-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListEmbeddingModelsInput = z.object({\n \"X-Title\": z.string().describe(\"The app display name allows you to customize how your app appears in OpenRouter's dashboard.\").optional(),\n \"HTTP-Referer\": z.string().describe(\"The app identifier should be your app's URL and is used as the primary identifier for rankings. This is used to track API usage per application.\").optional(),\n});\nconst OpenrouterListEmbeddingModels_PricingSchema = z.object({\n image: z.string().describe(\"Price per image.\").nullable().optional(),\n prompt: z.string().describe(\"Price per prompt token.\").nullable(),\n request: z.string().describe(\"Price per request.\").nullable().optional(),\n completion: z.string().describe(\"Price per completion token.\").nullable(),\n});\nconst OpenrouterListEmbeddingModels_ArchitectureSchema = z.object({\n modality: z.string().describe(\"Model modality (e.g., 'text->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\").nullable(),\n instruct_type: z.string().describe(\"Instruction format type (e.g., 'chatml').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"Supported input types (e.g., 'text', 'image').\"),\n output_modalities: z.array(z.string()).describe(\"Supported output types (e.g., 'text').\"),\n});\nconst OpenrouterListEmbeddingModels_TopProviderSchema = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\").nullable(),\n context_length: z.number().int().describe(\"Maximum context window size in tokens for the top provider.\").nullable(),\n max_completion_tokens: z.number().int().describe(\"Maximum number of completion tokens.\").nullable().optional(),\n});\nconst OpenrouterListEmbeddingModels_EmbeddingModelInfoSchema = z.object({\n id: z.string().describe(\"Unique model identifier.\").nullable(),\n name: z.string().describe(\"Human-readable display name for the model.\").nullable(),\n created: z.number().describe(\"Unix timestamp when the model was added.\").nullable(),\n pricing: OpenrouterListEmbeddingModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\").nullable().optional(),\n architecture: OpenrouterListEmbeddingModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListEmbeddingModels_TopProviderSchema.nullable(),\n canonical_slug: z.string().describe(\"Permanent slug for the model (immutable).\").nullable(),\n context_length: z.number().int().describe(\"Maximum context window size in tokens.\").nullable(),\n expiration_date: z.string().describe(\"Expiration date of the model, if applicable.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: z.
|
|
1
|
+
{"version":3,"file":"list-embedding-models.mjs","names":[],"sources":["../../src/actions/list-embedding-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListEmbeddingModelsInput = z.object({\n \"X-Title\": z.string().describe(\"The app display name allows you to customize how your app appears in OpenRouter's dashboard.\").optional(),\n \"HTTP-Referer\": z.string().describe(\"The app identifier should be your app's URL and is used as the primary identifier for rankings. This is used to track API usage per application.\").optional(),\n});\nconst OpenrouterListEmbeddingModels_PricingSchema = z.object({\n image: z.string().describe(\"Price per image.\").nullable().optional(),\n prompt: z.string().describe(\"Price per prompt token.\").nullable(),\n request: z.string().describe(\"Price per request.\").nullable().optional(),\n completion: z.string().describe(\"Price per completion token.\").nullable(),\n}).passthrough();\nconst OpenrouterListEmbeddingModels_ArchitectureSchema = z.object({\n modality: z.string().describe(\"Model modality (e.g., 'text->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\").nullable(),\n instruct_type: z.string().describe(\"Instruction format type (e.g., 'chatml').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"Supported input types (e.g., 'text', 'image').\"),\n output_modalities: z.array(z.string()).describe(\"Supported output types (e.g., 'text').\"),\n}).passthrough();\nconst OpenrouterListEmbeddingModels_TopProviderSchema = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\").nullable(),\n context_length: z.number().int().describe(\"Maximum context window size in tokens for the top provider.\").nullable(),\n max_completion_tokens: z.number().int().describe(\"Maximum number of completion tokens.\").nullable().optional(),\n}).passthrough();\nconst OpenrouterListEmbeddingModels_EmbeddingModelInfoSchema = z.object({\n id: z.string().describe(\"Unique model identifier.\").nullable(),\n name: z.string().describe(\"Human-readable display name for the model.\").nullable(),\n created: z.number().describe(\"Unix timestamp when the model was added.\").nullable(),\n pricing: OpenrouterListEmbeddingModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\").nullable().optional(),\n architecture: OpenrouterListEmbeddingModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListEmbeddingModels_TopProviderSchema.nullable(),\n canonical_slug: z.string().describe(\"Permanent slug for the model (immutable).\").nullable(),\n context_length: z.number().int().describe(\"Maximum context window size in tokens.\").nullable(),\n expiration_date: z.string().describe(\"Expiration date of the model, if applicable.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: z.record(z.string(), z.unknown()).describe(\"Default parameters for the model, or null if none.\").nullable().optional(),\n per_request_limits: z.record(z.string(), z.unknown()).describe(\"Rate limiting information as a mapping of limit names to values, or null if no limits.\").nullable().optional(),\n supported_parameters: z.array(z.string()).describe(\"Supported API parameters for this model.\"),\n}).passthrough();\nexport const OpenrouterListEmbeddingModelsOutput = z.object({\n data: z.array(OpenrouterListEmbeddingModels_EmbeddingModelInfoSchema).describe(\"List of available embedding models.\"),\n}).passthrough();\n\nexport const openrouterListEmbeddingModels = action(\"OPENROUTER_LIST_EMBEDDING_MODELS\", {\n slug: \"openrouter-list-embedding-models\",\n name: \"List Embedding Models\",\n description: \"Tool to list all available embeddings models via OpenRouter API. Returns a list of embeddings models with their properties including architecture, pricing, and capabilities.\",\n input: OpenrouterListEmbeddingModelsInput,\n output: OpenrouterListEmbeddingModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACxI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AACnM,CAAC;AACD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAChE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,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E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,oBAAoB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,oBAAoB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7K,sBAAsB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAC/F,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,MAAM,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,qCAAqC,EACtH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -15,20 +15,20 @@ const OpenrouterListModelEndpoints_PricingSchema = zod.z.object({
|
|
|
15
15
|
input_cache_read: zod.z.string().describe("Cost per input cache read.").nullable().optional(),
|
|
16
16
|
input_cache_write: zod.z.string().describe("Cost per input cache write.").nullable().optional(),
|
|
17
17
|
internal_reasoning: zod.z.string().describe("Cost per internal reasoning.").nullable().optional()
|
|
18
|
-
}).describe("Pricing rates for different usage metrics.");
|
|
18
|
+
}).passthrough().describe("Pricing rates for different usage metrics.");
|
|
19
19
|
const OpenrouterListModelEndpoints_EndpointInfoSchema = zod.z.object({
|
|
20
20
|
name: zod.z.string().describe("Endpoint identifier.").nullable(),
|
|
21
21
|
pricing: OpenrouterListModelEndpoints_PricingSchema.nullable(),
|
|
22
22
|
provider_name: zod.z.string().describe("Name of the provider serving this endpoint.").nullable(),
|
|
23
23
|
context_length: zod.z.number().describe("Maximum number of tokens in context.").nullable(),
|
|
24
24
|
supported_parameters: zod.z.array(zod.z.string()).describe("List of supported parameter names for this endpoint.")
|
|
25
|
-
}).describe("Details for a single model endpoint.");
|
|
25
|
+
}).passthrough().describe("Details for a single model endpoint.");
|
|
26
26
|
const OpenrouterListModelEndpoints_ArchitectureSchema = zod.z.object({
|
|
27
27
|
tokenizer: zod.z.string().describe("Tokenizer name used by the model.").nullable(),
|
|
28
28
|
instruct_type: zod.z.string().describe("Instruction style/type (e.g., 'instruct').").nullable().optional(),
|
|
29
29
|
input_modalities: zod.z.array(zod.z.string()).describe("List of modalities accepted as input (e.g., ['text', 'image'])."),
|
|
30
30
|
output_modalities: zod.z.array(zod.z.string()).describe("List of modalities produced as output (e.g., ['text']).")
|
|
31
|
-
}).describe("Model architecture details.");
|
|
31
|
+
}).passthrough().describe("Model architecture details.");
|
|
32
32
|
const OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema = zod.z.object({
|
|
33
33
|
id: zod.z.string().describe("Unique model identifier.").nullable(),
|
|
34
34
|
name: zod.z.string().describe("Human-readable model name.").nullable(),
|
|
@@ -36,8 +36,8 @@ const OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema = zod.
|
|
|
36
36
|
endpoints: zod.z.array(OpenrouterListModelEndpoints_EndpointInfoSchema),
|
|
37
37
|
description: zod.z.string().describe("Model description.").nullable().optional(),
|
|
38
38
|
architecture: OpenrouterListModelEndpoints_ArchitectureSchema.nullable()
|
|
39
|
-
});
|
|
40
|
-
const OpenrouterListModelEndpointsOutput = zod.z.object({ data: OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema.nullable() }).describe("Response schema for listing model endpoints.");
|
|
39
|
+
}).passthrough();
|
|
40
|
+
const OpenrouterListModelEndpointsOutput = zod.z.object({ data: OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema.nullable() }).passthrough().describe("Response schema for listing model endpoints.");
|
|
41
41
|
const openrouterListModelEndpoints = require_action.action("OPENROUTER_LIST_MODEL_ENDPOINTS", {
|
|
42
42
|
slug: "openrouter-list-model-endpoints",
|
|
43
43
|
name: "OpenRouter List Model Endpoints",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-model-endpoints.cjs","names":["z","action"],"sources":["../../src/actions/list-model-endpoints.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListModelEndpointsInput = z.object({\n slug: z.string().describe(\"Model's unique slug under the author namespace (e.g., 'gpt4').\"),\n author: z.string().describe(\"Model author's username as it appears in the model URL (e.g., 'anon'). Use exact value from OPENROUTER_LIST_AVAILABLE_MODELS — approximate or incorrect values return empty results.\"),\n}).describe(\"Request parameters for listing endpoints of a specific model.\");\nconst OpenrouterListModelEndpoints_PricingSchema = z.object({\n image: z.string().describe(\"Cost per image operation.\").nullable().optional(),\n prompt: z.string().describe(\"Cost per prompt token.\").nullable(),\n request: z.string().describe(\"Cost per request.\").nullable().optional(),\n completion: z.string().describe(\"Cost per completion token.\").nullable(),\n web_search: z.string().describe(\"Cost per web search.\").nullable().optional(),\n image_output: z.string().describe(\"Cost per output image.\").nullable().optional(),\n input_cache_read: z.string().describe(\"Cost per input cache read.\").nullable().optional(),\n input_cache_write: z.string().describe(\"Cost per input cache write.\").nullable().optional(),\n internal_reasoning: z.string().describe(\"Cost per internal reasoning.\").nullable().optional(),\n}).describe(\"Pricing rates for different usage metrics.\");\nconst OpenrouterListModelEndpoints_EndpointInfoSchema = z.object({\n name: z.string().describe(\"Endpoint identifier.\").nullable(),\n pricing: OpenrouterListModelEndpoints_PricingSchema.nullable(),\n provider_name: z.string().describe(\"Name of the provider serving this endpoint.\").nullable(),\n context_length: z.number().describe(\"Maximum number of tokens in context.\").nullable(),\n supported_parameters: z.array(z.string()).describe(\"List of supported parameter names for this endpoint.\"),\n}).describe(\"Details for a single model endpoint.\");\nconst OpenrouterListModelEndpoints_ArchitectureSchema = z.object({\n tokenizer: z.string().describe(\"Tokenizer name used by the model.\").nullable(),\n instruct_type: z.string().describe(\"Instruction style/type (e.g., 'instruct').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"List of modalities accepted as input (e.g., ['text', 'image']).\"),\n output_modalities: z.array(z.string()).describe(\"List of modalities produced as output (e.g., ['text']).\"),\n}).describe(\"Model architecture details.\");\nconst OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema = z.object({\n id: z.string().describe(\"Unique model identifier.\").nullable(),\n name: z.string().describe(\"Human-readable model name.\").nullable(),\n created: z.number().describe(\"UNIX timestamp when model was created.\").nullable(),\n endpoints: z.array(OpenrouterListModelEndpoints_EndpointInfoSchema),\n description: z.string().describe(\"Model description.\").nullable().optional(),\n architecture: OpenrouterListModelEndpoints_ArchitectureSchema.nullable(),\n});\nexport const OpenrouterListModelEndpointsOutput = z.object({\n data: OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema.nullable(),\n}).describe(\"Response schema for listing model endpoints.\");\n\nexport const openrouterListModelEndpoints = action(\"OPENROUTER_LIST_MODEL_ENDPOINTS\", {\n slug: \"openrouter-list-model-endpoints\",\n name: \"OpenRouter List Model Endpoints\",\n description: \"Tool to list endpoints for a specific model. Use after specifying model author and slug to get endpoint details including pricing, context length, and supported parameters. Some metadata fields (e.g., latency, pricing) may be null or approximate; handle missing values in routing logic.\",\n input: OpenrouterListModelEndpointsInput,\n output: OpenrouterListModelEndpointsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL;AACpN,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,4CAA4C;
|
|
1
|
+
{"version":3,"file":"list-model-endpoints.cjs","names":["z","action"],"sources":["../../src/actions/list-model-endpoints.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListModelEndpointsInput = z.object({\n slug: z.string().describe(\"Model's unique slug under the author namespace (e.g., 'gpt4').\"),\n author: z.string().describe(\"Model author's username as it appears in the model URL (e.g., 'anon'). Use exact value from OPENROUTER_LIST_AVAILABLE_MODELS — approximate or incorrect values return empty results.\"),\n}).describe(\"Request parameters for listing endpoints of a specific model.\");\nconst OpenrouterListModelEndpoints_PricingSchema = z.object({\n image: z.string().describe(\"Cost per image operation.\").nullable().optional(),\n prompt: z.string().describe(\"Cost per prompt token.\").nullable(),\n request: z.string().describe(\"Cost per request.\").nullable().optional(),\n completion: z.string().describe(\"Cost per completion token.\").nullable(),\n web_search: z.string().describe(\"Cost per web search.\").nullable().optional(),\n image_output: z.string().describe(\"Cost per output image.\").nullable().optional(),\n input_cache_read: z.string().describe(\"Cost per input cache read.\").nullable().optional(),\n input_cache_write: z.string().describe(\"Cost per input cache write.\").nullable().optional(),\n internal_reasoning: z.string().describe(\"Cost per internal reasoning.\").nullable().optional(),\n}).passthrough().describe(\"Pricing rates for different usage metrics.\");\nconst OpenrouterListModelEndpoints_EndpointInfoSchema = z.object({\n name: z.string().describe(\"Endpoint identifier.\").nullable(),\n pricing: OpenrouterListModelEndpoints_PricingSchema.nullable(),\n provider_name: z.string().describe(\"Name of the provider serving this endpoint.\").nullable(),\n context_length: z.number().describe(\"Maximum number of tokens in context.\").nullable(),\n supported_parameters: z.array(z.string()).describe(\"List of supported parameter names for this endpoint.\"),\n}).passthrough().describe(\"Details for a single model endpoint.\");\nconst OpenrouterListModelEndpoints_ArchitectureSchema = z.object({\n tokenizer: z.string().describe(\"Tokenizer name used by the model.\").nullable(),\n instruct_type: z.string().describe(\"Instruction style/type (e.g., 'instruct').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"List of modalities accepted as input (e.g., ['text', 'image']).\"),\n output_modalities: z.array(z.string()).describe(\"List of modalities produced as output (e.g., ['text']).\"),\n}).passthrough().describe(\"Model architecture details.\");\nconst OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema = z.object({\n id: z.string().describe(\"Unique model identifier.\").nullable(),\n name: z.string().describe(\"Human-readable model name.\").nullable(),\n created: z.number().describe(\"UNIX timestamp when model was created.\").nullable(),\n endpoints: z.array(OpenrouterListModelEndpoints_EndpointInfoSchema),\n description: z.string().describe(\"Model description.\").nullable().optional(),\n architecture: OpenrouterListModelEndpoints_ArchitectureSchema.nullable(),\n}).passthrough();\nexport const OpenrouterListModelEndpointsOutput = z.object({\n data: OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing model endpoints.\");\n\nexport const openrouterListModelEndpoints = action(\"OPENROUTER_LIST_MODEL_ENDPOINTS\", {\n slug: \"openrouter-list-model-endpoints\",\n name: \"OpenRouter List Model Endpoints\",\n description: \"Tool to list endpoints for a specific model. Use after specifying model author and slug to get endpoint details including pricing, context length, and supported parameters. Some metadata fields (e.g., latency, pricing) may be null or approximate; handle missing values in routing logic.\",\n input: OpenrouterListModelEndpointsInput,\n output: OpenrouterListModelEndpointsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL;AACpN,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC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;CAChH,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AACvD,MAAM,sEAAsEA,IAAAA,EAAE,OAAO;CACnF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,MAAM,+CAA+C;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,cAAc,gDAAgD,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,MAAM,oEAAoE,SAAS,EACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -22,20 +22,20 @@ declare const OpenrouterListModelEndpointsOutput: z.ZodObject<{
|
|
|
22
22
|
input_cache_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
23
|
input_cache_write: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
internal_reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
26
|
provider_name: z.ZodNullable<z.ZodString>;
|
|
27
27
|
context_length: z.ZodNullable<z.ZodNumber>;
|
|
28
28
|
supported_parameters: z.ZodArray<z.ZodString>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
30
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
architecture: z.ZodNullable<z.ZodObject<{
|
|
32
32
|
tokenizer: z.ZodNullable<z.ZodString>;
|
|
33
33
|
instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
input_modalities: z.ZodArray<z.ZodString>;
|
|
35
35
|
output_modalities: z.ZodArray<z.ZodString>;
|
|
36
|
-
}, z.core.$
|
|
37
|
-
}, z.core.$
|
|
38
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
39
|
declare const openrouterListModelEndpoints: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
40
|
slug: string;
|
|
41
41
|
author: string;
|
|
@@ -22,20 +22,20 @@ declare const OpenrouterListModelEndpointsOutput: z.ZodObject<{
|
|
|
22
22
|
input_cache_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
23
|
input_cache_write: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
internal_reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
26
|
provider_name: z.ZodNullable<z.ZodString>;
|
|
27
27
|
context_length: z.ZodNullable<z.ZodNumber>;
|
|
28
28
|
supported_parameters: z.ZodArray<z.ZodString>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
30
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
architecture: z.ZodNullable<z.ZodObject<{
|
|
32
32
|
tokenizer: z.ZodNullable<z.ZodString>;
|
|
33
33
|
instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
input_modalities: z.ZodArray<z.ZodString>;
|
|
35
35
|
output_modalities: z.ZodArray<z.ZodString>;
|
|
36
|
-
}, z.core.$
|
|
37
|
-
}, z.core.$
|
|
38
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
39
|
declare const openrouterListModelEndpoints: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
40
|
slug: string;
|
|
41
41
|
author: string;
|
|
@@ -15,20 +15,20 @@ const OpenrouterListModelEndpoints_PricingSchema = z.object({
|
|
|
15
15
|
input_cache_read: z.string().describe("Cost per input cache read.").nullable().optional(),
|
|
16
16
|
input_cache_write: z.string().describe("Cost per input cache write.").nullable().optional(),
|
|
17
17
|
internal_reasoning: z.string().describe("Cost per internal reasoning.").nullable().optional()
|
|
18
|
-
}).describe("Pricing rates for different usage metrics.");
|
|
18
|
+
}).passthrough().describe("Pricing rates for different usage metrics.");
|
|
19
19
|
const OpenrouterListModelEndpoints_EndpointInfoSchema = z.object({
|
|
20
20
|
name: z.string().describe("Endpoint identifier.").nullable(),
|
|
21
21
|
pricing: OpenrouterListModelEndpoints_PricingSchema.nullable(),
|
|
22
22
|
provider_name: z.string().describe("Name of the provider serving this endpoint.").nullable(),
|
|
23
23
|
context_length: z.number().describe("Maximum number of tokens in context.").nullable(),
|
|
24
24
|
supported_parameters: z.array(z.string()).describe("List of supported parameter names for this endpoint.")
|
|
25
|
-
}).describe("Details for a single model endpoint.");
|
|
25
|
+
}).passthrough().describe("Details for a single model endpoint.");
|
|
26
26
|
const OpenrouterListModelEndpoints_ArchitectureSchema = z.object({
|
|
27
27
|
tokenizer: z.string().describe("Tokenizer name used by the model.").nullable(),
|
|
28
28
|
instruct_type: z.string().describe("Instruction style/type (e.g., 'instruct').").nullable().optional(),
|
|
29
29
|
input_modalities: z.array(z.string()).describe("List of modalities accepted as input (e.g., ['text', 'image'])."),
|
|
30
30
|
output_modalities: z.array(z.string()).describe("List of modalities produced as output (e.g., ['text']).")
|
|
31
|
-
}).describe("Model architecture details.");
|
|
31
|
+
}).passthrough().describe("Model architecture details.");
|
|
32
32
|
const OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema = z.object({
|
|
33
33
|
id: z.string().describe("Unique model identifier.").nullable(),
|
|
34
34
|
name: z.string().describe("Human-readable model name.").nullable(),
|
|
@@ -36,13 +36,13 @@ const OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema = z.ob
|
|
|
36
36
|
endpoints: z.array(OpenrouterListModelEndpoints_EndpointInfoSchema),
|
|
37
37
|
description: z.string().describe("Model description.").nullable().optional(),
|
|
38
38
|
architecture: OpenrouterListModelEndpoints_ArchitectureSchema.nullable()
|
|
39
|
-
});
|
|
39
|
+
}).passthrough();
|
|
40
40
|
const openrouterListModelEndpoints = action("OPENROUTER_LIST_MODEL_ENDPOINTS", {
|
|
41
41
|
slug: "openrouter-list-model-endpoints",
|
|
42
42
|
name: "OpenRouter List Model Endpoints",
|
|
43
43
|
description: "Tool to list endpoints for a specific model. Use after specifying model author and slug to get endpoint details including pricing, context length, and supported parameters. Some metadata fields (e.g., latency, pricing) may be null or approximate; handle missing values in routing logic.",
|
|
44
44
|
input: OpenrouterListModelEndpointsInput,
|
|
45
|
-
output: z.object({ data: OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema.nullable() }).describe("Response schema for listing model endpoints.")
|
|
45
|
+
output: z.object({ data: OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema.nullable() }).passthrough().describe("Response schema for listing model endpoints.")
|
|
46
46
|
});
|
|
47
47
|
//#endregion
|
|
48
48
|
export { openrouterListModelEndpoints };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-model-endpoints.mjs","names":[],"sources":["../../src/actions/list-model-endpoints.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListModelEndpointsInput = z.object({\n slug: z.string().describe(\"Model's unique slug under the author namespace (e.g., 'gpt4').\"),\n author: z.string().describe(\"Model author's username as it appears in the model URL (e.g., 'anon'). Use exact value from OPENROUTER_LIST_AVAILABLE_MODELS — approximate or incorrect values return empty results.\"),\n}).describe(\"Request parameters for listing endpoints of a specific model.\");\nconst OpenrouterListModelEndpoints_PricingSchema = z.object({\n image: z.string().describe(\"Cost per image operation.\").nullable().optional(),\n prompt: z.string().describe(\"Cost per prompt token.\").nullable(),\n request: z.string().describe(\"Cost per request.\").nullable().optional(),\n completion: z.string().describe(\"Cost per completion token.\").nullable(),\n web_search: z.string().describe(\"Cost per web search.\").nullable().optional(),\n image_output: z.string().describe(\"Cost per output image.\").nullable().optional(),\n input_cache_read: z.string().describe(\"Cost per input cache read.\").nullable().optional(),\n input_cache_write: z.string().describe(\"Cost per input cache write.\").nullable().optional(),\n internal_reasoning: z.string().describe(\"Cost per internal reasoning.\").nullable().optional(),\n}).describe(\"Pricing rates for different usage metrics.\");\nconst OpenrouterListModelEndpoints_EndpointInfoSchema = z.object({\n name: z.string().describe(\"Endpoint identifier.\").nullable(),\n pricing: OpenrouterListModelEndpoints_PricingSchema.nullable(),\n provider_name: z.string().describe(\"Name of the provider serving this endpoint.\").nullable(),\n context_length: z.number().describe(\"Maximum number of tokens in context.\").nullable(),\n supported_parameters: z.array(z.string()).describe(\"List of supported parameter names for this endpoint.\"),\n}).describe(\"Details for a single model endpoint.\");\nconst OpenrouterListModelEndpoints_ArchitectureSchema = z.object({\n tokenizer: z.string().describe(\"Tokenizer name used by the model.\").nullable(),\n instruct_type: z.string().describe(\"Instruction style/type (e.g., 'instruct').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"List of modalities accepted as input (e.g., ['text', 'image']).\"),\n output_modalities: z.array(z.string()).describe(\"List of modalities produced as output (e.g., ['text']).\"),\n}).describe(\"Model architecture details.\");\nconst OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema = z.object({\n id: z.string().describe(\"Unique model identifier.\").nullable(),\n name: z.string().describe(\"Human-readable model name.\").nullable(),\n created: z.number().describe(\"UNIX timestamp when model was created.\").nullable(),\n endpoints: z.array(OpenrouterListModelEndpoints_EndpointInfoSchema),\n description: z.string().describe(\"Model description.\").nullable().optional(),\n architecture: OpenrouterListModelEndpoints_ArchitectureSchema.nullable(),\n});\nexport const OpenrouterListModelEndpointsOutput = z.object({\n data: OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema.nullable(),\n}).describe(\"Response schema for listing model endpoints.\");\n\nexport const openrouterListModelEndpoints = action(\"OPENROUTER_LIST_MODEL_ENDPOINTS\", {\n slug: \"openrouter-list-model-endpoints\",\n name: \"OpenRouter List Model Endpoints\",\n description: \"Tool to list endpoints for a specific model. Use after specifying model author and slug to get endpoint details including pricing, context length, and supported parameters. Some metadata fields (e.g., latency, pricing) may be null or approximate; handle missing values in routing logic.\",\n input: OpenrouterListModelEndpointsInput,\n output: OpenrouterListModelEndpointsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sLAAsL;AACpN,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,6CAA6C,EAAE,OAAO;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,4CAA4C;
|
|
1
|
+
{"version":3,"file":"list-model-endpoints.mjs","names":[],"sources":["../../src/actions/list-model-endpoints.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListModelEndpointsInput = z.object({\n slug: z.string().describe(\"Model's unique slug under the author namespace (e.g., 'gpt4').\"),\n author: z.string().describe(\"Model author's username as it appears in the model URL (e.g., 'anon'). Use exact value from OPENROUTER_LIST_AVAILABLE_MODELS — approximate or incorrect values return empty results.\"),\n}).describe(\"Request parameters for listing endpoints of a specific model.\");\nconst OpenrouterListModelEndpoints_PricingSchema = z.object({\n image: z.string().describe(\"Cost per image operation.\").nullable().optional(),\n prompt: z.string().describe(\"Cost per prompt token.\").nullable(),\n request: z.string().describe(\"Cost per request.\").nullable().optional(),\n completion: z.string().describe(\"Cost per completion token.\").nullable(),\n web_search: z.string().describe(\"Cost per web search.\").nullable().optional(),\n image_output: z.string().describe(\"Cost per output image.\").nullable().optional(),\n input_cache_read: z.string().describe(\"Cost per input cache read.\").nullable().optional(),\n input_cache_write: z.string().describe(\"Cost per input cache write.\").nullable().optional(),\n internal_reasoning: z.string().describe(\"Cost per internal reasoning.\").nullable().optional(),\n}).passthrough().describe(\"Pricing rates for different usage metrics.\");\nconst OpenrouterListModelEndpoints_EndpointInfoSchema = z.object({\n name: z.string().describe(\"Endpoint identifier.\").nullable(),\n pricing: OpenrouterListModelEndpoints_PricingSchema.nullable(),\n provider_name: z.string().describe(\"Name of the provider serving this endpoint.\").nullable(),\n context_length: z.number().describe(\"Maximum number of tokens in context.\").nullable(),\n supported_parameters: z.array(z.string()).describe(\"List of supported parameter names for this endpoint.\"),\n}).passthrough().describe(\"Details for a single model endpoint.\");\nconst OpenrouterListModelEndpoints_ArchitectureSchema = z.object({\n tokenizer: z.string().describe(\"Tokenizer name used by the model.\").nullable(),\n instruct_type: z.string().describe(\"Instruction style/type (e.g., 'instruct').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"List of modalities accepted as input (e.g., ['text', 'image']).\"),\n output_modalities: z.array(z.string()).describe(\"List of modalities produced as output (e.g., ['text']).\"),\n}).passthrough().describe(\"Model architecture details.\");\nconst OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema = z.object({\n id: z.string().describe(\"Unique model identifier.\").nullable(),\n name: z.string().describe(\"Human-readable model name.\").nullable(),\n created: z.number().describe(\"UNIX timestamp when model was created.\").nullable(),\n endpoints: z.array(OpenrouterListModelEndpoints_EndpointInfoSchema),\n description: z.string().describe(\"Model description.\").nullable().optional(),\n architecture: OpenrouterListModelEndpoints_ArchitectureSchema.nullable(),\n}).passthrough();\nexport const OpenrouterListModelEndpointsOutput = z.object({\n data: OpenrouterListModelEndpoints_OpenrouterListModelEndpointsDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing model endpoints.\");\n\nexport const openrouterListModelEndpoints = action(\"OPENROUTER_LIST_MODEL_ENDPOINTS\", {\n slug: \"openrouter-list-model-endpoints\",\n name: \"OpenRouter List Model Endpoints\",\n description: \"Tool to list endpoints for a specific model. Use after specifying model author and slug to get endpoint details including pricing, context length, and supported parameters. Some metadata fields (e.g., latency, pricing) may be null or approximate; handle missing values in routing logic.\",\n input: OpenrouterListModelEndpointsInput,\n output: OpenrouterListModelEndpointsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,MAAM,EA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string().describe("Unique identifier (slug) of the provider").nullable(),
|
|
8
8
|
description: zod.z.string().describe("Description of the provider, if available").nullable().optional()
|
|
9
9
|
}).passthrough().describe("Schema for a provider entry returned by the OpenRouter API.");
|
|
10
|
-
const OpenrouterListProvidersOutput = zod.z.object({ data: zod.z.array(OpenrouterListProviders_ProviderSchema).describe("List of available AI model providers") }).describe("Response model for provider listing.");
|
|
10
|
+
const OpenrouterListProvidersOutput = zod.z.object({ data: zod.z.array(OpenrouterListProviders_ProviderSchema).describe("List of available AI model providers") }).passthrough().describe("Response model for provider listing.");
|
|
11
11
|
const openrouterListProviders = require_action.action("OPENROUTER_LIST_PROVIDERS", {
|
|
12
12
|
slug: "openrouter-list-providers",
|
|
13
13
|
name: "OpenRouter List Providers",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-providers.cjs","names":["z","action"],"sources":["../../src/actions/list-providers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListProvidersInput = z.object({}).describe(\"Empty request model for listing providers.\");\nconst OpenrouterListProviders_ProviderSchema = z.object({\n name: z.string().describe(\"Human-readable name of the provider\").nullable().optional(),\n slug: z.string().describe(\"Unique identifier (slug) of the provider\").nullable(),\n description: z.string().describe(\"Description of the provider, if available\").nullable().optional(),\n}).passthrough().describe(\"Schema for a provider entry returned by the OpenRouter API.\");\nexport const OpenrouterListProvidersOutput = z.object({\n data: z.array(OpenrouterListProviders_ProviderSchema).describe(\"List of available AI model providers\"),\n}).describe(\"Response model for provider listing.\");\n\nexport const openrouterListProviders = action(\"OPENROUTER_LIST_PROVIDERS\", {\n slug: \"openrouter-list-providers\",\n name: \"OpenRouter List Providers\",\n description: \"Tool to list all AI model providers available through the OpenRouter API. Use after authentication to retrieve available provider options for routing configuration. Providers differ in latency, context window sizes, and rate limits — switching providers affects these constraints. Newly added providers may not appear immediately due to catalog propagation delays.\",\n input: OpenrouterListProvidersInput,\n output: OpenrouterListProvidersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAC9G,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,sCAAsC,EACvG,CAAC,CAAC,CAAC,SAAS,sCAAsC;
|
|
1
|
+
{"version":3,"file":"list-providers.cjs","names":["z","action"],"sources":["../../src/actions/list-providers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListProvidersInput = z.object({}).describe(\"Empty request model for listing providers.\");\nconst OpenrouterListProviders_ProviderSchema = z.object({\n name: z.string().describe(\"Human-readable name of the provider\").nullable().optional(),\n slug: z.string().describe(\"Unique identifier (slug) of the provider\").nullable(),\n description: z.string().describe(\"Description of the provider, if available\").nullable().optional(),\n}).passthrough().describe(\"Schema for a provider entry returned by the OpenRouter API.\");\nexport const OpenrouterListProvidersOutput = z.object({\n data: z.array(OpenrouterListProviders_ProviderSchema).describe(\"List of available AI model providers\"),\n}).passthrough().describe(\"Response model for provider listing.\");\n\nexport const openrouterListProviders = action(\"OPENROUTER_LIST_PROVIDERS\", {\n slug: \"openrouter-list-providers\",\n name: \"OpenRouter List Providers\",\n description: \"Tool to list all AI model providers available through the OpenRouter API. Use after authentication to retrieve available provider options for routing configuration. Providers differ in latency, context window sizes, and rate limits — switching providers affects these constraints. Newly added providers may not appear immediately due to catalog propagation delays.\",\n input: OpenrouterListProvidersInput,\n output: OpenrouterListProvidersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAC9G,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,MAAMA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,sCAAsC,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ declare const OpenrouterListProvidersOutput: z.ZodObject<{
|
|
|
8
8
|
slug: z.ZodNullable<z.ZodString>;
|
|
9
9
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
}, z.core.$loose>>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const openrouterListProviders: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { openrouterListProviders };
|
|
@@ -8,7 +8,7 @@ declare const OpenrouterListProvidersOutput: z.ZodObject<{
|
|
|
8
8
|
slug: z.ZodNullable<z.ZodString>;
|
|
9
9
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
}, z.core.$loose>>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const openrouterListProviders: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { openrouterListProviders };
|
|
@@ -12,7 +12,7 @@ const openrouterListProviders = action("OPENROUTER_LIST_PROVIDERS", {
|
|
|
12
12
|
name: "OpenRouter List Providers",
|
|
13
13
|
description: "Tool to list all AI model providers available through the OpenRouter API. Use after authentication to retrieve available provider options for routing configuration. Providers differ in latency, context window sizes, and rate limits — switching providers affects these constraints. Newly added providers may not appear immediately due to catalog propagation delays.",
|
|
14
14
|
input: OpenrouterListProvidersInput,
|
|
15
|
-
output: z.object({ data: z.array(OpenrouterListProviders_ProviderSchema).describe("List of available AI model providers") }).describe("Response model for provider listing.")
|
|
15
|
+
output: z.object({ data: z.array(OpenrouterListProviders_ProviderSchema).describe("List of available AI model providers") }).passthrough().describe("Response model for provider listing.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { openrouterListProviders };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-providers.mjs","names":[],"sources":["../../src/actions/list-providers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListProvidersInput = z.object({}).describe(\"Empty request model for listing providers.\");\nconst OpenrouterListProviders_ProviderSchema = z.object({\n name: z.string().describe(\"Human-readable name of the provider\").nullable().optional(),\n slug: z.string().describe(\"Unique identifier (slug) of the provider\").nullable(),\n description: z.string().describe(\"Description of the provider, if available\").nullable().optional(),\n}).passthrough().describe(\"Schema for a provider entry returned by the OpenRouter API.\");\nexport const OpenrouterListProvidersOutput = z.object({\n data: z.array(OpenrouterListProviders_ProviderSchema).describe(\"List of available AI model providers\"),\n}).describe(\"Response model for provider listing.\");\n\nexport const openrouterListProviders = action(\"OPENROUTER_LIST_PROVIDERS\", {\n slug: \"openrouter-list-providers\",\n name: \"OpenRouter List Providers\",\n description: \"Tool to list all AI model providers available through the OpenRouter API. Use after authentication to retrieve available provider options for routing configuration. Providers differ in latency, context window sizes, and rate limits — switching providers affects these constraints. Newly added providers may not appear immediately due to catalog propagation delays.\",\n input: OpenrouterListProvidersInput,\n output: OpenrouterListProvidersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAC9G,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAKvF,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,sCAAsC,EACvG,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"list-providers.mjs","names":[],"sources":["../../src/actions/list-providers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListProvidersInput = z.object({}).describe(\"Empty request model for listing providers.\");\nconst OpenrouterListProviders_ProviderSchema = z.object({\n name: z.string().describe(\"Human-readable name of the provider\").nullable().optional(),\n slug: z.string().describe(\"Unique identifier (slug) of the provider\").nullable(),\n description: z.string().describe(\"Description of the provider, if available\").nullable().optional(),\n}).passthrough().describe(\"Schema for a provider entry returned by the OpenRouter API.\");\nexport const OpenrouterListProvidersOutput = z.object({\n data: z.array(OpenrouterListProviders_ProviderSchema).describe(\"List of available AI model providers\"),\n}).passthrough().describe(\"Response model for provider listing.\");\n\nexport const openrouterListProviders = action(\"OPENROUTER_LIST_PROVIDERS\", {\n slug: \"openrouter-list-providers\",\n name: \"OpenRouter List Providers\",\n description: \"Tool to list all AI model providers available through the OpenRouter API. Use after authentication to retrieve available provider options for routing configuration. Providers differ in latency, context window sizes, and rate limits — switching providers affects these constraints. Newly added providers may not appear immediately due to catalog propagation delays.\",\n input: OpenrouterListProvidersInput,\n output: OpenrouterListProvidersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAC9G,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAKvF,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,MAAM,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,sCAAsC,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
|
|
@@ -14,19 +14,19 @@ const OpenrouterListUserModels_PricingSchema = zod.z.object({
|
|
|
14
14
|
input_cache_read: zod.z.string().describe("Price per input cache read.").nullable().optional(),
|
|
15
15
|
input_cache_write: zod.z.string().describe("Price per input cache write.").nullable().optional(),
|
|
16
16
|
internal_reasoning: zod.z.string().describe("Price per internal reasoning.").nullable().optional()
|
|
17
|
-
});
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const OpenrouterListUserModels_ArchitectureSchema = zod.z.object({
|
|
19
19
|
modality: zod.z.string().describe("Overall modality pattern (e.g., 'text->text').").nullable().optional(),
|
|
20
20
|
tokenizer: zod.z.string().describe("Tokenization method used.").nullable(),
|
|
21
21
|
instruct_type: zod.z.string().describe("Instruction style/type (e.g., 'chatml').").nullable().optional(),
|
|
22
22
|
input_modalities: zod.z.array(zod.z.string()).describe("Supported input types (e.g., 'text', 'image')."),
|
|
23
23
|
output_modalities: zod.z.array(zod.z.string()).describe("Supported output types (e.g., 'text').")
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const OpenrouterListUserModels_TopProviderSchema = zod.z.object({
|
|
26
26
|
is_moderated: zod.z.boolean().describe("Indicates if the content is moderated.").nullable().optional(),
|
|
27
27
|
context_length: zod.z.number().int().describe("Maximum context window size from provider.").nullable().optional(),
|
|
28
28
|
max_completion_tokens: zod.z.number().int().describe("Maximum completion tokens allowed by provider.").nullable().optional()
|
|
29
|
-
});
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const OpenrouterListUserModels_ModelInfoSchema = zod.z.object({
|
|
31
31
|
id: zod.z.string().describe("Unique model identifier.").nullable(),
|
|
32
32
|
name: zod.z.string().describe("Human-readable display name for the model.").nullable(),
|
|
@@ -39,11 +39,11 @@ const OpenrouterListUserModels_ModelInfoSchema = zod.z.object({
|
|
|
39
39
|
context_length: zod.z.number().int().describe("Maximum context window size in tokens.").nullable(),
|
|
40
40
|
expiration_date: zod.z.string().describe("Date when model will be deprecated, if applicable.").nullable().optional(),
|
|
41
41
|
hugging_face_id: zod.z.string().describe("Identifier for the model on Hugging Face.").nullable().optional(),
|
|
42
|
-
default_parameters: zod.z.
|
|
43
|
-
per_request_limits: zod.z.
|
|
42
|
+
default_parameters: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Default parameter values for this model, if any.").nullable().optional(),
|
|
43
|
+
per_request_limits: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Rate limiting information as a mapping of limit names to values, or null if no limits.").nullable().optional(),
|
|
44
44
|
supported_parameters: zod.z.array(zod.z.string()).describe("Supported API parameters for this model.")
|
|
45
|
-
});
|
|
46
|
-
const OpenrouterListUserModelsOutput = zod.z.object({ data: zod.z.array(OpenrouterListUserModels_ModelInfoSchema).describe("List of models filtered by user provider preferences, privacy settings, and guardrails.") });
|
|
45
|
+
}).passthrough();
|
|
46
|
+
const OpenrouterListUserModelsOutput = zod.z.object({ data: zod.z.array(OpenrouterListUserModels_ModelInfoSchema).describe("List of models filtered by user provider preferences, privacy settings, and guardrails.") }).passthrough();
|
|
47
47
|
const openrouterListUserModels = require_action.action("OPENROUTER_LIST_USER_MODELS", {
|
|
48
48
|
slug: "openrouter-list-user-models",
|
|
49
49
|
name: "List User Models",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-user-models.cjs","names":["z","action"],"sources":["../../src/actions/list-user-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListUserModelsInput = z.object({\n x_title: z.string().describe(\"The app display name allows you to customize how your app appears in OpenRouter's dashboard.\").optional(),\n http_referer: z.string().describe(\"The app identifier should be your app's URL and is used as the primary identifier for rankings. This is used to track API usage per application.\").optional(),\n});\nconst OpenrouterListUserModels_PricingSchema = z.object({\n image: z.string().describe(\"Price per image.\").nullable().optional(),\n prompt: z.string().describe(\"Price per prompt token.\").nullable(),\n request: z.string().describe(\"Price per request.\").nullable().optional(),\n completion: z.string().describe(\"Price per completion token.\").nullable(),\n web_search: z.string().describe(\"Price per web search.\").nullable().optional(),\n input_cache_read: z.string().describe(\"Price per input cache read.\").nullable().optional(),\n input_cache_write: z.string().describe(\"Price per input cache write.\").nullable().optional(),\n internal_reasoning: z.string().describe(\"Price per internal reasoning.\").nullable().optional(),\n});\nconst OpenrouterListUserModels_ArchitectureSchema = z.object({\n modality: z.string().describe(\"Overall modality pattern (e.g., 'text->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\").nullable(),\n instruct_type: z.string().describe(\"Instruction style/type (e.g., 'chatml').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"Supported input types (e.g., 'text', 'image').\"),\n output_modalities: z.array(z.string()).describe(\"Supported output types (e.g., 'text').\"),\n});\nconst OpenrouterListUserModels_TopProviderSchema = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\").nullable().optional(),\n context_length: z.number().int().describe(\"Maximum context window size from provider.\").nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum completion tokens allowed by provider.\").nullable().optional(),\n});\nconst OpenrouterListUserModels_ModelInfoSchema = z.object({\n id: z.string().describe(\"Unique model identifier.\").nullable(),\n name: z.string().describe(\"Human-readable display name for the model.\").nullable(),\n created: z.number().describe(\"Unix timestamp when the model was added.\").nullable(),\n pricing: OpenrouterListUserModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\").nullable().optional(),\n architecture: OpenrouterListUserModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListUserModels_TopProviderSchema.nullable(),\n canonical_slug: z.string().describe(\"Permanent slug for the model (immutable).\").nullable(),\n context_length: z.number().int().describe(\"Maximum context window size in tokens.\").nullable(),\n expiration_date: z.string().describe(\"Date when model will be deprecated, if applicable.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: z.
|
|
1
|
+
{"version":3,"file":"list-user-models.cjs","names":["z","action"],"sources":["../../src/actions/list-user-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListUserModelsInput = z.object({\n x_title: z.string().describe(\"The app display name allows you to customize how your app appears in OpenRouter's dashboard.\").optional(),\n http_referer: z.string().describe(\"The app identifier should be your app's URL and is used as the primary identifier for rankings. This is used to track API usage per application.\").optional(),\n});\nconst OpenrouterListUserModels_PricingSchema = z.object({\n image: z.string().describe(\"Price per image.\").nullable().optional(),\n prompt: z.string().describe(\"Price per prompt token.\").nullable(),\n request: z.string().describe(\"Price per request.\").nullable().optional(),\n completion: z.string().describe(\"Price per completion token.\").nullable(),\n web_search: z.string().describe(\"Price per web search.\").nullable().optional(),\n input_cache_read: z.string().describe(\"Price per input cache read.\").nullable().optional(),\n input_cache_write: z.string().describe(\"Price per input cache write.\").nullable().optional(),\n internal_reasoning: z.string().describe(\"Price per internal reasoning.\").nullable().optional(),\n}).passthrough();\nconst OpenrouterListUserModels_ArchitectureSchema = z.object({\n modality: z.string().describe(\"Overall modality pattern (e.g., 'text->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\").nullable(),\n instruct_type: z.string().describe(\"Instruction style/type (e.g., 'chatml').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"Supported input types (e.g., 'text', 'image').\"),\n output_modalities: z.array(z.string()).describe(\"Supported output types (e.g., 'text').\"),\n}).passthrough();\nconst OpenrouterListUserModels_TopProviderSchema = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\").nullable().optional(),\n context_length: z.number().int().describe(\"Maximum context window size from provider.\").nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum completion tokens allowed by provider.\").nullable().optional(),\n}).passthrough();\nconst OpenrouterListUserModels_ModelInfoSchema = z.object({\n id: z.string().describe(\"Unique model identifier.\").nullable(),\n name: z.string().describe(\"Human-readable display name for the model.\").nullable(),\n created: z.number().describe(\"Unix timestamp when the model was added.\").nullable(),\n pricing: OpenrouterListUserModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\").nullable().optional(),\n architecture: OpenrouterListUserModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListUserModels_TopProviderSchema.nullable(),\n canonical_slug: z.string().describe(\"Permanent slug for the model (immutable).\").nullable(),\n context_length: z.number().int().describe(\"Maximum context window size in tokens.\").nullable(),\n expiration_date: z.string().describe(\"Date when model will be deprecated, if applicable.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: z.record(z.string(), z.unknown()).describe(\"Default parameter values for this model, if any.\").nullable().optional(),\n per_request_limits: z.record(z.string(), z.unknown()).describe(\"Rate limiting information as a mapping of limit names to values, or null if no limits.\").nullable().optional(),\n supported_parameters: z.array(z.string()).describe(\"Supported API parameters for this model.\"),\n}).passthrough();\nexport const OpenrouterListUserModelsOutput = z.object({\n data: z.array(OpenrouterListUserModels_ModelInfoSchema).describe(\"List of models filtered by user provider preferences, privacy settings, and guardrails.\"),\n}).passthrough();\n\nexport const openrouterListUserModels = action(\"OPENROUTER_LIST_USER_MODELS\", {\n slug: \"openrouter-list-user-models\",\n name: \"List User Models\",\n description: \"Tool to list models filtered by user provider preferences, privacy settings, and guardrails. Use after authenticating to get models tailored to the user's configuration.\",\n input: OpenrouterListUserModelsInput,\n output: OpenrouterListUserModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACtI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AACjM,CAAC;AACD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CA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,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,oBAAoBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7K,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAC/F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,yFAAyF,EAC5J,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -19,7 +19,7 @@ declare const OpenrouterListUserModelsOutput: z.ZodObject<{
|
|
|
19
19
|
input_cache_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
input_cache_write: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
internal_reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
architecture: z.ZodNullable<z.ZodObject<{
|
|
25
25
|
modality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -27,21 +27,21 @@ declare const OpenrouterListUserModelsOutput: z.ZodObject<{
|
|
|
27
27
|
instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
input_modalities: z.ZodArray<z.ZodString>;
|
|
29
29
|
output_modalities: z.ZodArray<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
31
|
top_provider: z.ZodNullable<z.ZodObject<{
|
|
32
32
|
is_moderated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
33
33
|
context_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
34
|
max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>>;
|
|
36
36
|
canonical_slug: z.ZodNullable<z.ZodString>;
|
|
37
37
|
context_length: z.ZodNullable<z.ZodNumber>;
|
|
38
38
|
expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
hugging_face_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
default_parameters: z.ZodOptional<z.ZodNullable<z.
|
|
41
|
-
per_request_limits: z.ZodOptional<z.ZodNullable<z.
|
|
40
|
+
default_parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
41
|
+
per_request_limits: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
42
|
supported_parameters: z.ZodArray<z.ZodString>;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
45
|
declare const openrouterListUserModels: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
46
|
x_title?: string | undefined;
|
|
47
47
|
http_referer?: string | undefined;
|
|
@@ -19,7 +19,7 @@ declare const OpenrouterListUserModelsOutput: z.ZodObject<{
|
|
|
19
19
|
input_cache_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
input_cache_write: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
internal_reasoning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
architecture: z.ZodNullable<z.ZodObject<{
|
|
25
25
|
modality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -27,21 +27,21 @@ declare const OpenrouterListUserModelsOutput: z.ZodObject<{
|
|
|
27
27
|
instruct_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
input_modalities: z.ZodArray<z.ZodString>;
|
|
29
29
|
output_modalities: z.ZodArray<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
31
|
top_provider: z.ZodNullable<z.ZodObject<{
|
|
32
32
|
is_moderated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
33
33
|
context_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
34
|
max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>>;
|
|
36
36
|
canonical_slug: z.ZodNullable<z.ZodString>;
|
|
37
37
|
context_length: z.ZodNullable<z.ZodNumber>;
|
|
38
38
|
expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
hugging_face_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
default_parameters: z.ZodOptional<z.ZodNullable<z.
|
|
41
|
-
per_request_limits: z.ZodOptional<z.ZodNullable<z.
|
|
40
|
+
default_parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
41
|
+
per_request_limits: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
42
|
supported_parameters: z.ZodArray<z.ZodString>;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
45
|
declare const openrouterListUserModels: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
46
|
x_title?: string | undefined;
|
|
47
47
|
http_referer?: string | undefined;
|
|
@@ -14,19 +14,19 @@ const OpenrouterListUserModels_PricingSchema = z.object({
|
|
|
14
14
|
input_cache_read: z.string().describe("Price per input cache read.").nullable().optional(),
|
|
15
15
|
input_cache_write: z.string().describe("Price per input cache write.").nullable().optional(),
|
|
16
16
|
internal_reasoning: z.string().describe("Price per internal reasoning.").nullable().optional()
|
|
17
|
-
});
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const OpenrouterListUserModels_ArchitectureSchema = z.object({
|
|
19
19
|
modality: z.string().describe("Overall modality pattern (e.g., 'text->text').").nullable().optional(),
|
|
20
20
|
tokenizer: z.string().describe("Tokenization method used.").nullable(),
|
|
21
21
|
instruct_type: z.string().describe("Instruction style/type (e.g., 'chatml').").nullable().optional(),
|
|
22
22
|
input_modalities: z.array(z.string()).describe("Supported input types (e.g., 'text', 'image')."),
|
|
23
23
|
output_modalities: z.array(z.string()).describe("Supported output types (e.g., 'text').")
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const OpenrouterListUserModels_TopProviderSchema = z.object({
|
|
26
26
|
is_moderated: z.boolean().describe("Indicates if the content is moderated.").nullable().optional(),
|
|
27
27
|
context_length: z.number().int().describe("Maximum context window size from provider.").nullable().optional(),
|
|
28
28
|
max_completion_tokens: z.number().int().describe("Maximum completion tokens allowed by provider.").nullable().optional()
|
|
29
|
-
});
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const OpenrouterListUserModels_ModelInfoSchema = z.object({
|
|
31
31
|
id: z.string().describe("Unique model identifier.").nullable(),
|
|
32
32
|
name: z.string().describe("Human-readable display name for the model.").nullable(),
|
|
@@ -39,16 +39,16 @@ const OpenrouterListUserModels_ModelInfoSchema = z.object({
|
|
|
39
39
|
context_length: z.number().int().describe("Maximum context window size in tokens.").nullable(),
|
|
40
40
|
expiration_date: z.string().describe("Date when model will be deprecated, if applicable.").nullable().optional(),
|
|
41
41
|
hugging_face_id: z.string().describe("Identifier for the model on Hugging Face.").nullable().optional(),
|
|
42
|
-
default_parameters: z.
|
|
43
|
-
per_request_limits: z.
|
|
42
|
+
default_parameters: z.record(z.string(), z.unknown()).describe("Default parameter values for this model, if any.").nullable().optional(),
|
|
43
|
+
per_request_limits: z.record(z.string(), z.unknown()).describe("Rate limiting information as a mapping of limit names to values, or null if no limits.").nullable().optional(),
|
|
44
44
|
supported_parameters: z.array(z.string()).describe("Supported API parameters for this model.")
|
|
45
|
-
});
|
|
45
|
+
}).passthrough();
|
|
46
46
|
const openrouterListUserModels = action("OPENROUTER_LIST_USER_MODELS", {
|
|
47
47
|
slug: "openrouter-list-user-models",
|
|
48
48
|
name: "List User Models",
|
|
49
49
|
description: "Tool to list models filtered by user provider preferences, privacy settings, and guardrails. Use after authenticating to get models tailored to the user's configuration.",
|
|
50
50
|
input: OpenrouterListUserModelsInput,
|
|
51
|
-
output: z.object({ data: z.array(OpenrouterListUserModels_ModelInfoSchema).describe("List of models filtered by user provider preferences, privacy settings, and guardrails.") })
|
|
51
|
+
output: z.object({ data: z.array(OpenrouterListUserModels_ModelInfoSchema).describe("List of models filtered by user provider preferences, privacy settings, and guardrails.") }).passthrough()
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
54
54
|
export { openrouterListUserModels };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-user-models.mjs","names":[],"sources":["../../src/actions/list-user-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListUserModelsInput = z.object({\n x_title: z.string().describe(\"The app display name allows you to customize how your app appears in OpenRouter's dashboard.\").optional(),\n http_referer: z.string().describe(\"The app identifier should be your app's URL and is used as the primary identifier for rankings. This is used to track API usage per application.\").optional(),\n});\nconst OpenrouterListUserModels_PricingSchema = z.object({\n image: z.string().describe(\"Price per image.\").nullable().optional(),\n prompt: z.string().describe(\"Price per prompt token.\").nullable(),\n request: z.string().describe(\"Price per request.\").nullable().optional(),\n completion: z.string().describe(\"Price per completion token.\").nullable(),\n web_search: z.string().describe(\"Price per web search.\").nullable().optional(),\n input_cache_read: z.string().describe(\"Price per input cache read.\").nullable().optional(),\n input_cache_write: z.string().describe(\"Price per input cache write.\").nullable().optional(),\n internal_reasoning: z.string().describe(\"Price per internal reasoning.\").nullable().optional(),\n});\nconst OpenrouterListUserModels_ArchitectureSchema = z.object({\n modality: z.string().describe(\"Overall modality pattern (e.g., 'text->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\").nullable(),\n instruct_type: z.string().describe(\"Instruction style/type (e.g., 'chatml').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"Supported input types (e.g., 'text', 'image').\"),\n output_modalities: z.array(z.string()).describe(\"Supported output types (e.g., 'text').\"),\n});\nconst OpenrouterListUserModels_TopProviderSchema = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\").nullable().optional(),\n context_length: z.number().int().describe(\"Maximum context window size from provider.\").nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum completion tokens allowed by provider.\").nullable().optional(),\n});\nconst OpenrouterListUserModels_ModelInfoSchema = z.object({\n id: z.string().describe(\"Unique model identifier.\").nullable(),\n name: z.string().describe(\"Human-readable display name for the model.\").nullable(),\n created: z.number().describe(\"Unix timestamp when the model was added.\").nullable(),\n pricing: OpenrouterListUserModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\").nullable().optional(),\n architecture: OpenrouterListUserModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListUserModels_TopProviderSchema.nullable(),\n canonical_slug: z.string().describe(\"Permanent slug for the model (immutable).\").nullable(),\n context_length: z.number().int().describe(\"Maximum context window size in tokens.\").nullable(),\n expiration_date: z.string().describe(\"Date when model will be deprecated, if applicable.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: z.
|
|
1
|
+
{"version":3,"file":"list-user-models.mjs","names":[],"sources":["../../src/actions/list-user-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenrouterListUserModelsInput = z.object({\n x_title: z.string().describe(\"The app display name allows you to customize how your app appears in OpenRouter's dashboard.\").optional(),\n http_referer: z.string().describe(\"The app identifier should be your app's URL and is used as the primary identifier for rankings. This is used to track API usage per application.\").optional(),\n});\nconst OpenrouterListUserModels_PricingSchema = z.object({\n image: z.string().describe(\"Price per image.\").nullable().optional(),\n prompt: z.string().describe(\"Price per prompt token.\").nullable(),\n request: z.string().describe(\"Price per request.\").nullable().optional(),\n completion: z.string().describe(\"Price per completion token.\").nullable(),\n web_search: z.string().describe(\"Price per web search.\").nullable().optional(),\n input_cache_read: z.string().describe(\"Price per input cache read.\").nullable().optional(),\n input_cache_write: z.string().describe(\"Price per input cache write.\").nullable().optional(),\n internal_reasoning: z.string().describe(\"Price per internal reasoning.\").nullable().optional(),\n}).passthrough();\nconst OpenrouterListUserModels_ArchitectureSchema = z.object({\n modality: z.string().describe(\"Overall modality pattern (e.g., 'text->text').\").nullable().optional(),\n tokenizer: z.string().describe(\"Tokenization method used.\").nullable(),\n instruct_type: z.string().describe(\"Instruction style/type (e.g., 'chatml').\").nullable().optional(),\n input_modalities: z.array(z.string()).describe(\"Supported input types (e.g., 'text', 'image').\"),\n output_modalities: z.array(z.string()).describe(\"Supported output types (e.g., 'text').\"),\n}).passthrough();\nconst OpenrouterListUserModels_TopProviderSchema = z.object({\n is_moderated: z.boolean().describe(\"Indicates if the content is moderated.\").nullable().optional(),\n context_length: z.number().int().describe(\"Maximum context window size from provider.\").nullable().optional(),\n max_completion_tokens: z.number().int().describe(\"Maximum completion tokens allowed by provider.\").nullable().optional(),\n}).passthrough();\nconst OpenrouterListUserModels_ModelInfoSchema = z.object({\n id: z.string().describe(\"Unique model identifier.\").nullable(),\n name: z.string().describe(\"Human-readable display name for the model.\").nullable(),\n created: z.number().describe(\"Unix timestamp when the model was added.\").nullable(),\n pricing: OpenrouterListUserModels_PricingSchema.nullable(),\n description: z.string().describe(\"Detailed description of the model's capabilities.\").nullable().optional(),\n architecture: OpenrouterListUserModels_ArchitectureSchema.nullable(),\n top_provider: OpenrouterListUserModels_TopProviderSchema.nullable(),\n canonical_slug: z.string().describe(\"Permanent slug for the model (immutable).\").nullable(),\n context_length: z.number().int().describe(\"Maximum context window size in tokens.\").nullable(),\n expiration_date: z.string().describe(\"Date when model will be deprecated, if applicable.\").nullable().optional(),\n hugging_face_id: z.string().describe(\"Identifier for the model on Hugging Face.\").nullable().optional(),\n default_parameters: z.record(z.string(), z.unknown()).describe(\"Default parameter values for this model, if any.\").nullable().optional(),\n per_request_limits: z.record(z.string(), z.unknown()).describe(\"Rate limiting information as a mapping of limit names to values, or null if no limits.\").nullable().optional(),\n supported_parameters: z.array(z.string()).describe(\"Supported API parameters for this model.\"),\n}).passthrough();\nexport const OpenrouterListUserModelsOutput = z.object({\n data: z.array(OpenrouterListUserModels_ModelInfoSchema).describe(\"List of models filtered by user provider preferences, privacy settings, and guardrails.\"),\n}).passthrough();\n\nexport const openrouterListUserModels = action(\"OPENROUTER_LIST_USER_MODELS\", {\n slug: \"openrouter-list-user-models\",\n name: \"List User Models\",\n description: \"Tool to list models filtered by user provider preferences, privacy settings, and guardrails. Use after authenticating to get models tailored to the user's configuration.\",\n input: OpenrouterListUserModelsInput,\n output: OpenrouterListUserModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACtI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;AACjM,CAAC;AACD,MAAM,yCAAyC,EAAE,OAAO;CACtD,OAAO,EAAE,OAAO,CAAC,C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