@openrouter/sdk 0.13.59 → 0.13.61
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/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/additionaltoolsitem.d.ts +7 -7
- package/esm/models/additionaltoolsitem.js +5 -5
- package/esm/models/advisornestedtool.d.ts +3 -3
- package/esm/models/advisornestedtool.js +2 -2
- package/esm/models/agentmessageitem.d.ts +3 -3
- package/esm/models/agentmessageitem.js +3 -3
- package/esm/models/autobetarouterplugin.d.ts +27 -0
- package/esm/models/autobetarouterplugin.js +22 -0
- package/esm/models/badgatewayresponseerrordata.d.ts +1 -1
- package/esm/models/badgatewayresponseerrordata.js +1 -1
- package/esm/models/badrequestresponseerrordata.d.ts +1 -1
- package/esm/models/badrequestresponseerrordata.js +1 -1
- package/esm/models/baseinputsunion.d.ts +3 -3
- package/esm/models/baseinputsunion.js +0 -3
- package/esm/models/byokproviderslug.d.ts +1 -0
- package/esm/models/byokproviderslug.js +1 -0
- package/esm/models/chatassistantmessage.d.ts +4 -4
- package/esm/models/chatassistantmessage.js +4 -4
- package/esm/models/chatfunctiontool.d.ts +2 -2
- package/esm/models/chatfunctiontool.js +1 -1
- package/esm/models/chatjsonschemaconfig.d.ts +2 -2
- package/esm/models/chatjsonschemaconfig.js +1 -1
- package/esm/models/chatrequest.d.ts +9 -8
- package/esm/models/chatrequest.js +4 -3
- package/esm/models/compactionitem.d.ts +1 -1
- package/esm/models/compactionitem.js +1 -1
- package/esm/models/compoundfilter.d.ts +2 -2
- package/esm/models/compoundfilter.js +2 -2
- package/esm/models/conflictresponseerrordata.d.ts +1 -1
- package/esm/models/conflictresponseerrordata.js +1 -1
- package/esm/models/contextcompactionitem.d.ts +1 -1
- package/esm/models/contextcompactionitem.js +1 -1
- package/esm/models/createobservabilitydestinationrequest.d.ts +2 -2
- package/esm/models/createobservabilitydestinationrequest.js +1 -1
- package/esm/models/debugevent.d.ts +1 -1
- package/esm/models/debugevent.js +1 -1
- package/esm/models/easyinputmessage.d.ts +8 -8
- package/esm/models/easyinputmessage.js +0 -4
- package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +1 -1
- package/esm/models/edgenetworktimeoutresponseerrordata.js +1 -1
- package/esm/models/errors/badgatewayresponseerror.d.ts +2 -2
- package/esm/models/errors/badgatewayresponseerror.js +1 -2
- package/esm/models/errors/badrequestresponseerror.d.ts +2 -2
- package/esm/models/errors/badrequestresponseerror.js +1 -2
- package/esm/models/errors/conflictresponseerror.d.ts +2 -2
- package/esm/models/errors/conflictresponseerror.js +1 -2
- package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +2 -2
- package/esm/models/errors/edgenetworktimeoutresponseerror.js +1 -2
- package/esm/models/errors/forbiddenresponseerror.d.ts +2 -2
- package/esm/models/errors/forbiddenresponseerror.js +1 -2
- package/esm/models/errors/internalserverresponseerror.d.ts +2 -2
- package/esm/models/errors/internalserverresponseerror.js +1 -2
- package/esm/models/errors/notfoundresponseerror.d.ts +2 -2
- package/esm/models/errors/notfoundresponseerror.js +1 -2
- package/esm/models/errors/payloadtoolargeresponseerror.d.ts +2 -2
- package/esm/models/errors/payloadtoolargeresponseerror.js +1 -2
- package/esm/models/errors/paymentrequiredresponseerror.d.ts +2 -2
- package/esm/models/errors/paymentrequiredresponseerror.js +1 -2
- package/esm/models/errors/provideroverloadedresponseerror.d.ts +2 -2
- package/esm/models/errors/provideroverloadedresponseerror.js +1 -2
- package/esm/models/errors/requesttimeoutresponseerror.d.ts +2 -2
- package/esm/models/errors/requesttimeoutresponseerror.js +1 -2
- package/esm/models/errors/serviceunavailableresponseerror.d.ts +2 -2
- package/esm/models/errors/serviceunavailableresponseerror.js +1 -2
- package/esm/models/errors/toomanyrequestsresponseerror.d.ts +2 -2
- package/esm/models/errors/toomanyrequestsresponseerror.js +1 -2
- package/esm/models/errors/unauthorizedresponseerror.d.ts +2 -2
- package/esm/models/errors/unauthorizedresponseerror.js +1 -2
- package/esm/models/errors/unprocessableentityresponseerror.d.ts +2 -2
- package/esm/models/errors/unprocessableentityresponseerror.js +1 -2
- package/esm/models/filesearchservertool.d.ts +4 -4
- package/esm/models/filesearchservertool.js +1 -8
- package/esm/models/forbiddenresponseerrordata.d.ts +1 -1
- package/esm/models/forbiddenresponseerrordata.js +1 -1
- package/esm/models/formatjsonschemaconfig.d.ts +2 -2
- package/esm/models/formatjsonschemaconfig.js +2 -2
- package/esm/models/functioncalloutputitem.d.ts +2 -9
- package/esm/models/functioncalloutputitem.js +2 -8
- package/esm/models/fusionplugin.d.ts +28 -2
- package/esm/models/fusionplugin.js +28 -1
- package/esm/models/fusionservertoolconfig.d.ts +2 -2
- package/esm/models/fusionservertoolconfig.js +1 -1
- package/esm/models/generationcontentdata.d.ts +1 -1
- package/esm/models/generationcontentdata.js +1 -1
- package/esm/models/imageconfig.d.ts +2 -2
- package/esm/models/imageconfig.js +1 -1
- package/esm/models/imagegenerationproviderpreferences.d.ts +256 -250
- package/esm/models/imagegenerationproviderpreferences.js +126 -133
- package/esm/models/imagegenerationservertoolconfigunion.d.ts +2 -2
- package/esm/models/imagegenerationservertoolconfigunion.js +1 -1
- package/esm/models/index.d.ts +1 -2
- package/esm/models/index.js +1 -2
- package/esm/models/inputsunion.d.ts +8 -8
- package/esm/models/inputsunion.js +0 -4
- package/esm/models/internalserverresponseerrordata.d.ts +1 -1
- package/esm/models/internalserverresponseerrordata.js +1 -1
- package/esm/models/listendpointsresponse.d.ts +2 -33
- package/esm/models/listendpointsresponse.js +2 -30
- package/esm/models/localshellcalloutputitem.d.ts +3 -10
- package/esm/models/localshellcalloutputitem.js +2 -9
- package/esm/models/mcplisttoolsitem.d.ts +4 -4
- package/esm/models/mcplisttoolsitem.js +2 -2
- package/esm/models/mcpservertool.d.ts +8 -8
- package/esm/models/mcpservertool.js +4 -24
- package/esm/models/messagesadvisortoolresultblock.d.ts +2 -2
- package/esm/models/messagesadvisortoolresultblock.js +1 -1
- package/esm/models/messagesfallbackparam.d.ts +1 -1
- package/esm/models/messagesfallbackparam.js +1 -1
- package/esm/models/messagesmessageparam.d.ts +4 -4
- package/esm/models/messagesmessageparam.js +2 -2
- package/esm/models/messagesoutputconfig.d.ts +2 -2
- package/esm/models/messagesoutputconfig.js +1 -1
- package/esm/models/messagesrequest.d.ts +15 -36
- package/esm/models/messagesrequest.js +10 -21
- package/esm/models/namespacefunctiontool.d.ts +4 -4
- package/esm/models/namespacefunctiontool.js +4 -6
- package/esm/models/notfoundresponseerrordata.d.ts +1 -1
- package/esm/models/notfoundresponseerrordata.js +1 -1
- package/esm/models/openairesponsefunctiontoolcalloutput.d.ts +3 -10
- package/esm/models/openairesponsefunctiontoolcalloutput.js +2 -11
- package/esm/models/openresponsesresult.d.ts +46 -2
- package/esm/models/openresponsesresult.js +69 -3
- package/esm/models/operations/listbyokkeys.d.ts +1 -0
- package/esm/models/operations/listbyokkeys.js +1 -0
- package/esm/models/outputcomputercallitem.d.ts +2 -2
- package/esm/models/outputcomputercallitem.js +2 -2
- package/esm/models/outputmemoryservertoolitem.d.ts +2 -2
- package/esm/models/outputmemoryservertoolitem.js +2 -2
- package/esm/models/outputmessage.d.ts +2 -2
- package/esm/models/outputmessage.js +0 -2
- package/esm/models/outputmessageitem.d.ts +2 -2
- package/esm/models/outputmessageitem.js +0 -2
- package/esm/models/payloadtoolargeresponseerrordata.d.ts +1 -1
- package/esm/models/payloadtoolargeresponseerrordata.js +1 -1
- package/esm/models/paymentrequiredresponseerrordata.d.ts +1 -1
- package/esm/models/paymentrequiredresponseerrordata.js +1 -1
- package/esm/models/pipelinestage.d.ts +1 -1
- package/esm/models/pipelinestage.js +1 -1
- package/esm/models/preferredmaxlatency.d.ts +2 -2
- package/esm/models/preferredmaxlatency.js +1 -1
- package/esm/models/preferredminthroughput.d.ts +2 -2
- package/esm/models/preferredminthroughput.js +1 -1
- package/esm/models/presetdesignatedversion.d.ts +1 -1
- package/esm/models/presetdesignatedversion.js +1 -1
- package/esm/models/providername.d.ts +2 -1
- package/esm/models/providername.js +2 -1
- package/esm/models/provideroptions.d.ts +252 -246
- package/esm/models/provideroptions.js +124 -123
- package/esm/models/provideroverloadedresponseerrordata.d.ts +1 -1
- package/esm/models/provideroverloadedresponseerrordata.js +1 -1
- package/esm/models/providerpreferences.d.ts +4 -4
- package/esm/models/providerpreferences.js +2 -10
- package/esm/models/providerresponse.d.ts +2 -1
- package/esm/models/providerresponse.js +2 -1
- package/esm/models/publicendpoint.d.ts +2 -16
- package/esm/models/publicendpoint.js +2 -15
- package/esm/models/quantization.d.ts +2 -0
- package/esm/models/quantization.js +2 -0
- package/esm/models/requesttimeoutresponseerrordata.d.ts +1 -1
- package/esm/models/requesttimeoutresponseerrordata.js +1 -1
- package/esm/models/responsesrequest.d.ts +39 -9
- package/esm/models/responsesrequest.js +27 -4
- package/esm/models/routerparams.d.ts +1 -1
- package/esm/models/serviceunavailableresponseerrordata.d.ts +1 -1
- package/esm/models/serviceunavailableresponseerrordata.js +1 -1
- package/esm/models/shellcallitem.d.ts +5 -12
- package/esm/models/shellcallitem.js +3 -10
- package/esm/models/shellcalloutputitem.d.ts +4 -11
- package/esm/models/shellcalloutputitem.js +3 -10
- package/esm/models/subagentnestedtool.d.ts +3 -3
- package/esm/models/subagentnestedtool.js +2 -2
- package/esm/models/toolchoiceallowed.d.ts +2 -2
- package/esm/models/toolchoiceallowed.js +2 -2
- package/esm/models/toomanyrequestsresponseerrordata.d.ts +1 -1
- package/esm/models/toomanyrequestsresponseerrordata.js +1 -1
- package/esm/models/traceconfig.d.ts +1 -1
- package/esm/models/traceconfig.js +1 -1
- package/esm/models/unauthorizedresponseerrordata.d.ts +1 -1
- package/esm/models/unauthorizedresponseerrordata.js +1 -1
- package/esm/models/unprocessableentityresponseerrordata.d.ts +1 -1
- package/esm/models/unprocessableentityresponseerrordata.js +1 -1
- package/esm/models/updateobservabilitydestinationrequest.d.ts +2 -2
- package/esm/models/updateobservabilitydestinationrequest.js +1 -1
- package/esm/models/videogenerationrequest.d.ts +252 -246
- package/esm/models/videogenerationrequest.js +124 -123
- package/jsr.json +1 -1
- package/package.json +6 -6
- package/esm/models/reasoningconfig.d.ts +0 -35
- package/esm/models/reasoningconfig.js +0 -27
- package/esm/models/usage.d.ts +0 -52
- package/esm/models/usage.js +0 -75
|
@@ -19,129 +19,130 @@ export function imageGenerationProviderPreferencesOnlyToJSON(imageGenerationProv
|
|
|
19
19
|
}
|
|
20
20
|
/** @internal */
|
|
21
21
|
export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object({
|
|
22
|
-
oneai: z.record(z.string(), z.
|
|
23
|
-
ai21: z.record(z.string(), z.
|
|
24
|
-
aionLabs: z.record(z.string(), z.
|
|
25
|
-
akashml: z.record(z.string(), z.
|
|
26
|
-
alibaba: z.record(z.string(), z.
|
|
27
|
-
amazonBedrock: z.record(z.string(), z.
|
|
28
|
-
amazonNova: z.record(z.string(), z.
|
|
29
|
-
ambient: z.record(z.string(), z.
|
|
30
|
-
anthropic: z.record(z.string(), z.
|
|
31
|
-
anyscale: z.record(z.string(), z.
|
|
32
|
-
arceeAi: z.record(z.string(), z.
|
|
33
|
-
atlasCloud: z.record(z.string(), z.
|
|
34
|
-
atoma: z.record(z.string(), z.
|
|
35
|
-
avian: z.record(z.string(), z.
|
|
36
|
-
azure: z.record(z.string(), z.
|
|
37
|
-
baidu: z.record(z.string(), z.
|
|
38
|
-
baseten: z.record(z.string(), z.
|
|
39
|
-
blackForestLabs: z.record(z.string(), z.
|
|
40
|
-
byteplus: z.record(z.string(), z.
|
|
41
|
-
centml: z.record(z.string(), z.
|
|
42
|
-
cerebras: z.record(z.string(), z.
|
|
43
|
-
chutes: z.record(z.string(), z.
|
|
44
|
-
cirrascale: z.record(z.string(), z.
|
|
45
|
-
clarifai: z.record(z.string(), z.
|
|
46
|
-
cloudflare: z.record(z.string(), z.
|
|
47
|
-
cohere: z.record(z.string(), z.
|
|
48
|
-
crofai: z.record(z.string(), z.
|
|
49
|
-
crucible: z.record(z.string(), z.
|
|
50
|
-
crusoe: z.record(z.string(), z.
|
|
51
|
-
darkbloom: z.record(z.string(), z.
|
|
52
|
-
decart: z.record(z.string(), z.
|
|
53
|
-
deepgram: z.record(z.string(), z.
|
|
54
|
-
deepinfra: z.record(z.string(), z.
|
|
55
|
-
deepseek: z.record(z.string(), z.
|
|
56
|
-
dekallm: z.record(z.string(), z.
|
|
57
|
-
digitalocean: z.record(z.string(), z.
|
|
58
|
-
enfer: z.record(z.string(), z.
|
|
59
|
-
fakeProvider: z.record(z.string(), z.
|
|
60
|
-
featherless: z.record(z.string(), z.
|
|
61
|
-
fireworks: z.record(z.string(), z.
|
|
62
|
-
friendli: z.record(z.string(), z.
|
|
63
|
-
gmicloud: z.record(z.string(), z.
|
|
64
|
-
googleAiStudio: z.record(z.string(), z.
|
|
65
|
-
googleVertex: z.record(z.string(), z.
|
|
66
|
-
gopomelo: z.record(z.string(), z.
|
|
67
|
-
groq: z.record(z.string(), z.
|
|
68
|
-
heygen: z.record(z.string(), z.
|
|
69
|
-
huggingface: z.record(z.string(), z.
|
|
70
|
-
hyperbolic: z.record(z.string(), z.
|
|
71
|
-
hyperbolicQuantized: z.record(z.string(), z.
|
|
72
|
-
inception: z.record(z.string(), z.
|
|
73
|
-
inceptron: z.record(z.string(), z.
|
|
74
|
-
inferactVllm: z.record(z.string(), z.
|
|
75
|
-
inferenceNet: z.record(z.string(), z.
|
|
76
|
-
infermatic: z.record(z.string(), z.
|
|
77
|
-
inflection: z.record(z.string(), z.
|
|
78
|
-
inocloud: z.record(z.string(), z.
|
|
79
|
-
ioNet: z.record(z.string(), z.
|
|
80
|
-
ionstream: z.record(z.string(), z.
|
|
81
|
-
klusterai: z.record(z.string(), z.
|
|
82
|
-
krea: z.record(z.string(), z.
|
|
83
|
-
lambda: z.record(z.string(), z.
|
|
84
|
-
lepton: z.record(z.string(), z.
|
|
85
|
-
liquid: z.record(z.string(), z.
|
|
86
|
-
lynn: z.record(z.string(), z.
|
|
87
|
-
lynnPrivate: z.record(z.string(), z.
|
|
88
|
-
mancer: z.record(z.string(), z.
|
|
89
|
-
mancerOld: z.record(z.string(), z.
|
|
90
|
-
mara: z.record(z.string(), z.
|
|
91
|
-
meta: z.record(z.string(), z.
|
|
92
|
-
minimax: z.record(z.string(), z.
|
|
93
|
-
mistral: z.record(z.string(), z.
|
|
94
|
-
modal: z.record(z.string(), z.
|
|
95
|
-
modelrun: z.record(z.string(), z.
|
|
96
|
-
modular: z.record(z.string(), z.
|
|
97
|
-
moonshotai: z.record(z.string(), z.
|
|
98
|
-
morph: z.record(z.string(), z.
|
|
99
|
-
ncompass: z.record(z.string(), z.
|
|
100
|
-
nebius: z.record(z.string(), z.
|
|
101
|
-
nexAgi: z.record(z.string(), z.
|
|
102
|
-
nextbit: z.record(z.string(), z.
|
|
103
|
-
nineteen: z.record(z.string(), z.
|
|
104
|
-
novita: z.record(z.string(), z.
|
|
105
|
-
nvidia: z.record(z.string(), z.
|
|
106
|
-
octoai: z.record(z.string(), z.
|
|
107
|
-
openInference: z.record(z.string(), z.
|
|
108
|
-
openai: z.record(z.string(), z.
|
|
109
|
-
parasail: z.record(z.string(), z.
|
|
110
|
-
perceptron: z.record(z.string(), z.
|
|
111
|
-
perplexity: z.record(z.string(), z.
|
|
112
|
-
phala: z.record(z.string(), z.
|
|
113
|
-
poolside: z.record(z.string(), z.
|
|
114
|
-
quiver: z.record(z.string(), z.
|
|
115
|
-
recraft: z.record(z.string(), z.
|
|
116
|
-
recursal: z.record(z.string(), z.
|
|
117
|
-
reflection: z.record(z.string(), z.
|
|
118
|
-
reka: z.record(z.string(), z.
|
|
119
|
-
relace: z.record(z.string(), z.
|
|
120
|
-
replicate: z.record(z.string(), z.
|
|
121
|
-
sailResearch: z.record(z.string(), z.
|
|
122
|
-
sakana: z.record(z.string(), z.
|
|
123
|
-
sambanova: z.record(z.string(), z.
|
|
124
|
-
sambanovaCloaked: z.record(z.string(), z.
|
|
125
|
-
seed: z.record(z.string(), z.
|
|
126
|
-
sfCompute: z.record(z.string(), z.
|
|
127
|
-
siliconflow: z.record(z.string(), z.
|
|
128
|
-
sourceful: z.record(z.string(), z.
|
|
129
|
-
stealth: z.record(z.string(), z.
|
|
130
|
-
stepfun: z.record(z.string(), z.
|
|
131
|
-
streamlake: z.record(z.string(), z.
|
|
132
|
-
switchpoint: z.record(z.string(), z.
|
|
133
|
-
targon: z.record(z.string(), z.
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
22
|
+
oneai: z.record(z.string(), z.any()).optional(),
|
|
23
|
+
ai21: z.record(z.string(), z.any()).optional(),
|
|
24
|
+
aionLabs: z.record(z.string(), z.any()).optional(),
|
|
25
|
+
akashml: z.record(z.string(), z.any()).optional(),
|
|
26
|
+
alibaba: z.record(z.string(), z.any()).optional(),
|
|
27
|
+
amazonBedrock: z.record(z.string(), z.any()).optional(),
|
|
28
|
+
amazonNova: z.record(z.string(), z.any()).optional(),
|
|
29
|
+
ambient: z.record(z.string(), z.any()).optional(),
|
|
30
|
+
anthropic: z.record(z.string(), z.any()).optional(),
|
|
31
|
+
anyscale: z.record(z.string(), z.any()).optional(),
|
|
32
|
+
arceeAi: z.record(z.string(), z.any()).optional(),
|
|
33
|
+
atlasCloud: z.record(z.string(), z.any()).optional(),
|
|
34
|
+
atoma: z.record(z.string(), z.any()).optional(),
|
|
35
|
+
avian: z.record(z.string(), z.any()).optional(),
|
|
36
|
+
azure: z.record(z.string(), z.any()).optional(),
|
|
37
|
+
baidu: z.record(z.string(), z.any()).optional(),
|
|
38
|
+
baseten: z.record(z.string(), z.any()).optional(),
|
|
39
|
+
blackForestLabs: z.record(z.string(), z.any()).optional(),
|
|
40
|
+
byteplus: z.record(z.string(), z.any()).optional(),
|
|
41
|
+
centml: z.record(z.string(), z.any()).optional(),
|
|
42
|
+
cerebras: z.record(z.string(), z.any()).optional(),
|
|
43
|
+
chutes: z.record(z.string(), z.any()).optional(),
|
|
44
|
+
cirrascale: z.record(z.string(), z.any()).optional(),
|
|
45
|
+
clarifai: z.record(z.string(), z.any()).optional(),
|
|
46
|
+
cloudflare: z.record(z.string(), z.any()).optional(),
|
|
47
|
+
cohere: z.record(z.string(), z.any()).optional(),
|
|
48
|
+
crofai: z.record(z.string(), z.any()).optional(),
|
|
49
|
+
crucible: z.record(z.string(), z.any()).optional(),
|
|
50
|
+
crusoe: z.record(z.string(), z.any()).optional(),
|
|
51
|
+
darkbloom: z.record(z.string(), z.any()).optional(),
|
|
52
|
+
decart: z.record(z.string(), z.any()).optional(),
|
|
53
|
+
deepgram: z.record(z.string(), z.any()).optional(),
|
|
54
|
+
deepinfra: z.record(z.string(), z.any()).optional(),
|
|
55
|
+
deepseek: z.record(z.string(), z.any()).optional(),
|
|
56
|
+
dekallm: z.record(z.string(), z.any()).optional(),
|
|
57
|
+
digitalocean: z.record(z.string(), z.any()).optional(),
|
|
58
|
+
enfer: z.record(z.string(), z.any()).optional(),
|
|
59
|
+
fakeProvider: z.record(z.string(), z.any()).optional(),
|
|
60
|
+
featherless: z.record(z.string(), z.any()).optional(),
|
|
61
|
+
fireworks: z.record(z.string(), z.any()).optional(),
|
|
62
|
+
friendli: z.record(z.string(), z.any()).optional(),
|
|
63
|
+
gmicloud: z.record(z.string(), z.any()).optional(),
|
|
64
|
+
googleAiStudio: z.record(z.string(), z.any()).optional(),
|
|
65
|
+
googleVertex: z.record(z.string(), z.any()).optional(),
|
|
66
|
+
gopomelo: z.record(z.string(), z.any()).optional(),
|
|
67
|
+
groq: z.record(z.string(), z.any()).optional(),
|
|
68
|
+
heygen: z.record(z.string(), z.any()).optional(),
|
|
69
|
+
huggingface: z.record(z.string(), z.any()).optional(),
|
|
70
|
+
hyperbolic: z.record(z.string(), z.any()).optional(),
|
|
71
|
+
hyperbolicQuantized: z.record(z.string(), z.any()).optional(),
|
|
72
|
+
inception: z.record(z.string(), z.any()).optional(),
|
|
73
|
+
inceptron: z.record(z.string(), z.any()).optional(),
|
|
74
|
+
inferactVllm: z.record(z.string(), z.any()).optional(),
|
|
75
|
+
inferenceNet: z.record(z.string(), z.any()).optional(),
|
|
76
|
+
infermatic: z.record(z.string(), z.any()).optional(),
|
|
77
|
+
inflection: z.record(z.string(), z.any()).optional(),
|
|
78
|
+
inocloud: z.record(z.string(), z.any()).optional(),
|
|
79
|
+
ioNet: z.record(z.string(), z.any()).optional(),
|
|
80
|
+
ionstream: z.record(z.string(), z.any()).optional(),
|
|
81
|
+
klusterai: z.record(z.string(), z.any()).optional(),
|
|
82
|
+
krea: z.record(z.string(), z.any()).optional(),
|
|
83
|
+
lambda: z.record(z.string(), z.any()).optional(),
|
|
84
|
+
lepton: z.record(z.string(), z.any()).optional(),
|
|
85
|
+
liquid: z.record(z.string(), z.any()).optional(),
|
|
86
|
+
lynn: z.record(z.string(), z.any()).optional(),
|
|
87
|
+
lynnPrivate: z.record(z.string(), z.any()).optional(),
|
|
88
|
+
mancer: z.record(z.string(), z.any()).optional(),
|
|
89
|
+
mancerOld: z.record(z.string(), z.any()).optional(),
|
|
90
|
+
mara: z.record(z.string(), z.any()).optional(),
|
|
91
|
+
meta: z.record(z.string(), z.any()).optional(),
|
|
92
|
+
minimax: z.record(z.string(), z.any()).optional(),
|
|
93
|
+
mistral: z.record(z.string(), z.any()).optional(),
|
|
94
|
+
modal: z.record(z.string(), z.any()).optional(),
|
|
95
|
+
modelrun: z.record(z.string(), z.any()).optional(),
|
|
96
|
+
modular: z.record(z.string(), z.any()).optional(),
|
|
97
|
+
moonshotai: z.record(z.string(), z.any()).optional(),
|
|
98
|
+
morph: z.record(z.string(), z.any()).optional(),
|
|
99
|
+
ncompass: z.record(z.string(), z.any()).optional(),
|
|
100
|
+
nebius: z.record(z.string(), z.any()).optional(),
|
|
101
|
+
nexAgi: z.record(z.string(), z.any()).optional(),
|
|
102
|
+
nextbit: z.record(z.string(), z.any()).optional(),
|
|
103
|
+
nineteen: z.record(z.string(), z.any()).optional(),
|
|
104
|
+
novita: z.record(z.string(), z.any()).optional(),
|
|
105
|
+
nvidia: z.record(z.string(), z.any()).optional(),
|
|
106
|
+
octoai: z.record(z.string(), z.any()).optional(),
|
|
107
|
+
openInference: z.record(z.string(), z.any()).optional(),
|
|
108
|
+
openai: z.record(z.string(), z.any()).optional(),
|
|
109
|
+
parasail: z.record(z.string(), z.any()).optional(),
|
|
110
|
+
perceptron: z.record(z.string(), z.any()).optional(),
|
|
111
|
+
perplexity: z.record(z.string(), z.any()).optional(),
|
|
112
|
+
phala: z.record(z.string(), z.any()).optional(),
|
|
113
|
+
poolside: z.record(z.string(), z.any()).optional(),
|
|
114
|
+
quiver: z.record(z.string(), z.any()).optional(),
|
|
115
|
+
recraft: z.record(z.string(), z.any()).optional(),
|
|
116
|
+
recursal: z.record(z.string(), z.any()).optional(),
|
|
117
|
+
reflection: z.record(z.string(), z.any()).optional(),
|
|
118
|
+
reka: z.record(z.string(), z.any()).optional(),
|
|
119
|
+
relace: z.record(z.string(), z.any()).optional(),
|
|
120
|
+
replicate: z.record(z.string(), z.any()).optional(),
|
|
121
|
+
sailResearch: z.record(z.string(), z.any()).optional(),
|
|
122
|
+
sakana: z.record(z.string(), z.any()).optional(),
|
|
123
|
+
sambanova: z.record(z.string(), z.any()).optional(),
|
|
124
|
+
sambanovaCloaked: z.record(z.string(), z.any()).optional(),
|
|
125
|
+
seed: z.record(z.string(), z.any()).optional(),
|
|
126
|
+
sfCompute: z.record(z.string(), z.any()).optional(),
|
|
127
|
+
siliconflow: z.record(z.string(), z.any()).optional(),
|
|
128
|
+
sourceful: z.record(z.string(), z.any()).optional(),
|
|
129
|
+
stealth: z.record(z.string(), z.any()).optional(),
|
|
130
|
+
stepfun: z.record(z.string(), z.any()).optional(),
|
|
131
|
+
streamlake: z.record(z.string(), z.any()).optional(),
|
|
132
|
+
switchpoint: z.record(z.string(), z.any()).optional(),
|
|
133
|
+
targon: z.record(z.string(), z.any()).optional(),
|
|
134
|
+
tencent: z.record(z.string(), z.any()).optional(),
|
|
135
|
+
tenstorrent: z.record(z.string(), z.any()).optional(),
|
|
136
|
+
together: z.record(z.string(), z.any()).optional(),
|
|
137
|
+
togetherLite: z.record(z.string(), z.any()).optional(),
|
|
138
|
+
ubicloud: z.record(z.string(), z.any()).optional(),
|
|
139
|
+
upstage: z.record(z.string(), z.any()).optional(),
|
|
140
|
+
venice: z.record(z.string(), z.any()).optional(),
|
|
141
|
+
wafer: z.record(z.string(), z.any()).optional(),
|
|
142
|
+
wandb: z.record(z.string(), z.any()).optional(),
|
|
143
|
+
xai: z.record(z.string(), z.any()).optional(),
|
|
144
|
+
xiaomi: z.record(z.string(), z.any()).optional(),
|
|
145
|
+
zAi: z.record(z.string(), z.any()).optional(),
|
|
145
146
|
}).transform((v) => {
|
|
146
147
|
return remap$(v, {
|
|
147
148
|
oneai: "01ai",
|
|
@@ -178,11 +179,7 @@ export function imageGenerationProviderPreferencesOrderToJSON(imageGenerationPro
|
|
|
178
179
|
return JSON.stringify(ImageGenerationProviderPreferencesOrder$outboundSchema.parse(imageGenerationProviderPreferencesOrder));
|
|
179
180
|
}
|
|
180
181
|
/** @internal */
|
|
181
|
-
export const ImageGenerationProviderPreferencesSort$outboundSchema = z.union([
|
|
182
|
-
ProviderSort$outboundSchema,
|
|
183
|
-
ProviderSortConfig$outboundSchema,
|
|
184
|
-
z.any(),
|
|
185
|
-
]);
|
|
182
|
+
export const ImageGenerationProviderPreferencesSort$outboundSchema = z.union([ProviderSort$outboundSchema, ProviderSortConfig$outboundSchema]);
|
|
186
183
|
export function imageGenerationProviderPreferencesSortToJSON(imageGenerationProviderPreferencesSort) {
|
|
187
184
|
return JSON.stringify(ImageGenerationProviderPreferencesSort$outboundSchema.parse(imageGenerationProviderPreferencesSort));
|
|
188
185
|
}
|
|
@@ -195,11 +192,7 @@ export const ImageGenerationProviderPreferences$outboundSchema = z.object({
|
|
|
195
192
|
options: z.lazy(() => ImageGenerationProviderPreferencesOptions$outboundSchema).optional(),
|
|
196
193
|
order: z.nullable(z.array(z.union([ProviderName$outboundSchema, z.string()])))
|
|
197
194
|
.optional(),
|
|
198
|
-
sort: z.nullable(z.union([
|
|
199
|
-
ProviderSort$outboundSchema,
|
|
200
|
-
ProviderSortConfig$outboundSchema,
|
|
201
|
-
z.any(),
|
|
202
|
-
])).optional(),
|
|
195
|
+
sort: z.nullable(z.union([ProviderSort$outboundSchema, ProviderSortConfig$outboundSchema])).optional(),
|
|
203
196
|
}).transform((v) => {
|
|
204
197
|
return remap$(v, {
|
|
205
198
|
allowFallbacks: "allow_fallbacks",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
export type ImageGenerationServerToolConfigUnion = string | number | Array<any
|
|
2
|
+
export type ImageGenerationServerToolConfigUnion = string | number | Array<any>;
|
|
3
3
|
/** @internal */
|
|
4
|
-
export type ImageGenerationServerToolConfigUnion$Outbound = string | number | Array<any
|
|
4
|
+
export type ImageGenerationServerToolConfigUnion$Outbound = string | number | Array<any>;
|
|
5
5
|
/** @internal */
|
|
6
6
|
export declare const ImageGenerationServerToolConfigUnion$outboundSchema: z.ZodType<ImageGenerationServerToolConfigUnion$Outbound, ImageGenerationServerToolConfigUnion>;
|
|
7
7
|
export declare function imageGenerationServerToolConfigUnionToJSON(imageGenerationServerToolConfigUnion: ImageGenerationServerToolConfigUnion): string;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
/** @internal */
|
|
7
|
-
export const ImageGenerationServerToolConfigUnion$outboundSchema = z.union([z.string(), z.number(), z.array(z.
|
|
7
|
+
export const ImageGenerationServerToolConfigUnion$outboundSchema = z.union([z.string(), z.number(), z.array(z.any())]);
|
|
8
8
|
export function imageGenerationServerToolConfigUnionToJSON(imageGenerationServerToolConfigUnion) {
|
|
9
9
|
return JSON.stringify(ImageGenerationServerToolConfigUnion$outboundSchema.parse(imageGenerationServerToolConfigUnion));
|
|
10
10
|
}
|
package/esm/models/index.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export * from "./applypatchservertoolopenrouter.js";
|
|
|
59
59
|
export * from "./applypatchupdatefileoperation.js";
|
|
60
60
|
export * from "./apprankingsitem.js";
|
|
61
61
|
export * from "./apprankingsresponse.js";
|
|
62
|
+
export * from "./autobetarouterplugin.js";
|
|
62
63
|
export * from "./autorouterplugin.js";
|
|
63
64
|
export * from "./badgatewayresponseerrordata.js";
|
|
64
65
|
export * from "./badrequestresponseerrordata.js";
|
|
@@ -425,7 +426,6 @@ export * from "./rangecapability.js";
|
|
|
425
426
|
export * from "./rankingsdailyitem.js";
|
|
426
427
|
export * from "./rankingsdailymeta.js";
|
|
427
428
|
export * from "./rankingsdailyresponse.js";
|
|
428
|
-
export * from "./reasoningconfig.js";
|
|
429
429
|
export * from "./reasoningcontext.js";
|
|
430
430
|
export * from "./reasoningdeltaevent.js";
|
|
431
431
|
export * from "./reasoningdetailencrypted.js";
|
|
@@ -532,7 +532,6 @@ export * from "./updateworkspaceresponse.js";
|
|
|
532
532
|
export * from "./upsertworkspacebudgetrequest.js";
|
|
533
533
|
export * from "./upsertworkspacebudgetresponse.js";
|
|
534
534
|
export * from "./urlcitation.js";
|
|
535
|
-
export * from "./usage.js";
|
|
536
535
|
export * from "./videogenerationrequest.js";
|
|
537
536
|
export * from "./videogenerationresponse.js";
|
|
538
537
|
export * from "./videogenerationusage.js";
|
package/esm/models/index.js
CHANGED
|
@@ -63,6 +63,7 @@ export * from "./applypatchservertoolopenrouter.js";
|
|
|
63
63
|
export * from "./applypatchupdatefileoperation.js";
|
|
64
64
|
export * from "./apprankingsitem.js";
|
|
65
65
|
export * from "./apprankingsresponse.js";
|
|
66
|
+
export * from "./autobetarouterplugin.js";
|
|
66
67
|
export * from "./autorouterplugin.js";
|
|
67
68
|
export * from "./badgatewayresponseerrordata.js";
|
|
68
69
|
export * from "./badrequestresponseerrordata.js";
|
|
@@ -429,7 +430,6 @@ export * from "./rangecapability.js";
|
|
|
429
430
|
export * from "./rankingsdailyitem.js";
|
|
430
431
|
export * from "./rankingsdailymeta.js";
|
|
431
432
|
export * from "./rankingsdailyresponse.js";
|
|
432
|
-
export * from "./reasoningconfig.js";
|
|
433
433
|
export * from "./reasoningcontext.js";
|
|
434
434
|
export * from "./reasoningdeltaevent.js";
|
|
435
435
|
export * from "./reasoningdetailencrypted.js";
|
|
@@ -536,7 +536,6 @@ export * from "./updateworkspaceresponse.js";
|
|
|
536
536
|
export * from "./upsertworkspacebudgetrequest.js";
|
|
537
537
|
export * from "./upsertworkspacebudgetresponse.js";
|
|
538
538
|
export * from "./urlcitation.js";
|
|
539
|
-
export * from "./usage.js";
|
|
540
539
|
export * from "./videogenerationrequest.js";
|
|
541
540
|
export * from "./videogenerationresponse.js";
|
|
542
541
|
export * from "./videogenerationusage.js";
|
|
@@ -86,7 +86,7 @@ export type InputsReasoning = {
|
|
|
86
86
|
signature?: string | null | undefined;
|
|
87
87
|
};
|
|
88
88
|
export type InputsContent1 = ResponseOutputText | OpenAIResponsesRefusalContent;
|
|
89
|
-
export type InputsContent2 = Array<ResponseOutputText | OpenAIResponsesRefusalContent> | string
|
|
89
|
+
export type InputsContent2 = Array<ResponseOutputText | OpenAIResponsesRefusalContent> | string;
|
|
90
90
|
export declare const InputsPhaseFinalAnswer: {
|
|
91
91
|
readonly FinalAnswer: "final_answer";
|
|
92
92
|
};
|
|
@@ -98,7 +98,7 @@ export type InputsPhaseCommentary = ClosedEnum<typeof InputsPhaseCommentary>;
|
|
|
98
98
|
/**
|
|
99
99
|
* The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
|
|
100
100
|
*/
|
|
101
|
-
export type InputsPhaseUnion = InputsPhaseCommentary | InputsPhaseFinalAnswer
|
|
101
|
+
export type InputsPhaseUnion = InputsPhaseCommentary | InputsPhaseFinalAnswer;
|
|
102
102
|
export declare const InputsRole: {
|
|
103
103
|
readonly Assistant: "assistant";
|
|
104
104
|
};
|
|
@@ -124,12 +124,12 @@ export type InputsTypeMessage = ClosedEnum<typeof InputsTypeMessage>;
|
|
|
124
124
|
* An output message item
|
|
125
125
|
*/
|
|
126
126
|
export type InputsMessage = {
|
|
127
|
-
content: Array<ResponseOutputText | OpenAIResponsesRefusalContent> | string |
|
|
127
|
+
content: Array<ResponseOutputText | OpenAIResponsesRefusalContent> | string | null;
|
|
128
128
|
id: string;
|
|
129
129
|
/**
|
|
130
130
|
* The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
|
|
131
131
|
*/
|
|
132
|
-
phase?: InputsPhaseCommentary | InputsPhaseFinalAnswer |
|
|
132
|
+
phase?: InputsPhaseCommentary | InputsPhaseFinalAnswer | null | undefined;
|
|
133
133
|
role: InputsRole;
|
|
134
134
|
status?: InputsStatusCompleted1 | InputsStatusIncomplete1 | InputsStatusInProgress1 | undefined;
|
|
135
135
|
type: InputsTypeMessage;
|
|
@@ -172,7 +172,7 @@ export type InputsContent1$Outbound = ResponseOutputText$Outbound | OpenAIRespon
|
|
|
172
172
|
export declare const InputsContent1$outboundSchema: z.ZodType<InputsContent1$Outbound, InputsContent1>;
|
|
173
173
|
export declare function inputsContent1ToJSON(inputsContent1: InputsContent1): string;
|
|
174
174
|
/** @internal */
|
|
175
|
-
export type InputsContent2$Outbound = Array<ResponseOutputText$Outbound | OpenAIResponsesRefusalContent$Outbound> | string
|
|
175
|
+
export type InputsContent2$Outbound = Array<ResponseOutputText$Outbound | OpenAIResponsesRefusalContent$Outbound> | string;
|
|
176
176
|
/** @internal */
|
|
177
177
|
export declare const InputsContent2$outboundSchema: z.ZodType<InputsContent2$Outbound, InputsContent2>;
|
|
178
178
|
export declare function inputsContent2ToJSON(inputsContent2: InputsContent2): string;
|
|
@@ -181,7 +181,7 @@ export declare const InputsPhaseFinalAnswer$outboundSchema: z.ZodEnum<typeof Inp
|
|
|
181
181
|
/** @internal */
|
|
182
182
|
export declare const InputsPhaseCommentary$outboundSchema: z.ZodEnum<typeof InputsPhaseCommentary>;
|
|
183
183
|
/** @internal */
|
|
184
|
-
export type InputsPhaseUnion$Outbound = string | string
|
|
184
|
+
export type InputsPhaseUnion$Outbound = string | string;
|
|
185
185
|
/** @internal */
|
|
186
186
|
export declare const InputsPhaseUnion$outboundSchema: z.ZodType<InputsPhaseUnion$Outbound, InputsPhaseUnion>;
|
|
187
187
|
export declare function inputsPhaseUnionToJSON(inputsPhaseUnion: InputsPhaseUnion): string;
|
|
@@ -202,9 +202,9 @@ export declare function inputsStatusUnion1ToJSON(inputsStatusUnion1: InputsStatu
|
|
|
202
202
|
export declare const InputsTypeMessage$outboundSchema: z.ZodEnum<typeof InputsTypeMessage>;
|
|
203
203
|
/** @internal */
|
|
204
204
|
export type InputsMessage$Outbound = {
|
|
205
|
-
content: Array<ResponseOutputText$Outbound | OpenAIResponsesRefusalContent$Outbound> | string |
|
|
205
|
+
content: Array<ResponseOutputText$Outbound | OpenAIResponsesRefusalContent$Outbound> | string | null;
|
|
206
206
|
id: string;
|
|
207
|
-
phase?: string | string |
|
|
207
|
+
phase?: string | string | null | undefined;
|
|
208
208
|
role: string;
|
|
209
209
|
status?: string | string | string | undefined;
|
|
210
210
|
type: string;
|
|
@@ -143,7 +143,6 @@ export const InputsContent2$outboundSchema = z.union([
|
|
|
143
143
|
OpenAIResponsesRefusalContent$outboundSchema,
|
|
144
144
|
])),
|
|
145
145
|
z.string(),
|
|
146
|
-
z.any(),
|
|
147
146
|
]);
|
|
148
147
|
export function inputsContent2ToJSON(inputsContent2) {
|
|
149
148
|
return JSON.stringify(InputsContent2$outboundSchema.parse(inputsContent2));
|
|
@@ -156,7 +155,6 @@ export const InputsPhaseCommentary$outboundSchema = z.enum(InputsPhaseCommentary
|
|
|
156
155
|
export const InputsPhaseUnion$outboundSchema = z.union([
|
|
157
156
|
InputsPhaseCommentary$outboundSchema,
|
|
158
157
|
InputsPhaseFinalAnswer$outboundSchema,
|
|
159
|
-
z.any(),
|
|
160
158
|
]);
|
|
161
159
|
export function inputsPhaseUnionToJSON(inputsPhaseUnion) {
|
|
162
160
|
return JSON.stringify(InputsPhaseUnion$outboundSchema.parse(inputsPhaseUnion));
|
|
@@ -188,13 +186,11 @@ export const InputsMessage$outboundSchema = z.object({
|
|
|
188
186
|
OpenAIResponsesRefusalContent$outboundSchema,
|
|
189
187
|
])),
|
|
190
188
|
z.string(),
|
|
191
|
-
z.any(),
|
|
192
189
|
])),
|
|
193
190
|
id: z.string(),
|
|
194
191
|
phase: z.nullable(z.union([
|
|
195
192
|
InputsPhaseCommentary$outboundSchema,
|
|
196
193
|
InputsPhaseFinalAnswer$outboundSchema,
|
|
197
|
-
z.any(),
|
|
198
194
|
])).optional(),
|
|
199
195
|
role: InputsRole$outboundSchema,
|
|
200
196
|
status: z.union([
|
|
@@ -8,7 +8,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
8
8
|
export const InternalServerResponseErrorData$inboundSchema = z.object({
|
|
9
9
|
code: z.int(),
|
|
10
10
|
message: z.string(),
|
|
11
|
-
metadata: z.nullable(z.record(z.string(), z.
|
|
11
|
+
metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
12
12
|
});
|
|
13
13
|
export function internalServerResponseErrorDataFromJSON(jsonString) {
|
|
14
14
|
return safeParse(jsonString, (x) => InternalServerResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InternalServerResponseErrorData' from JSON`);
|
|
@@ -1,40 +1,11 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import { OpenEnum } from "../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
3
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
4
|
import { InputModality } from "./inputmodality.js";
|
|
6
5
|
import { InstructType } from "./instructtype.js";
|
|
6
|
+
import { ModelGroup } from "./modelgroup.js";
|
|
7
7
|
import { OutputModality } from "./outputmodality.js";
|
|
8
8
|
import { PublicEndpoint } from "./publicendpoint.js";
|
|
9
|
-
/**
|
|
10
|
-
* Tokenizer type used by the model
|
|
11
|
-
*/
|
|
12
|
-
export declare const Tokenizer: {
|
|
13
|
-
readonly Router: "Router";
|
|
14
|
-
readonly Media: "Media";
|
|
15
|
-
readonly Other: "Other";
|
|
16
|
-
readonly Gpt: "GPT";
|
|
17
|
-
readonly Claude: "Claude";
|
|
18
|
-
readonly Gemini: "Gemini";
|
|
19
|
-
readonly Gemma: "Gemma";
|
|
20
|
-
readonly Grok: "Grok";
|
|
21
|
-
readonly Cohere: "Cohere";
|
|
22
|
-
readonly Nova: "Nova";
|
|
23
|
-
readonly Qwen: "Qwen";
|
|
24
|
-
readonly Yi: "Yi";
|
|
25
|
-
readonly DeepSeek: "DeepSeek";
|
|
26
|
-
readonly Mistral: "Mistral";
|
|
27
|
-
readonly Llama2: "Llama2";
|
|
28
|
-
readonly Llama3: "Llama3";
|
|
29
|
-
readonly Llama4: "Llama4";
|
|
30
|
-
readonly PaLM: "PaLM";
|
|
31
|
-
readonly Rwkv: "RWKV";
|
|
32
|
-
readonly Qwen3: "Qwen3";
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Tokenizer type used by the model
|
|
36
|
-
*/
|
|
37
|
-
export type Tokenizer = OpenEnum<typeof Tokenizer>;
|
|
38
9
|
/**
|
|
39
10
|
* Model architecture information
|
|
40
11
|
*/
|
|
@@ -55,7 +26,7 @@ export type Architecture = {
|
|
|
55
26
|
* Supported output modalities
|
|
56
27
|
*/
|
|
57
28
|
outputModalities: Array<OutputModality>;
|
|
58
|
-
tokenizer:
|
|
29
|
+
tokenizer: ModelGroup | null;
|
|
59
30
|
};
|
|
60
31
|
/**
|
|
61
32
|
* List of available endpoints for a model
|
|
@@ -84,8 +55,6 @@ export type ListEndpointsResponse = {
|
|
|
84
55
|
name: string;
|
|
85
56
|
};
|
|
86
57
|
/** @internal */
|
|
87
|
-
export declare const Tokenizer$inboundSchema: z.ZodType<Tokenizer, unknown>;
|
|
88
|
-
/** @internal */
|
|
89
58
|
export declare const Architecture$inboundSchema: z.ZodType<Architecture, unknown>;
|
|
90
59
|
export declare function architectureFromJSON(jsonString: string): SafeParseResult<Architecture, SDKValidationError>;
|
|
91
60
|
/** @internal */
|
|
@@ -5,39 +5,11 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import * as openEnums from "../types/enums.js";
|
|
9
8
|
import { InputModality$inboundSchema } from "./inputmodality.js";
|
|
10
9
|
import { InstructType$inboundSchema } from "./instructtype.js";
|
|
10
|
+
import { ModelGroup$inboundSchema } from "./modelgroup.js";
|
|
11
11
|
import { OutputModality$inboundSchema, } from "./outputmodality.js";
|
|
12
12
|
import { PublicEndpoint$inboundSchema, } from "./publicendpoint.js";
|
|
13
|
-
/**
|
|
14
|
-
* Tokenizer type used by the model
|
|
15
|
-
*/
|
|
16
|
-
export const Tokenizer = {
|
|
17
|
-
Router: "Router",
|
|
18
|
-
Media: "Media",
|
|
19
|
-
Other: "Other",
|
|
20
|
-
Gpt: "GPT",
|
|
21
|
-
Claude: "Claude",
|
|
22
|
-
Gemini: "Gemini",
|
|
23
|
-
Gemma: "Gemma",
|
|
24
|
-
Grok: "Grok",
|
|
25
|
-
Cohere: "Cohere",
|
|
26
|
-
Nova: "Nova",
|
|
27
|
-
Qwen: "Qwen",
|
|
28
|
-
Yi: "Yi",
|
|
29
|
-
DeepSeek: "DeepSeek",
|
|
30
|
-
Mistral: "Mistral",
|
|
31
|
-
Llama2: "Llama2",
|
|
32
|
-
Llama3: "Llama3",
|
|
33
|
-
Llama4: "Llama4",
|
|
34
|
-
PaLM: "PaLM",
|
|
35
|
-
Rwkv: "RWKV",
|
|
36
|
-
Qwen3: "Qwen3",
|
|
37
|
-
};
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const Tokenizer$inboundSchema = openEnums
|
|
40
|
-
.inboundSchema(Tokenizer);
|
|
41
13
|
/** @internal */
|
|
42
14
|
export const Architecture$inboundSchema = z
|
|
43
15
|
.object({
|
|
@@ -45,7 +17,7 @@ export const Architecture$inboundSchema = z
|
|
|
45
17
|
instruct_type: z.nullable(InstructType$inboundSchema),
|
|
46
18
|
modality: z.nullable(z.string()),
|
|
47
19
|
output_modalities: z.array(OutputModality$inboundSchema),
|
|
48
|
-
tokenizer: z.nullable(
|
|
20
|
+
tokenizer: z.nullable(ModelGroup$inboundSchema),
|
|
49
21
|
}).transform((v) => {
|
|
50
22
|
return remap$(v, {
|
|
51
23
|
"input_modalities": "inputModalities",
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import { ClosedEnum
|
|
3
|
-
|
|
4
|
-
readonly InProgress: "in_progress";
|
|
5
|
-
readonly Completed: "completed";
|
|
6
|
-
readonly Incomplete: "incomplete";
|
|
7
|
-
};
|
|
8
|
-
export type LocalShellCallOutputItemStatus = OpenEnum<typeof LocalShellCallOutputItemStatus>;
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { ToolCallStatus } from "./toolcallstatus.js";
|
|
9
4
|
export declare const LocalShellCallOutputItemType: {
|
|
10
5
|
readonly LocalShellCallOutput: "local_shell_call_output";
|
|
11
6
|
};
|
|
@@ -16,12 +11,10 @@ export type LocalShellCallOutputItemType = ClosedEnum<typeof LocalShellCallOutpu
|
|
|
16
11
|
export type LocalShellCallOutputItem = {
|
|
17
12
|
id: string;
|
|
18
13
|
output: string;
|
|
19
|
-
status?:
|
|
14
|
+
status?: ToolCallStatus | null | undefined;
|
|
20
15
|
type: LocalShellCallOutputItemType;
|
|
21
16
|
};
|
|
22
17
|
/** @internal */
|
|
23
|
-
export declare const LocalShellCallOutputItemStatus$outboundSchema: z.ZodType<string, LocalShellCallOutputItemStatus>;
|
|
24
|
-
/** @internal */
|
|
25
18
|
export declare const LocalShellCallOutputItemType$outboundSchema: z.ZodEnum<typeof LocalShellCallOutputItemType>;
|
|
26
19
|
/** @internal */
|
|
27
20
|
export type LocalShellCallOutputItem$Outbound = {
|
|
@@ -3,24 +3,17 @@
|
|
|
3
3
|
* @generated-id: 07d6199bf63f
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
|
-
import
|
|
7
|
-
export const LocalShellCallOutputItemStatus = {
|
|
8
|
-
InProgress: "in_progress",
|
|
9
|
-
Completed: "completed",
|
|
10
|
-
Incomplete: "incomplete",
|
|
11
|
-
};
|
|
6
|
+
import { ToolCallStatus$outboundSchema, } from "./toolcallstatus.js";
|
|
12
7
|
export const LocalShellCallOutputItemType = {
|
|
13
8
|
LocalShellCallOutput: "local_shell_call_output",
|
|
14
9
|
};
|
|
15
10
|
/** @internal */
|
|
16
|
-
export const LocalShellCallOutputItemStatus$outboundSchema = openEnums.outboundSchema(LocalShellCallOutputItemStatus);
|
|
17
|
-
/** @internal */
|
|
18
11
|
export const LocalShellCallOutputItemType$outboundSchema = z.enum(LocalShellCallOutputItemType);
|
|
19
12
|
/** @internal */
|
|
20
13
|
export const LocalShellCallOutputItem$outboundSchema = z.object({
|
|
21
14
|
id: z.string(),
|
|
22
15
|
output: z.string(),
|
|
23
|
-
status: z.nullable(
|
|
16
|
+
status: z.nullable(ToolCallStatus$outboundSchema).optional(),
|
|
24
17
|
type: LocalShellCallOutputItemType$outboundSchema,
|
|
25
18
|
});
|
|
26
19
|
export function localShellCallOutputItemToJSON(localShellCallOutputItem) {
|