@openrouter/sdk 0.0.0-beta.32 → 0.0.0-beta.33
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/FUNCTIONS.md +2 -0
- package/REACT_QUERY.md +2 -0
- package/README.md +12 -0
- package/dist/commonjs/funcs/endpointsList.d.ts +1 -1
- package/dist/commonjs/funcs/endpointsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/endpointsList.js +1 -1
- package/dist/commonjs/funcs/endpointsList.js.map +1 -1
- package/dist/commonjs/funcs/modelsList.d.ts +1 -1
- package/dist/commonjs/funcs/modelsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/modelsList.js +1 -1
- package/dist/commonjs/funcs/modelsList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/endpointslist.d.ts +768 -0
- package/dist/commonjs/models/endpointslist.d.ts.map +1 -0
- package/dist/commonjs/models/endpointslist.js +625 -0
- package/dist/commonjs/models/endpointslist.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +3 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +3 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/keyinfo.d.ts +155 -0
- package/dist/commonjs/models/keyinfo.d.ts.map +1 -0
- package/dist/commonjs/models/keyinfo.js +163 -0
- package/dist/commonjs/models/keyinfo.js.map +1 -0
- package/dist/commonjs/models/modelslist.d.ts +854 -0
- package/dist/commonjs/models/modelslist.d.ts.map +1 -0
- package/dist/commonjs/models/modelslist.js +768 -0
- package/dist/commonjs/models/modelslist.js.map +1 -0
- package/dist/commonjs/models/openairesponsesrequest.d.ts +52 -52
- package/dist/commonjs/models/openairesponsesrequest.d.ts.map +1 -1
- package/dist/commonjs/models/openairesponsesrequest.js +74 -76
- package/dist/commonjs/models/openairesponsesrequest.js.map +1 -1
- package/dist/commonjs/models/operations/getcurrentkey.d.ts +3 -108
- package/dist/commonjs/models/operations/getcurrentkey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcurrentkey.js +4 -88
- package/dist/commonjs/models/operations/getcurrentkey.js.map +1 -1
- package/dist/commonjs/models/operations/list.d.ts +63 -825
- package/dist/commonjs/models/operations/list.d.ts.map +1 -1
- package/dist/commonjs/models/operations/list.js +86 -667
- package/dist/commonjs/models/operations/list.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +16 -865
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +19 -742
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/commonjs/models/operations/listusermodels.d.ts +3 -852
- package/dist/commonjs/models/operations/listusermodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listusermodels.js +4 -730
- package/dist/commonjs/models/operations/listusermodels.js.map +1 -1
- package/dist/commonjs/models/operations/previewzdr.d.ts +97 -97
- package/dist/commonjs/models/operations/previewzdr.d.ts.map +1 -1
- package/dist/commonjs/models/operations/previewzdr.js +134 -133
- package/dist/commonjs/models/operations/previewzdr.js.map +1 -1
- package/dist/commonjs/models/responsereasoningconfig.d.ts +4 -0
- package/dist/commonjs/models/responsereasoningconfig.d.ts.map +1 -1
- package/dist/commonjs/models/responsereasoningconfig.js +13 -0
- package/dist/commonjs/models/responsereasoningconfig.js.map +1 -1
- package/dist/commonjs/models/responsesusage.d.ts +41 -0
- package/dist/commonjs/models/responsesusage.d.ts.map +1 -1
- package/dist/commonjs/models/responsesusage.js +54 -1
- package/dist/commonjs/models/responsesusage.js.map +1 -1
- package/dist/commonjs/react-query/endpointsList.d.ts +4 -4
- package/dist/commonjs/react-query/endpointsList.d.ts.map +1 -1
- package/dist/commonjs/react-query/endpointsList.js.map +1 -1
- package/dist/commonjs/react-query/modelsList.d.ts +4 -4
- package/dist/commonjs/react-query/modelsList.d.ts.map +1 -1
- package/dist/commonjs/react-query/modelsList.js.map +1 -1
- package/dist/commonjs/sdk/endpoints.d.ts +1 -1
- package/dist/commonjs/sdk/endpoints.d.ts.map +1 -1
- package/dist/commonjs/sdk/endpoints.js.map +1 -1
- package/dist/commonjs/sdk/models.d.ts +1 -1
- package/dist/commonjs/sdk/models.d.ts.map +1 -1
- package/dist/commonjs/sdk/models.js.map +1 -1
- package/dist/esm/funcs/endpointsList.d.ts +1 -1
- package/dist/esm/funcs/endpointsList.d.ts.map +1 -1
- package/dist/esm/funcs/endpointsList.js +1 -1
- package/dist/esm/funcs/endpointsList.js.map +1 -1
- package/dist/esm/funcs/modelsList.d.ts +1 -1
- package/dist/esm/funcs/modelsList.d.ts.map +1 -1
- package/dist/esm/funcs/modelsList.js +1 -1
- package/dist/esm/funcs/modelsList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/endpointslist.d.ts +768 -0
- package/dist/esm/models/endpointslist.d.ts.map +1 -0
- package/dist/esm/models/endpointslist.js +562 -0
- package/dist/esm/models/endpointslist.js.map +1 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/keyinfo.d.ts +155 -0
- package/dist/esm/models/keyinfo.d.ts.map +1 -0
- package/dist/esm/models/keyinfo.js +123 -0
- package/dist/esm/models/keyinfo.js.map +1 -0
- package/dist/esm/models/modelslist.d.ts +854 -0
- package/dist/esm/models/modelslist.d.ts.map +1 -0
- package/dist/esm/models/modelslist.js +697 -0
- package/dist/esm/models/modelslist.js.map +1 -0
- package/dist/esm/models/openairesponsesrequest.d.ts +52 -52
- package/dist/esm/models/openairesponsesrequest.d.ts.map +1 -1
- package/dist/esm/models/openairesponsesrequest.js +64 -66
- package/dist/esm/models/openairesponsesrequest.js.map +1 -1
- package/dist/esm/models/operations/getcurrentkey.d.ts +3 -108
- package/dist/esm/models/operations/getcurrentkey.d.ts.map +1 -1
- package/dist/esm/models/operations/getcurrentkey.js +3 -83
- package/dist/esm/models/operations/getcurrentkey.js.map +1 -1
- package/dist/esm/models/operations/list.d.ts +63 -825
- package/dist/esm/models/operations/list.d.ts.map +1 -1
- package/dist/esm/models/operations/list.js +81 -635
- package/dist/esm/models/operations/list.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +16 -865
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +16 -704
- package/dist/esm/models/operations/listmodels.js.map +1 -1
- package/dist/esm/models/operations/listusermodels.d.ts +3 -852
- package/dist/esm/models/operations/listusermodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listusermodels.js +3 -694
- package/dist/esm/models/operations/listusermodels.js.map +1 -1
- package/dist/esm/models/operations/previewzdr.d.ts +97 -97
- package/dist/esm/models/operations/previewzdr.d.ts.map +1 -1
- package/dist/esm/models/operations/previewzdr.js +118 -117
- package/dist/esm/models/operations/previewzdr.js.map +1 -1
- package/dist/esm/models/responsereasoningconfig.d.ts +4 -0
- package/dist/esm/models/responsereasoningconfig.d.ts.map +1 -1
- package/dist/esm/models/responsereasoningconfig.js +13 -0
- package/dist/esm/models/responsereasoningconfig.js.map +1 -1
- package/dist/esm/models/responsesusage.d.ts +41 -0
- package/dist/esm/models/responsesusage.d.ts.map +1 -1
- package/dist/esm/models/responsesusage.js +51 -0
- package/dist/esm/models/responsesusage.js.map +1 -1
- package/dist/esm/react-query/endpointsList.d.ts +4 -4
- package/dist/esm/react-query/endpointsList.d.ts.map +1 -1
- package/dist/esm/react-query/endpointsList.js.map +1 -1
- package/dist/esm/react-query/modelsList.d.ts +4 -4
- package/dist/esm/react-query/modelsList.d.ts.map +1 -1
- package/dist/esm/react-query/modelsList.js.map +1 -1
- package/dist/esm/sdk/endpoints.d.ts +1 -1
- package/dist/esm/sdk/endpoints.d.ts.map +1 -1
- package/dist/esm/sdk/endpoints.js.map +1 -1
- package/dist/esm/sdk/models.d.ts +1 -1
- package/dist/esm/sdk/models.d.ts.map +1 -1
- package/dist/esm/sdk/models.js.map +1 -1
- package/docs/sdks/endpoints/README.md +1 -1
- package/docs/sdks/models/README.md +1 -1
- package/docs/sdks/responses/README.md +4 -0
- package/examples/betaResponsesSendRequest.example.ts +2 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/endpointsList.ts +3 -3
- package/src/funcs/modelsList.ts +3 -5
- package/src/lib/config.ts +2 -2
- package/src/models/endpointslist.ts +1034 -0
- package/src/models/index.ts +3 -0
- package/src/models/keyinfo.ts +281 -0
- package/src/models/modelslist.ts +1394 -0
- package/src/models/openairesponsesrequest.ts +133 -94
- package/src/models/operations/getcurrentkey.ts +5 -203
- package/src/models/operations/list.ts +109 -1106
- package/src/models/operations/listmodels.ts +26 -1436
- package/src/models/operations/listusermodels.ts +5 -1440
- package/src/models/operations/previewzdr.ts +196 -225
- package/src/models/responsereasoningconfig.ts +17 -0
- package/src/models/responsesusage.ts +96 -0
- package/src/react-query/endpointsList.ts +4 -4
- package/src/react-query/modelsList.ts +4 -4
- package/src/sdk/endpoints.ts +1 -1
- package/src/sdk/models.ts +1 -1
|
@@ -0,0 +1,768 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.InputModality$ = exports.InputModality$outboundSchema = exports.InputModality$inboundSchema = exports.InstructType$ = exports.InstructType$outboundSchema = exports.InstructType$inboundSchema = exports.Tokenizer$ = exports.Tokenizer$outboundSchema = exports.Tokenizer$inboundSchema = exports.ModelsListPricing$ = exports.ModelsListPricing$outboundSchema = exports.ModelsListPricing$inboundSchema = exports.ModelsListInputCacheWrite$ = exports.ModelsListInputCacheWrite$outboundSchema = exports.ModelsListInputCacheWrite$inboundSchema = exports.ModelsListInputCacheRead$ = exports.ModelsListInputCacheRead$outboundSchema = exports.ModelsListInputCacheRead$inboundSchema = exports.ModelsListInternalReasoning$ = exports.ModelsListInternalReasoning$outboundSchema = exports.ModelsListInternalReasoning$inboundSchema = exports.ModelsListWebSearch$ = exports.ModelsListWebSearch$outboundSchema = exports.ModelsListWebSearch$inboundSchema = exports.ModelsListInputAudioCache$ = exports.ModelsListInputAudioCache$outboundSchema = exports.ModelsListInputAudioCache$inboundSchema = exports.ModelsListAudio$ = exports.ModelsListAudio$outboundSchema = exports.ModelsListAudio$inboundSchema = exports.ModelsListImageOutput$ = exports.ModelsListImageOutput$outboundSchema = exports.ModelsListImageOutput$inboundSchema = exports.ModelsListImage$ = exports.ModelsListImage$outboundSchema = exports.ModelsListImage$inboundSchema = exports.ModelsListRequest$ = exports.ModelsListRequest$outboundSchema = exports.ModelsListRequest$inboundSchema = exports.ModelsListCompletion$ = exports.ModelsListCompletion$outboundSchema = exports.ModelsListCompletion$inboundSchema = exports.ModelsListPrompt$ = exports.ModelsListPrompt$outboundSchema = exports.ModelsListPrompt$inboundSchema = exports.ModelsListSupportedParameter = exports.OutputModality = exports.InputModality = exports.InstructType = exports.Tokenizer = void 0;
|
|
40
|
+
exports.ModelsList$ = exports.ModelsList$outboundSchema = exports.ModelsList$inboundSchema = exports.DefaultParameters$ = exports.DefaultParameters$outboundSchema = exports.DefaultParameters$inboundSchema = exports.ModelsListSupportedParameter$ = exports.ModelsListSupportedParameter$outboundSchema = exports.ModelsListSupportedParameter$inboundSchema = exports.PerRequestLimits$ = exports.PerRequestLimits$outboundSchema = exports.PerRequestLimits$inboundSchema = exports.TopProvider$ = exports.TopProvider$outboundSchema = exports.TopProvider$inboundSchema = exports.Architecture$ = exports.Architecture$outboundSchema = exports.Architecture$inboundSchema = exports.OutputModality$ = exports.OutputModality$outboundSchema = exports.OutputModality$inboundSchema = void 0;
|
|
41
|
+
exports.modelsListPromptToJSON = modelsListPromptToJSON;
|
|
42
|
+
exports.modelsListPromptFromJSON = modelsListPromptFromJSON;
|
|
43
|
+
exports.modelsListCompletionToJSON = modelsListCompletionToJSON;
|
|
44
|
+
exports.modelsListCompletionFromJSON = modelsListCompletionFromJSON;
|
|
45
|
+
exports.modelsListRequestToJSON = modelsListRequestToJSON;
|
|
46
|
+
exports.modelsListRequestFromJSON = modelsListRequestFromJSON;
|
|
47
|
+
exports.modelsListImageToJSON = modelsListImageToJSON;
|
|
48
|
+
exports.modelsListImageFromJSON = modelsListImageFromJSON;
|
|
49
|
+
exports.modelsListImageOutputToJSON = modelsListImageOutputToJSON;
|
|
50
|
+
exports.modelsListImageOutputFromJSON = modelsListImageOutputFromJSON;
|
|
51
|
+
exports.modelsListAudioToJSON = modelsListAudioToJSON;
|
|
52
|
+
exports.modelsListAudioFromJSON = modelsListAudioFromJSON;
|
|
53
|
+
exports.modelsListInputAudioCacheToJSON = modelsListInputAudioCacheToJSON;
|
|
54
|
+
exports.modelsListInputAudioCacheFromJSON = modelsListInputAudioCacheFromJSON;
|
|
55
|
+
exports.modelsListWebSearchToJSON = modelsListWebSearchToJSON;
|
|
56
|
+
exports.modelsListWebSearchFromJSON = modelsListWebSearchFromJSON;
|
|
57
|
+
exports.modelsListInternalReasoningToJSON = modelsListInternalReasoningToJSON;
|
|
58
|
+
exports.modelsListInternalReasoningFromJSON = modelsListInternalReasoningFromJSON;
|
|
59
|
+
exports.modelsListInputCacheReadToJSON = modelsListInputCacheReadToJSON;
|
|
60
|
+
exports.modelsListInputCacheReadFromJSON = modelsListInputCacheReadFromJSON;
|
|
61
|
+
exports.modelsListInputCacheWriteToJSON = modelsListInputCacheWriteToJSON;
|
|
62
|
+
exports.modelsListInputCacheWriteFromJSON = modelsListInputCacheWriteFromJSON;
|
|
63
|
+
exports.modelsListPricingToJSON = modelsListPricingToJSON;
|
|
64
|
+
exports.modelsListPricingFromJSON = modelsListPricingFromJSON;
|
|
65
|
+
exports.architectureToJSON = architectureToJSON;
|
|
66
|
+
exports.architectureFromJSON = architectureFromJSON;
|
|
67
|
+
exports.topProviderToJSON = topProviderToJSON;
|
|
68
|
+
exports.topProviderFromJSON = topProviderFromJSON;
|
|
69
|
+
exports.perRequestLimitsToJSON = perRequestLimitsToJSON;
|
|
70
|
+
exports.perRequestLimitsFromJSON = perRequestLimitsFromJSON;
|
|
71
|
+
exports.defaultParametersToJSON = defaultParametersToJSON;
|
|
72
|
+
exports.defaultParametersFromJSON = defaultParametersFromJSON;
|
|
73
|
+
exports.modelsListToJSON = modelsListToJSON;
|
|
74
|
+
exports.modelsListFromJSON = modelsListFromJSON;
|
|
75
|
+
const z = __importStar(require("zod"));
|
|
76
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
77
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
78
|
+
/**
|
|
79
|
+
* Tokenizer type used by the model
|
|
80
|
+
*/
|
|
81
|
+
exports.Tokenizer = {
|
|
82
|
+
Router: "Router",
|
|
83
|
+
Media: "Media",
|
|
84
|
+
Other: "Other",
|
|
85
|
+
Gpt: "GPT",
|
|
86
|
+
Claude: "Claude",
|
|
87
|
+
Gemini: "Gemini",
|
|
88
|
+
Grok: "Grok",
|
|
89
|
+
Cohere: "Cohere",
|
|
90
|
+
Nova: "Nova",
|
|
91
|
+
Qwen: "Qwen",
|
|
92
|
+
Yi: "Yi",
|
|
93
|
+
DeepSeek: "DeepSeek",
|
|
94
|
+
Mistral: "Mistral",
|
|
95
|
+
Llama2: "Llama2",
|
|
96
|
+
Llama3: "Llama3",
|
|
97
|
+
Llama4: "Llama4",
|
|
98
|
+
PaLM: "PaLM",
|
|
99
|
+
Rwkv: "RWKV",
|
|
100
|
+
Qwen3: "Qwen3",
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Instruction format type
|
|
104
|
+
*/
|
|
105
|
+
exports.InstructType = {
|
|
106
|
+
None: "none",
|
|
107
|
+
Airoboros: "airoboros",
|
|
108
|
+
Alpaca: "alpaca",
|
|
109
|
+
AlpacaModif: "alpaca-modif",
|
|
110
|
+
Chatml: "chatml",
|
|
111
|
+
Claude: "claude",
|
|
112
|
+
CodeLlama: "code-llama",
|
|
113
|
+
Gemma: "gemma",
|
|
114
|
+
Llama2: "llama2",
|
|
115
|
+
Llama3: "llama3",
|
|
116
|
+
Mistral: "mistral",
|
|
117
|
+
Nemotron: "nemotron",
|
|
118
|
+
Neural: "neural",
|
|
119
|
+
Openchat: "openchat",
|
|
120
|
+
Phi3: "phi3",
|
|
121
|
+
Rwkv: "rwkv",
|
|
122
|
+
Vicuna: "vicuna",
|
|
123
|
+
Zephyr: "zephyr",
|
|
124
|
+
DeepseekR1: "deepseek-r1",
|
|
125
|
+
DeepseekV31: "deepseek-v3.1",
|
|
126
|
+
Qwq: "qwq",
|
|
127
|
+
Qwen3: "qwen3",
|
|
128
|
+
};
|
|
129
|
+
exports.InputModality = {
|
|
130
|
+
Text: "text",
|
|
131
|
+
Image: "image",
|
|
132
|
+
File: "file",
|
|
133
|
+
Audio: "audio",
|
|
134
|
+
};
|
|
135
|
+
exports.OutputModality = {
|
|
136
|
+
Text: "text",
|
|
137
|
+
Image: "image",
|
|
138
|
+
Embeddings: "embeddings",
|
|
139
|
+
};
|
|
140
|
+
exports.ModelsListSupportedParameter = {
|
|
141
|
+
Temperature: "temperature",
|
|
142
|
+
TopP: "top_p",
|
|
143
|
+
TopK: "top_k",
|
|
144
|
+
MinP: "min_p",
|
|
145
|
+
TopA: "top_a",
|
|
146
|
+
FrequencyPenalty: "frequency_penalty",
|
|
147
|
+
PresencePenalty: "presence_penalty",
|
|
148
|
+
RepetitionPenalty: "repetition_penalty",
|
|
149
|
+
MaxTokens: "max_tokens",
|
|
150
|
+
LogitBias: "logit_bias",
|
|
151
|
+
Logprobs: "logprobs",
|
|
152
|
+
TopLogprobs: "top_logprobs",
|
|
153
|
+
Seed: "seed",
|
|
154
|
+
ResponseFormat: "response_format",
|
|
155
|
+
StructuredOutputs: "structured_outputs",
|
|
156
|
+
Stop: "stop",
|
|
157
|
+
Tools: "tools",
|
|
158
|
+
ToolChoice: "tool_choice",
|
|
159
|
+
ParallelToolCalls: "parallel_tool_calls",
|
|
160
|
+
IncludeReasoning: "include_reasoning",
|
|
161
|
+
Reasoning: "reasoning",
|
|
162
|
+
WebSearchOptions: "web_search_options",
|
|
163
|
+
Verbosity: "verbosity",
|
|
164
|
+
};
|
|
165
|
+
/** @internal */
|
|
166
|
+
exports.ModelsListPrompt$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
167
|
+
/** @internal */
|
|
168
|
+
exports.ModelsListPrompt$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
169
|
+
/**
|
|
170
|
+
* @internal
|
|
171
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
172
|
+
*/
|
|
173
|
+
var ModelsListPrompt$;
|
|
174
|
+
(function (ModelsListPrompt$) {
|
|
175
|
+
/** @deprecated use `ModelsListPrompt$inboundSchema` instead. */
|
|
176
|
+
ModelsListPrompt$.inboundSchema = exports.ModelsListPrompt$inboundSchema;
|
|
177
|
+
/** @deprecated use `ModelsListPrompt$outboundSchema` instead. */
|
|
178
|
+
ModelsListPrompt$.outboundSchema = exports.ModelsListPrompt$outboundSchema;
|
|
179
|
+
})(ModelsListPrompt$ || (exports.ModelsListPrompt$ = ModelsListPrompt$ = {}));
|
|
180
|
+
function modelsListPromptToJSON(modelsListPrompt) {
|
|
181
|
+
return JSON.stringify(exports.ModelsListPrompt$outboundSchema.parse(modelsListPrompt));
|
|
182
|
+
}
|
|
183
|
+
function modelsListPromptFromJSON(jsonString) {
|
|
184
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelsListPrompt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListPrompt' from JSON`);
|
|
185
|
+
}
|
|
186
|
+
/** @internal */
|
|
187
|
+
exports.ModelsListCompletion$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
188
|
+
/** @internal */
|
|
189
|
+
exports.ModelsListCompletion$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
190
|
+
/**
|
|
191
|
+
* @internal
|
|
192
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
193
|
+
*/
|
|
194
|
+
var ModelsListCompletion$;
|
|
195
|
+
(function (ModelsListCompletion$) {
|
|
196
|
+
/** @deprecated use `ModelsListCompletion$inboundSchema` instead. */
|
|
197
|
+
ModelsListCompletion$.inboundSchema = exports.ModelsListCompletion$inboundSchema;
|
|
198
|
+
/** @deprecated use `ModelsListCompletion$outboundSchema` instead. */
|
|
199
|
+
ModelsListCompletion$.outboundSchema = exports.ModelsListCompletion$outboundSchema;
|
|
200
|
+
})(ModelsListCompletion$ || (exports.ModelsListCompletion$ = ModelsListCompletion$ = {}));
|
|
201
|
+
function modelsListCompletionToJSON(modelsListCompletion) {
|
|
202
|
+
return JSON.stringify(exports.ModelsListCompletion$outboundSchema.parse(modelsListCompletion));
|
|
203
|
+
}
|
|
204
|
+
function modelsListCompletionFromJSON(jsonString) {
|
|
205
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelsListCompletion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListCompletion' from JSON`);
|
|
206
|
+
}
|
|
207
|
+
/** @internal */
|
|
208
|
+
exports.ModelsListRequest$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
209
|
+
/** @internal */
|
|
210
|
+
exports.ModelsListRequest$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
211
|
+
/**
|
|
212
|
+
* @internal
|
|
213
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
214
|
+
*/
|
|
215
|
+
var ModelsListRequest$;
|
|
216
|
+
(function (ModelsListRequest$) {
|
|
217
|
+
/** @deprecated use `ModelsListRequest$inboundSchema` instead. */
|
|
218
|
+
ModelsListRequest$.inboundSchema = exports.ModelsListRequest$inboundSchema;
|
|
219
|
+
/** @deprecated use `ModelsListRequest$outboundSchema` instead. */
|
|
220
|
+
ModelsListRequest$.outboundSchema = exports.ModelsListRequest$outboundSchema;
|
|
221
|
+
})(ModelsListRequest$ || (exports.ModelsListRequest$ = ModelsListRequest$ = {}));
|
|
222
|
+
function modelsListRequestToJSON(modelsListRequest) {
|
|
223
|
+
return JSON.stringify(exports.ModelsListRequest$outboundSchema.parse(modelsListRequest));
|
|
224
|
+
}
|
|
225
|
+
function modelsListRequestFromJSON(jsonString) {
|
|
226
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelsListRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListRequest' from JSON`);
|
|
227
|
+
}
|
|
228
|
+
/** @internal */
|
|
229
|
+
exports.ModelsListImage$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
230
|
+
/** @internal */
|
|
231
|
+
exports.ModelsListImage$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
232
|
+
/**
|
|
233
|
+
* @internal
|
|
234
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
235
|
+
*/
|
|
236
|
+
var ModelsListImage$;
|
|
237
|
+
(function (ModelsListImage$) {
|
|
238
|
+
/** @deprecated use `ModelsListImage$inboundSchema` instead. */
|
|
239
|
+
ModelsListImage$.inboundSchema = exports.ModelsListImage$inboundSchema;
|
|
240
|
+
/** @deprecated use `ModelsListImage$outboundSchema` instead. */
|
|
241
|
+
ModelsListImage$.outboundSchema = exports.ModelsListImage$outboundSchema;
|
|
242
|
+
})(ModelsListImage$ || (exports.ModelsListImage$ = ModelsListImage$ = {}));
|
|
243
|
+
function modelsListImageToJSON(modelsListImage) {
|
|
244
|
+
return JSON.stringify(exports.ModelsListImage$outboundSchema.parse(modelsListImage));
|
|
245
|
+
}
|
|
246
|
+
function modelsListImageFromJSON(jsonString) {
|
|
247
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelsListImage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListImage' from JSON`);
|
|
248
|
+
}
|
|
249
|
+
/** @internal */
|
|
250
|
+
exports.ModelsListImageOutput$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
251
|
+
/** @internal */
|
|
252
|
+
exports.ModelsListImageOutput$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
253
|
+
/**
|
|
254
|
+
* @internal
|
|
255
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
256
|
+
*/
|
|
257
|
+
var ModelsListImageOutput$;
|
|
258
|
+
(function (ModelsListImageOutput$) {
|
|
259
|
+
/** @deprecated use `ModelsListImageOutput$inboundSchema` instead. */
|
|
260
|
+
ModelsListImageOutput$.inboundSchema = exports.ModelsListImageOutput$inboundSchema;
|
|
261
|
+
/** @deprecated use `ModelsListImageOutput$outboundSchema` instead. */
|
|
262
|
+
ModelsListImageOutput$.outboundSchema = exports.ModelsListImageOutput$outboundSchema;
|
|
263
|
+
})(ModelsListImageOutput$ || (exports.ModelsListImageOutput$ = ModelsListImageOutput$ = {}));
|
|
264
|
+
function modelsListImageOutputToJSON(modelsListImageOutput) {
|
|
265
|
+
return JSON.stringify(exports.ModelsListImageOutput$outboundSchema.parse(modelsListImageOutput));
|
|
266
|
+
}
|
|
267
|
+
function modelsListImageOutputFromJSON(jsonString) {
|
|
268
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelsListImageOutput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListImageOutput' from JSON`);
|
|
269
|
+
}
|
|
270
|
+
/** @internal */
|
|
271
|
+
exports.ModelsListAudio$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
272
|
+
/** @internal */
|
|
273
|
+
exports.ModelsListAudio$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
274
|
+
/**
|
|
275
|
+
* @internal
|
|
276
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
277
|
+
*/
|
|
278
|
+
var ModelsListAudio$;
|
|
279
|
+
(function (ModelsListAudio$) {
|
|
280
|
+
/** @deprecated use `ModelsListAudio$inboundSchema` instead. */
|
|
281
|
+
ModelsListAudio$.inboundSchema = exports.ModelsListAudio$inboundSchema;
|
|
282
|
+
/** @deprecated use `ModelsListAudio$outboundSchema` instead. */
|
|
283
|
+
ModelsListAudio$.outboundSchema = exports.ModelsListAudio$outboundSchema;
|
|
284
|
+
})(ModelsListAudio$ || (exports.ModelsListAudio$ = ModelsListAudio$ = {}));
|
|
285
|
+
function modelsListAudioToJSON(modelsListAudio) {
|
|
286
|
+
return JSON.stringify(exports.ModelsListAudio$outboundSchema.parse(modelsListAudio));
|
|
287
|
+
}
|
|
288
|
+
function modelsListAudioFromJSON(jsonString) {
|
|
289
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelsListAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListAudio' from JSON`);
|
|
290
|
+
}
|
|
291
|
+
/** @internal */
|
|
292
|
+
exports.ModelsListInputAudioCache$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
293
|
+
/** @internal */
|
|
294
|
+
exports.ModelsListInputAudioCache$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
295
|
+
/**
|
|
296
|
+
* @internal
|
|
297
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
298
|
+
*/
|
|
299
|
+
var ModelsListInputAudioCache$;
|
|
300
|
+
(function (ModelsListInputAudioCache$) {
|
|
301
|
+
/** @deprecated use `ModelsListInputAudioCache$inboundSchema` instead. */
|
|
302
|
+
ModelsListInputAudioCache$.inboundSchema = exports.ModelsListInputAudioCache$inboundSchema;
|
|
303
|
+
/** @deprecated use `ModelsListInputAudioCache$outboundSchema` instead. */
|
|
304
|
+
ModelsListInputAudioCache$.outboundSchema = exports.ModelsListInputAudioCache$outboundSchema;
|
|
305
|
+
})(ModelsListInputAudioCache$ || (exports.ModelsListInputAudioCache$ = ModelsListInputAudioCache$ = {}));
|
|
306
|
+
function modelsListInputAudioCacheToJSON(modelsListInputAudioCache) {
|
|
307
|
+
return JSON.stringify(exports.ModelsListInputAudioCache$outboundSchema.parse(modelsListInputAudioCache));
|
|
308
|
+
}
|
|
309
|
+
function modelsListInputAudioCacheFromJSON(jsonString) {
|
|
310
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelsListInputAudioCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListInputAudioCache' from JSON`);
|
|
311
|
+
}
|
|
312
|
+
/** @internal */
|
|
313
|
+
exports.ModelsListWebSearch$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
314
|
+
/** @internal */
|
|
315
|
+
exports.ModelsListWebSearch$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
316
|
+
/**
|
|
317
|
+
* @internal
|
|
318
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
319
|
+
*/
|
|
320
|
+
var ModelsListWebSearch$;
|
|
321
|
+
(function (ModelsListWebSearch$) {
|
|
322
|
+
/** @deprecated use `ModelsListWebSearch$inboundSchema` instead. */
|
|
323
|
+
ModelsListWebSearch$.inboundSchema = exports.ModelsListWebSearch$inboundSchema;
|
|
324
|
+
/** @deprecated use `ModelsListWebSearch$outboundSchema` instead. */
|
|
325
|
+
ModelsListWebSearch$.outboundSchema = exports.ModelsListWebSearch$outboundSchema;
|
|
326
|
+
})(ModelsListWebSearch$ || (exports.ModelsListWebSearch$ = ModelsListWebSearch$ = {}));
|
|
327
|
+
function modelsListWebSearchToJSON(modelsListWebSearch) {
|
|
328
|
+
return JSON.stringify(exports.ModelsListWebSearch$outboundSchema.parse(modelsListWebSearch));
|
|
329
|
+
}
|
|
330
|
+
function modelsListWebSearchFromJSON(jsonString) {
|
|
331
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelsListWebSearch$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListWebSearch' from JSON`);
|
|
332
|
+
}
|
|
333
|
+
/** @internal */
|
|
334
|
+
exports.ModelsListInternalReasoning$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
335
|
+
/** @internal */
|
|
336
|
+
exports.ModelsListInternalReasoning$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
337
|
+
/**
|
|
338
|
+
* @internal
|
|
339
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
340
|
+
*/
|
|
341
|
+
var ModelsListInternalReasoning$;
|
|
342
|
+
(function (ModelsListInternalReasoning$) {
|
|
343
|
+
/** @deprecated use `ModelsListInternalReasoning$inboundSchema` instead. */
|
|
344
|
+
ModelsListInternalReasoning$.inboundSchema = exports.ModelsListInternalReasoning$inboundSchema;
|
|
345
|
+
/** @deprecated use `ModelsListInternalReasoning$outboundSchema` instead. */
|
|
346
|
+
ModelsListInternalReasoning$.outboundSchema = exports.ModelsListInternalReasoning$outboundSchema;
|
|
347
|
+
})(ModelsListInternalReasoning$ || (exports.ModelsListInternalReasoning$ = ModelsListInternalReasoning$ = {}));
|
|
348
|
+
function modelsListInternalReasoningToJSON(modelsListInternalReasoning) {
|
|
349
|
+
return JSON.stringify(exports.ModelsListInternalReasoning$outboundSchema.parse(modelsListInternalReasoning));
|
|
350
|
+
}
|
|
351
|
+
function modelsListInternalReasoningFromJSON(jsonString) {
|
|
352
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelsListInternalReasoning$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListInternalReasoning' from JSON`);
|
|
353
|
+
}
|
|
354
|
+
/** @internal */
|
|
355
|
+
exports.ModelsListInputCacheRead$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
356
|
+
/** @internal */
|
|
357
|
+
exports.ModelsListInputCacheRead$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
358
|
+
/**
|
|
359
|
+
* @internal
|
|
360
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
361
|
+
*/
|
|
362
|
+
var ModelsListInputCacheRead$;
|
|
363
|
+
(function (ModelsListInputCacheRead$) {
|
|
364
|
+
/** @deprecated use `ModelsListInputCacheRead$inboundSchema` instead. */
|
|
365
|
+
ModelsListInputCacheRead$.inboundSchema = exports.ModelsListInputCacheRead$inboundSchema;
|
|
366
|
+
/** @deprecated use `ModelsListInputCacheRead$outboundSchema` instead. */
|
|
367
|
+
ModelsListInputCacheRead$.outboundSchema = exports.ModelsListInputCacheRead$outboundSchema;
|
|
368
|
+
})(ModelsListInputCacheRead$ || (exports.ModelsListInputCacheRead$ = ModelsListInputCacheRead$ = {}));
|
|
369
|
+
function modelsListInputCacheReadToJSON(modelsListInputCacheRead) {
|
|
370
|
+
return JSON.stringify(exports.ModelsListInputCacheRead$outboundSchema.parse(modelsListInputCacheRead));
|
|
371
|
+
}
|
|
372
|
+
function modelsListInputCacheReadFromJSON(jsonString) {
|
|
373
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelsListInputCacheRead$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListInputCacheRead' from JSON`);
|
|
374
|
+
}
|
|
375
|
+
/** @internal */
|
|
376
|
+
exports.ModelsListInputCacheWrite$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
377
|
+
/** @internal */
|
|
378
|
+
exports.ModelsListInputCacheWrite$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
379
|
+
/**
|
|
380
|
+
* @internal
|
|
381
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
382
|
+
*/
|
|
383
|
+
var ModelsListInputCacheWrite$;
|
|
384
|
+
(function (ModelsListInputCacheWrite$) {
|
|
385
|
+
/** @deprecated use `ModelsListInputCacheWrite$inboundSchema` instead. */
|
|
386
|
+
ModelsListInputCacheWrite$.inboundSchema = exports.ModelsListInputCacheWrite$inboundSchema;
|
|
387
|
+
/** @deprecated use `ModelsListInputCacheWrite$outboundSchema` instead. */
|
|
388
|
+
ModelsListInputCacheWrite$.outboundSchema = exports.ModelsListInputCacheWrite$outboundSchema;
|
|
389
|
+
})(ModelsListInputCacheWrite$ || (exports.ModelsListInputCacheWrite$ = ModelsListInputCacheWrite$ = {}));
|
|
390
|
+
function modelsListInputCacheWriteToJSON(modelsListInputCacheWrite) {
|
|
391
|
+
return JSON.stringify(exports.ModelsListInputCacheWrite$outboundSchema.parse(modelsListInputCacheWrite));
|
|
392
|
+
}
|
|
393
|
+
function modelsListInputCacheWriteFromJSON(jsonString) {
|
|
394
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelsListInputCacheWrite$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListInputCacheWrite' from JSON`);
|
|
395
|
+
}
|
|
396
|
+
/** @internal */
|
|
397
|
+
exports.ModelsListPricing$inboundSchema = z.object({
|
|
398
|
+
prompt: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
399
|
+
completion: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
400
|
+
request: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
401
|
+
image: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
402
|
+
image_output: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
403
|
+
audio: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
404
|
+
input_audio_cache: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
405
|
+
web_search: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
406
|
+
internal_reasoning: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
407
|
+
input_cache_read: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
408
|
+
input_cache_write: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
409
|
+
discount: z.number().optional(),
|
|
410
|
+
}).transform((v) => {
|
|
411
|
+
return (0, primitives_js_1.remap)(v, {
|
|
412
|
+
"image_output": "imageOutput",
|
|
413
|
+
"input_audio_cache": "inputAudioCache",
|
|
414
|
+
"web_search": "webSearch",
|
|
415
|
+
"internal_reasoning": "internalReasoning",
|
|
416
|
+
"input_cache_read": "inputCacheRead",
|
|
417
|
+
"input_cache_write": "inputCacheWrite",
|
|
418
|
+
});
|
|
419
|
+
});
|
|
420
|
+
/** @internal */
|
|
421
|
+
exports.ModelsListPricing$outboundSchema = z.object({
|
|
422
|
+
prompt: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
423
|
+
completion: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
424
|
+
request: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
425
|
+
image: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
426
|
+
imageOutput: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
427
|
+
audio: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
428
|
+
inputAudioCache: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
429
|
+
webSearch: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
430
|
+
internalReasoning: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
431
|
+
inputCacheRead: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
432
|
+
inputCacheWrite: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
433
|
+
discount: z.number().optional(),
|
|
434
|
+
}).transform((v) => {
|
|
435
|
+
return (0, primitives_js_1.remap)(v, {
|
|
436
|
+
imageOutput: "image_output",
|
|
437
|
+
inputAudioCache: "input_audio_cache",
|
|
438
|
+
webSearch: "web_search",
|
|
439
|
+
internalReasoning: "internal_reasoning",
|
|
440
|
+
inputCacheRead: "input_cache_read",
|
|
441
|
+
inputCacheWrite: "input_cache_write",
|
|
442
|
+
});
|
|
443
|
+
});
|
|
444
|
+
/**
|
|
445
|
+
* @internal
|
|
446
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
447
|
+
*/
|
|
448
|
+
var ModelsListPricing$;
|
|
449
|
+
(function (ModelsListPricing$) {
|
|
450
|
+
/** @deprecated use `ModelsListPricing$inboundSchema` instead. */
|
|
451
|
+
ModelsListPricing$.inboundSchema = exports.ModelsListPricing$inboundSchema;
|
|
452
|
+
/** @deprecated use `ModelsListPricing$outboundSchema` instead. */
|
|
453
|
+
ModelsListPricing$.outboundSchema = exports.ModelsListPricing$outboundSchema;
|
|
454
|
+
})(ModelsListPricing$ || (exports.ModelsListPricing$ = ModelsListPricing$ = {}));
|
|
455
|
+
function modelsListPricingToJSON(modelsListPricing) {
|
|
456
|
+
return JSON.stringify(exports.ModelsListPricing$outboundSchema.parse(modelsListPricing));
|
|
457
|
+
}
|
|
458
|
+
function modelsListPricingFromJSON(jsonString) {
|
|
459
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelsListPricing$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListPricing' from JSON`);
|
|
460
|
+
}
|
|
461
|
+
/** @internal */
|
|
462
|
+
exports.Tokenizer$inboundSchema = z
|
|
463
|
+
.nativeEnum(exports.Tokenizer);
|
|
464
|
+
/** @internal */
|
|
465
|
+
exports.Tokenizer$outboundSchema = exports.Tokenizer$inboundSchema;
|
|
466
|
+
/**
|
|
467
|
+
* @internal
|
|
468
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
469
|
+
*/
|
|
470
|
+
var Tokenizer$;
|
|
471
|
+
(function (Tokenizer$) {
|
|
472
|
+
/** @deprecated use `Tokenizer$inboundSchema` instead. */
|
|
473
|
+
Tokenizer$.inboundSchema = exports.Tokenizer$inboundSchema;
|
|
474
|
+
/** @deprecated use `Tokenizer$outboundSchema` instead. */
|
|
475
|
+
Tokenizer$.outboundSchema = exports.Tokenizer$outboundSchema;
|
|
476
|
+
})(Tokenizer$ || (exports.Tokenizer$ = Tokenizer$ = {}));
|
|
477
|
+
/** @internal */
|
|
478
|
+
exports.InstructType$inboundSchema = z.nativeEnum(exports.InstructType);
|
|
479
|
+
/** @internal */
|
|
480
|
+
exports.InstructType$outboundSchema = exports.InstructType$inboundSchema;
|
|
481
|
+
/**
|
|
482
|
+
* @internal
|
|
483
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
484
|
+
*/
|
|
485
|
+
var InstructType$;
|
|
486
|
+
(function (InstructType$) {
|
|
487
|
+
/** @deprecated use `InstructType$inboundSchema` instead. */
|
|
488
|
+
InstructType$.inboundSchema = exports.InstructType$inboundSchema;
|
|
489
|
+
/** @deprecated use `InstructType$outboundSchema` instead. */
|
|
490
|
+
InstructType$.outboundSchema = exports.InstructType$outboundSchema;
|
|
491
|
+
})(InstructType$ || (exports.InstructType$ = InstructType$ = {}));
|
|
492
|
+
/** @internal */
|
|
493
|
+
exports.InputModality$inboundSchema = z.nativeEnum(exports.InputModality);
|
|
494
|
+
/** @internal */
|
|
495
|
+
exports.InputModality$outboundSchema = exports.InputModality$inboundSchema;
|
|
496
|
+
/**
|
|
497
|
+
* @internal
|
|
498
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
499
|
+
*/
|
|
500
|
+
var InputModality$;
|
|
501
|
+
(function (InputModality$) {
|
|
502
|
+
/** @deprecated use `InputModality$inboundSchema` instead. */
|
|
503
|
+
InputModality$.inboundSchema = exports.InputModality$inboundSchema;
|
|
504
|
+
/** @deprecated use `InputModality$outboundSchema` instead. */
|
|
505
|
+
InputModality$.outboundSchema = exports.InputModality$outboundSchema;
|
|
506
|
+
})(InputModality$ || (exports.InputModality$ = InputModality$ = {}));
|
|
507
|
+
/** @internal */
|
|
508
|
+
exports.OutputModality$inboundSchema = z.nativeEnum(exports.OutputModality);
|
|
509
|
+
/** @internal */
|
|
510
|
+
exports.OutputModality$outboundSchema = exports.OutputModality$inboundSchema;
|
|
511
|
+
/**
|
|
512
|
+
* @internal
|
|
513
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
514
|
+
*/
|
|
515
|
+
var OutputModality$;
|
|
516
|
+
(function (OutputModality$) {
|
|
517
|
+
/** @deprecated use `OutputModality$inboundSchema` instead. */
|
|
518
|
+
OutputModality$.inboundSchema = exports.OutputModality$inboundSchema;
|
|
519
|
+
/** @deprecated use `OutputModality$outboundSchema` instead. */
|
|
520
|
+
OutputModality$.outboundSchema = exports.OutputModality$outboundSchema;
|
|
521
|
+
})(OutputModality$ || (exports.OutputModality$ = OutputModality$ = {}));
|
|
522
|
+
/** @internal */
|
|
523
|
+
exports.Architecture$inboundSchema = z.object({
|
|
524
|
+
tokenizer: exports.Tokenizer$inboundSchema.optional(),
|
|
525
|
+
instruct_type: z.nullable(exports.InstructType$inboundSchema).optional(),
|
|
526
|
+
modality: z.nullable(z.string()),
|
|
527
|
+
input_modalities: z.array(exports.InputModality$inboundSchema),
|
|
528
|
+
output_modalities: z.array(exports.OutputModality$inboundSchema),
|
|
529
|
+
}).transform((v) => {
|
|
530
|
+
return (0, primitives_js_1.remap)(v, {
|
|
531
|
+
"instruct_type": "instructType",
|
|
532
|
+
"input_modalities": "inputModalities",
|
|
533
|
+
"output_modalities": "outputModalities",
|
|
534
|
+
});
|
|
535
|
+
});
|
|
536
|
+
/** @internal */
|
|
537
|
+
exports.Architecture$outboundSchema = z.object({
|
|
538
|
+
tokenizer: exports.Tokenizer$outboundSchema.optional(),
|
|
539
|
+
instructType: z.nullable(exports.InstructType$outboundSchema).optional(),
|
|
540
|
+
modality: z.nullable(z.string()),
|
|
541
|
+
inputModalities: z.array(exports.InputModality$outboundSchema),
|
|
542
|
+
outputModalities: z.array(exports.OutputModality$outboundSchema),
|
|
543
|
+
}).transform((v) => {
|
|
544
|
+
return (0, primitives_js_1.remap)(v, {
|
|
545
|
+
instructType: "instruct_type",
|
|
546
|
+
inputModalities: "input_modalities",
|
|
547
|
+
outputModalities: "output_modalities",
|
|
548
|
+
});
|
|
549
|
+
});
|
|
550
|
+
/**
|
|
551
|
+
* @internal
|
|
552
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
553
|
+
*/
|
|
554
|
+
var Architecture$;
|
|
555
|
+
(function (Architecture$) {
|
|
556
|
+
/** @deprecated use `Architecture$inboundSchema` instead. */
|
|
557
|
+
Architecture$.inboundSchema = exports.Architecture$inboundSchema;
|
|
558
|
+
/** @deprecated use `Architecture$outboundSchema` instead. */
|
|
559
|
+
Architecture$.outboundSchema = exports.Architecture$outboundSchema;
|
|
560
|
+
})(Architecture$ || (exports.Architecture$ = Architecture$ = {}));
|
|
561
|
+
function architectureToJSON(architecture) {
|
|
562
|
+
return JSON.stringify(exports.Architecture$outboundSchema.parse(architecture));
|
|
563
|
+
}
|
|
564
|
+
function architectureFromJSON(jsonString) {
|
|
565
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Architecture$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Architecture' from JSON`);
|
|
566
|
+
}
|
|
567
|
+
/** @internal */
|
|
568
|
+
exports.TopProvider$inboundSchema = z.object({
|
|
569
|
+
context_length: z.nullable(z.number()).optional(),
|
|
570
|
+
max_completion_tokens: z.nullable(z.number()).optional(),
|
|
571
|
+
is_moderated: z.boolean(),
|
|
572
|
+
}).transform((v) => {
|
|
573
|
+
return (0, primitives_js_1.remap)(v, {
|
|
574
|
+
"context_length": "contextLength",
|
|
575
|
+
"max_completion_tokens": "maxCompletionTokens",
|
|
576
|
+
"is_moderated": "isModerated",
|
|
577
|
+
});
|
|
578
|
+
});
|
|
579
|
+
/** @internal */
|
|
580
|
+
exports.TopProvider$outboundSchema = z.object({
|
|
581
|
+
contextLength: z.nullable(z.number()).optional(),
|
|
582
|
+
maxCompletionTokens: z.nullable(z.number()).optional(),
|
|
583
|
+
isModerated: z.boolean(),
|
|
584
|
+
}).transform((v) => {
|
|
585
|
+
return (0, primitives_js_1.remap)(v, {
|
|
586
|
+
contextLength: "context_length",
|
|
587
|
+
maxCompletionTokens: "max_completion_tokens",
|
|
588
|
+
isModerated: "is_moderated",
|
|
589
|
+
});
|
|
590
|
+
});
|
|
591
|
+
/**
|
|
592
|
+
* @internal
|
|
593
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
594
|
+
*/
|
|
595
|
+
var TopProvider$;
|
|
596
|
+
(function (TopProvider$) {
|
|
597
|
+
/** @deprecated use `TopProvider$inboundSchema` instead. */
|
|
598
|
+
TopProvider$.inboundSchema = exports.TopProvider$inboundSchema;
|
|
599
|
+
/** @deprecated use `TopProvider$outboundSchema` instead. */
|
|
600
|
+
TopProvider$.outboundSchema = exports.TopProvider$outboundSchema;
|
|
601
|
+
})(TopProvider$ || (exports.TopProvider$ = TopProvider$ = {}));
|
|
602
|
+
function topProviderToJSON(topProvider) {
|
|
603
|
+
return JSON.stringify(exports.TopProvider$outboundSchema.parse(topProvider));
|
|
604
|
+
}
|
|
605
|
+
function topProviderFromJSON(jsonString) {
|
|
606
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TopProvider$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TopProvider' from JSON`);
|
|
607
|
+
}
|
|
608
|
+
/** @internal */
|
|
609
|
+
exports.PerRequestLimits$inboundSchema = z.object({
|
|
610
|
+
prompt_tokens: z.any().optional(),
|
|
611
|
+
completion_tokens: z.any().optional(),
|
|
612
|
+
}).transform((v) => {
|
|
613
|
+
return (0, primitives_js_1.remap)(v, {
|
|
614
|
+
"prompt_tokens": "promptTokens",
|
|
615
|
+
"completion_tokens": "completionTokens",
|
|
616
|
+
});
|
|
617
|
+
});
|
|
618
|
+
/** @internal */
|
|
619
|
+
exports.PerRequestLimits$outboundSchema = z.object({
|
|
620
|
+
promptTokens: z.any().optional(),
|
|
621
|
+
completionTokens: z.any().optional(),
|
|
622
|
+
}).transform((v) => {
|
|
623
|
+
return (0, primitives_js_1.remap)(v, {
|
|
624
|
+
promptTokens: "prompt_tokens",
|
|
625
|
+
completionTokens: "completion_tokens",
|
|
626
|
+
});
|
|
627
|
+
});
|
|
628
|
+
/**
|
|
629
|
+
* @internal
|
|
630
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
631
|
+
*/
|
|
632
|
+
var PerRequestLimits$;
|
|
633
|
+
(function (PerRequestLimits$) {
|
|
634
|
+
/** @deprecated use `PerRequestLimits$inboundSchema` instead. */
|
|
635
|
+
PerRequestLimits$.inboundSchema = exports.PerRequestLimits$inboundSchema;
|
|
636
|
+
/** @deprecated use `PerRequestLimits$outboundSchema` instead. */
|
|
637
|
+
PerRequestLimits$.outboundSchema = exports.PerRequestLimits$outboundSchema;
|
|
638
|
+
})(PerRequestLimits$ || (exports.PerRequestLimits$ = PerRequestLimits$ = {}));
|
|
639
|
+
function perRequestLimitsToJSON(perRequestLimits) {
|
|
640
|
+
return JSON.stringify(exports.PerRequestLimits$outboundSchema.parse(perRequestLimits));
|
|
641
|
+
}
|
|
642
|
+
function perRequestLimitsFromJSON(jsonString) {
|
|
643
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PerRequestLimits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PerRequestLimits' from JSON`);
|
|
644
|
+
}
|
|
645
|
+
/** @internal */
|
|
646
|
+
exports.ModelsListSupportedParameter$inboundSchema = z.nativeEnum(exports.ModelsListSupportedParameter);
|
|
647
|
+
/** @internal */
|
|
648
|
+
exports.ModelsListSupportedParameter$outboundSchema = exports.ModelsListSupportedParameter$inboundSchema;
|
|
649
|
+
/**
|
|
650
|
+
* @internal
|
|
651
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
652
|
+
*/
|
|
653
|
+
var ModelsListSupportedParameter$;
|
|
654
|
+
(function (ModelsListSupportedParameter$) {
|
|
655
|
+
/** @deprecated use `ModelsListSupportedParameter$inboundSchema` instead. */
|
|
656
|
+
ModelsListSupportedParameter$.inboundSchema = exports.ModelsListSupportedParameter$inboundSchema;
|
|
657
|
+
/** @deprecated use `ModelsListSupportedParameter$outboundSchema` instead. */
|
|
658
|
+
ModelsListSupportedParameter$.outboundSchema = exports.ModelsListSupportedParameter$outboundSchema;
|
|
659
|
+
})(ModelsListSupportedParameter$ || (exports.ModelsListSupportedParameter$ = ModelsListSupportedParameter$ = {}));
|
|
660
|
+
/** @internal */
|
|
661
|
+
exports.DefaultParameters$inboundSchema = z.object({
|
|
662
|
+
temperature: z.nullable(z.number()).optional(),
|
|
663
|
+
top_p: z.nullable(z.number()).optional(),
|
|
664
|
+
frequency_penalty: z.nullable(z.number()).optional(),
|
|
665
|
+
}).transform((v) => {
|
|
666
|
+
return (0, primitives_js_1.remap)(v, {
|
|
667
|
+
"top_p": "topP",
|
|
668
|
+
"frequency_penalty": "frequencyPenalty",
|
|
669
|
+
});
|
|
670
|
+
});
|
|
671
|
+
/** @internal */
|
|
672
|
+
exports.DefaultParameters$outboundSchema = z.object({
|
|
673
|
+
temperature: z.nullable(z.number()).optional(),
|
|
674
|
+
topP: z.nullable(z.number()).optional(),
|
|
675
|
+
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
676
|
+
}).transform((v) => {
|
|
677
|
+
return (0, primitives_js_1.remap)(v, {
|
|
678
|
+
topP: "top_p",
|
|
679
|
+
frequencyPenalty: "frequency_penalty",
|
|
680
|
+
});
|
|
681
|
+
});
|
|
682
|
+
/**
|
|
683
|
+
* @internal
|
|
684
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
685
|
+
*/
|
|
686
|
+
var DefaultParameters$;
|
|
687
|
+
(function (DefaultParameters$) {
|
|
688
|
+
/** @deprecated use `DefaultParameters$inboundSchema` instead. */
|
|
689
|
+
DefaultParameters$.inboundSchema = exports.DefaultParameters$inboundSchema;
|
|
690
|
+
/** @deprecated use `DefaultParameters$outboundSchema` instead. */
|
|
691
|
+
DefaultParameters$.outboundSchema = exports.DefaultParameters$outboundSchema;
|
|
692
|
+
})(DefaultParameters$ || (exports.DefaultParameters$ = DefaultParameters$ = {}));
|
|
693
|
+
function defaultParametersToJSON(defaultParameters) {
|
|
694
|
+
return JSON.stringify(exports.DefaultParameters$outboundSchema.parse(defaultParameters));
|
|
695
|
+
}
|
|
696
|
+
function defaultParametersFromJSON(jsonString) {
|
|
697
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DefaultParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DefaultParameters' from JSON`);
|
|
698
|
+
}
|
|
699
|
+
/** @internal */
|
|
700
|
+
exports.ModelsList$inboundSchema = z.object({
|
|
701
|
+
id: z.string(),
|
|
702
|
+
canonical_slug: z.string(),
|
|
703
|
+
hugging_face_id: z.nullable(z.string()).optional(),
|
|
704
|
+
name: z.string(),
|
|
705
|
+
created: z.number(),
|
|
706
|
+
description: z.string().optional(),
|
|
707
|
+
pricing: z.lazy(() => exports.ModelsListPricing$inboundSchema),
|
|
708
|
+
context_length: z.nullable(z.number()),
|
|
709
|
+
architecture: z.lazy(() => exports.Architecture$inboundSchema),
|
|
710
|
+
top_provider: z.lazy(() => exports.TopProvider$inboundSchema),
|
|
711
|
+
per_request_limits: z.nullable(z.lazy(() => exports.PerRequestLimits$inboundSchema)),
|
|
712
|
+
supported_parameters: z.array(exports.ModelsListSupportedParameter$inboundSchema),
|
|
713
|
+
default_parameters: z.nullable(z.lazy(() => exports.DefaultParameters$inboundSchema)),
|
|
714
|
+
}).transform((v) => {
|
|
715
|
+
return (0, primitives_js_1.remap)(v, {
|
|
716
|
+
"canonical_slug": "canonicalSlug",
|
|
717
|
+
"hugging_face_id": "huggingFaceId",
|
|
718
|
+
"context_length": "contextLength",
|
|
719
|
+
"top_provider": "topProvider",
|
|
720
|
+
"per_request_limits": "perRequestLimits",
|
|
721
|
+
"supported_parameters": "supportedParameters",
|
|
722
|
+
"default_parameters": "defaultParameters",
|
|
723
|
+
});
|
|
724
|
+
});
|
|
725
|
+
/** @internal */
|
|
726
|
+
exports.ModelsList$outboundSchema = z.object({
|
|
727
|
+
id: z.string(),
|
|
728
|
+
canonicalSlug: z.string(),
|
|
729
|
+
huggingFaceId: z.nullable(z.string()).optional(),
|
|
730
|
+
name: z.string(),
|
|
731
|
+
created: z.number(),
|
|
732
|
+
description: z.string().optional(),
|
|
733
|
+
pricing: z.lazy(() => exports.ModelsListPricing$outboundSchema),
|
|
734
|
+
contextLength: z.nullable(z.number()),
|
|
735
|
+
architecture: z.lazy(() => exports.Architecture$outboundSchema),
|
|
736
|
+
topProvider: z.lazy(() => exports.TopProvider$outboundSchema),
|
|
737
|
+
perRequestLimits: z.nullable(z.lazy(() => exports.PerRequestLimits$outboundSchema)),
|
|
738
|
+
supportedParameters: z.array(exports.ModelsListSupportedParameter$outboundSchema),
|
|
739
|
+
defaultParameters: z.nullable(z.lazy(() => exports.DefaultParameters$outboundSchema)),
|
|
740
|
+
}).transform((v) => {
|
|
741
|
+
return (0, primitives_js_1.remap)(v, {
|
|
742
|
+
canonicalSlug: "canonical_slug",
|
|
743
|
+
huggingFaceId: "hugging_face_id",
|
|
744
|
+
contextLength: "context_length",
|
|
745
|
+
topProvider: "top_provider",
|
|
746
|
+
perRequestLimits: "per_request_limits",
|
|
747
|
+
supportedParameters: "supported_parameters",
|
|
748
|
+
defaultParameters: "default_parameters",
|
|
749
|
+
});
|
|
750
|
+
});
|
|
751
|
+
/**
|
|
752
|
+
* @internal
|
|
753
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
754
|
+
*/
|
|
755
|
+
var ModelsList$;
|
|
756
|
+
(function (ModelsList$) {
|
|
757
|
+
/** @deprecated use `ModelsList$inboundSchema` instead. */
|
|
758
|
+
ModelsList$.inboundSchema = exports.ModelsList$inboundSchema;
|
|
759
|
+
/** @deprecated use `ModelsList$outboundSchema` instead. */
|
|
760
|
+
ModelsList$.outboundSchema = exports.ModelsList$outboundSchema;
|
|
761
|
+
})(ModelsList$ || (exports.ModelsList$ = ModelsList$ = {}));
|
|
762
|
+
function modelsListToJSON(modelsList) {
|
|
763
|
+
return JSON.stringify(exports.ModelsList$outboundSchema.parse(modelsList));
|
|
764
|
+
}
|
|
765
|
+
function modelsListFromJSON(jsonString) {
|
|
766
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelsList$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsList' from JSON`);
|
|
767
|
+
}
|
|
768
|
+
//# sourceMappingURL=modelslist.js.map
|