@openrouter/sdk 0.13.58 → 0.13.60
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/funcs/betaResponsesSend.d.ts +2 -4
- package/esm/funcs/byokList.js +1 -2
- package/esm/funcs/chatSend.d.ts +2 -4
- package/esm/funcs/datasetsGetAppRankings.js +1 -2
- package/esm/funcs/embeddingsListModels.js +1 -2
- package/esm/funcs/filesList.js +2 -3
- package/esm/funcs/guardrailsList.js +1 -2
- package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +1 -2
- package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +1 -2
- package/esm/funcs/guardrailsListKeyAssignments.js +1 -2
- package/esm/funcs/guardrailsListMemberAssignments.js +1 -2
- package/esm/funcs/imagesGenerate.d.ts +2 -4
- package/esm/funcs/modelsList.js +1 -2
- package/esm/funcs/modelsListForUser.js +1 -2
- package/esm/funcs/observabilityList.js +1 -2
- package/esm/funcs/organizationListMembers.js +1 -2
- package/esm/funcs/presetsList.js +1 -2
- package/esm/funcs/presetsListVersions.js +1 -2
- package/esm/funcs/workspacesList.js +1 -2
- package/esm/funcs/workspacesListMembers.js +1 -2
- package/esm/hooks/types.d.ts +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.js +1 -1
- package/esm/lib/env.js +3 -3
- package/esm/lib/event-streams.d.ts +7 -2
- package/esm/lib/event-streams.js +30 -14
- package/esm/lib/matchers.js +1 -1
- package/esm/lib/primitives.d.ts +1 -0
- package/esm/lib/primitives.js +17 -0
- package/esm/lib/retries.js +7 -0
- package/esm/lib/sdks.js +50 -16
- 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/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 +4 -4
- package/esm/models/chatrequest.js +1 -3
- package/esm/models/chatstreamingresponse.js +3 -1
- 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/imagestreamingresponse.js +3 -1
- package/esm/models/index.d.ts +0 -2
- package/esm/models/index.js +0 -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 +10 -32
- package/esm/models/messagesrequest.js +7 -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 +37 -5
- package/esm/models/responsesrequest.js +24 -4
- package/esm/models/responsesstreamingresponse.js +3 -1
- 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/esm/sdk/chat.d.ts +2 -4
- package/esm/sdk/images.d.ts +2 -3
- package/esm/sdk/responses.d.ts +2 -4
- package/esm/types/async.js +8 -7
- package/jsr.json +1 -1
- package/package.json +4 -4
- package/esm/lib/dlv.d.ts +0 -14
- package/esm/lib/dlv.js +0 -47
- package/esm/lib/is-plain-object.d.ts +0 -2
- package/esm/lib/is-plain-object.js +0 -39
- 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
|
@@ -6,129 +6,130 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
/** @internal */
|
|
8
8
|
export const ProviderOptions$outboundSchema = z.object({
|
|
9
|
-
oneai: z.record(z.string(), z.
|
|
10
|
-
ai21: z.record(z.string(), z.
|
|
11
|
-
aionLabs: z.record(z.string(), z.
|
|
12
|
-
akashml: z.record(z.string(), z.
|
|
13
|
-
alibaba: z.record(z.string(), z.
|
|
14
|
-
amazonBedrock: z.record(z.string(), z.
|
|
15
|
-
amazonNova: z.record(z.string(), z.
|
|
16
|
-
ambient: z.record(z.string(), z.
|
|
17
|
-
anthropic: z.record(z.string(), z.
|
|
18
|
-
anyscale: z.record(z.string(), z.
|
|
19
|
-
arceeAi: z.record(z.string(), z.
|
|
20
|
-
atlasCloud: z.record(z.string(), z.
|
|
21
|
-
atoma: z.record(z.string(), z.
|
|
22
|
-
avian: z.record(z.string(), z.
|
|
23
|
-
azure: z.record(z.string(), z.
|
|
24
|
-
baidu: z.record(z.string(), z.
|
|
25
|
-
baseten: z.record(z.string(), z.
|
|
26
|
-
blackForestLabs: z.record(z.string(), z.
|
|
27
|
-
byteplus: z.record(z.string(), z.
|
|
28
|
-
centml: z.record(z.string(), z.
|
|
29
|
-
cerebras: z.record(z.string(), z.
|
|
30
|
-
chutes: z.record(z.string(), z.
|
|
31
|
-
cirrascale: z.record(z.string(), z.
|
|
32
|
-
clarifai: z.record(z.string(), z.
|
|
33
|
-
cloudflare: z.record(z.string(), z.
|
|
34
|
-
cohere: z.record(z.string(), z.
|
|
35
|
-
crofai: z.record(z.string(), z.
|
|
36
|
-
crucible: z.record(z.string(), z.
|
|
37
|
-
crusoe: z.record(z.string(), z.
|
|
38
|
-
darkbloom: z.record(z.string(), z.
|
|
39
|
-
decart: z.record(z.string(), z.
|
|
40
|
-
deepgram: z.record(z.string(), z.
|
|
41
|
-
deepinfra: z.record(z.string(), z.
|
|
42
|
-
deepseek: z.record(z.string(), z.
|
|
43
|
-
dekallm: z.record(z.string(), z.
|
|
44
|
-
digitalocean: z.record(z.string(), z.
|
|
45
|
-
enfer: z.record(z.string(), z.
|
|
46
|
-
fakeProvider: z.record(z.string(), z.
|
|
47
|
-
featherless: z.record(z.string(), z.
|
|
48
|
-
fireworks: z.record(z.string(), z.
|
|
49
|
-
friendli: z.record(z.string(), z.
|
|
50
|
-
gmicloud: z.record(z.string(), z.
|
|
51
|
-
googleAiStudio: z.record(z.string(), z.
|
|
52
|
-
googleVertex: z.record(z.string(), z.
|
|
53
|
-
gopomelo: z.record(z.string(), z.
|
|
54
|
-
groq: z.record(z.string(), z.
|
|
55
|
-
heygen: z.record(z.string(), z.
|
|
56
|
-
huggingface: z.record(z.string(), z.
|
|
57
|
-
hyperbolic: z.record(z.string(), z.
|
|
58
|
-
hyperbolicQuantized: z.record(z.string(), z.
|
|
59
|
-
inception: z.record(z.string(), z.
|
|
60
|
-
inceptron: z.record(z.string(), z.
|
|
61
|
-
inferactVllm: z.record(z.string(), z.
|
|
62
|
-
inferenceNet: z.record(z.string(), z.
|
|
63
|
-
infermatic: z.record(z.string(), z.
|
|
64
|
-
inflection: z.record(z.string(), z.
|
|
65
|
-
inocloud: z.record(z.string(), z.
|
|
66
|
-
ioNet: z.record(z.string(), z.
|
|
67
|
-
ionstream: z.record(z.string(), z.
|
|
68
|
-
klusterai: z.record(z.string(), z.
|
|
69
|
-
krea: z.record(z.string(), z.
|
|
70
|
-
lambda: z.record(z.string(), z.
|
|
71
|
-
lepton: z.record(z.string(), z.
|
|
72
|
-
liquid: z.record(z.string(), z.
|
|
73
|
-
lynn: z.record(z.string(), z.
|
|
74
|
-
lynnPrivate: z.record(z.string(), z.
|
|
75
|
-
mancer: z.record(z.string(), z.
|
|
76
|
-
mancerOld: z.record(z.string(), z.
|
|
77
|
-
mara: z.record(z.string(), z.
|
|
78
|
-
meta: z.record(z.string(), z.
|
|
79
|
-
minimax: z.record(z.string(), z.
|
|
80
|
-
mistral: z.record(z.string(), z.
|
|
81
|
-
modal: z.record(z.string(), z.
|
|
82
|
-
modelrun: z.record(z.string(), z.
|
|
83
|
-
modular: z.record(z.string(), z.
|
|
84
|
-
moonshotai: z.record(z.string(), z.
|
|
85
|
-
morph: z.record(z.string(), z.
|
|
86
|
-
ncompass: z.record(z.string(), z.
|
|
87
|
-
nebius: z.record(z.string(), z.
|
|
88
|
-
nexAgi: z.record(z.string(), z.
|
|
89
|
-
nextbit: z.record(z.string(), z.
|
|
90
|
-
nineteen: z.record(z.string(), z.
|
|
91
|
-
novita: z.record(z.string(), z.
|
|
92
|
-
nvidia: z.record(z.string(), z.
|
|
93
|
-
octoai: z.record(z.string(), z.
|
|
94
|
-
openInference: z.record(z.string(), z.
|
|
95
|
-
openai: z.record(z.string(), z.
|
|
96
|
-
parasail: z.record(z.string(), z.
|
|
97
|
-
perceptron: z.record(z.string(), z.
|
|
98
|
-
perplexity: z.record(z.string(), z.
|
|
99
|
-
phala: z.record(z.string(), z.
|
|
100
|
-
poolside: z.record(z.string(), z.
|
|
101
|
-
quiver: z.record(z.string(), z.
|
|
102
|
-
recraft: z.record(z.string(), z.
|
|
103
|
-
recursal: z.record(z.string(), z.
|
|
104
|
-
reflection: z.record(z.string(), z.
|
|
105
|
-
reka: z.record(z.string(), z.
|
|
106
|
-
relace: z.record(z.string(), z.
|
|
107
|
-
replicate: z.record(z.string(), z.
|
|
108
|
-
sailResearch: z.record(z.string(), z.
|
|
109
|
-
sakana: z.record(z.string(), z.
|
|
110
|
-
sambanova: z.record(z.string(), z.
|
|
111
|
-
sambanovaCloaked: z.record(z.string(), z.
|
|
112
|
-
seed: z.record(z.string(), z.
|
|
113
|
-
sfCompute: z.record(z.string(), z.
|
|
114
|
-
siliconflow: z.record(z.string(), z.
|
|
115
|
-
sourceful: z.record(z.string(), z.
|
|
116
|
-
stealth: z.record(z.string(), z.
|
|
117
|
-
stepfun: z.record(z.string(), z.
|
|
118
|
-
streamlake: z.record(z.string(), z.
|
|
119
|
-
switchpoint: z.record(z.string(), z.
|
|
120
|
-
targon: z.record(z.string(), z.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
9
|
+
oneai: z.record(z.string(), z.any()).optional(),
|
|
10
|
+
ai21: z.record(z.string(), z.any()).optional(),
|
|
11
|
+
aionLabs: z.record(z.string(), z.any()).optional(),
|
|
12
|
+
akashml: z.record(z.string(), z.any()).optional(),
|
|
13
|
+
alibaba: z.record(z.string(), z.any()).optional(),
|
|
14
|
+
amazonBedrock: z.record(z.string(), z.any()).optional(),
|
|
15
|
+
amazonNova: z.record(z.string(), z.any()).optional(),
|
|
16
|
+
ambient: z.record(z.string(), z.any()).optional(),
|
|
17
|
+
anthropic: z.record(z.string(), z.any()).optional(),
|
|
18
|
+
anyscale: z.record(z.string(), z.any()).optional(),
|
|
19
|
+
arceeAi: z.record(z.string(), z.any()).optional(),
|
|
20
|
+
atlasCloud: z.record(z.string(), z.any()).optional(),
|
|
21
|
+
atoma: z.record(z.string(), z.any()).optional(),
|
|
22
|
+
avian: z.record(z.string(), z.any()).optional(),
|
|
23
|
+
azure: z.record(z.string(), z.any()).optional(),
|
|
24
|
+
baidu: z.record(z.string(), z.any()).optional(),
|
|
25
|
+
baseten: z.record(z.string(), z.any()).optional(),
|
|
26
|
+
blackForestLabs: z.record(z.string(), z.any()).optional(),
|
|
27
|
+
byteplus: z.record(z.string(), z.any()).optional(),
|
|
28
|
+
centml: z.record(z.string(), z.any()).optional(),
|
|
29
|
+
cerebras: z.record(z.string(), z.any()).optional(),
|
|
30
|
+
chutes: z.record(z.string(), z.any()).optional(),
|
|
31
|
+
cirrascale: z.record(z.string(), z.any()).optional(),
|
|
32
|
+
clarifai: z.record(z.string(), z.any()).optional(),
|
|
33
|
+
cloudflare: z.record(z.string(), z.any()).optional(),
|
|
34
|
+
cohere: z.record(z.string(), z.any()).optional(),
|
|
35
|
+
crofai: z.record(z.string(), z.any()).optional(),
|
|
36
|
+
crucible: z.record(z.string(), z.any()).optional(),
|
|
37
|
+
crusoe: z.record(z.string(), z.any()).optional(),
|
|
38
|
+
darkbloom: z.record(z.string(), z.any()).optional(),
|
|
39
|
+
decart: z.record(z.string(), z.any()).optional(),
|
|
40
|
+
deepgram: z.record(z.string(), z.any()).optional(),
|
|
41
|
+
deepinfra: z.record(z.string(), z.any()).optional(),
|
|
42
|
+
deepseek: z.record(z.string(), z.any()).optional(),
|
|
43
|
+
dekallm: z.record(z.string(), z.any()).optional(),
|
|
44
|
+
digitalocean: z.record(z.string(), z.any()).optional(),
|
|
45
|
+
enfer: z.record(z.string(), z.any()).optional(),
|
|
46
|
+
fakeProvider: z.record(z.string(), z.any()).optional(),
|
|
47
|
+
featherless: z.record(z.string(), z.any()).optional(),
|
|
48
|
+
fireworks: z.record(z.string(), z.any()).optional(),
|
|
49
|
+
friendli: z.record(z.string(), z.any()).optional(),
|
|
50
|
+
gmicloud: z.record(z.string(), z.any()).optional(),
|
|
51
|
+
googleAiStudio: z.record(z.string(), z.any()).optional(),
|
|
52
|
+
googleVertex: z.record(z.string(), z.any()).optional(),
|
|
53
|
+
gopomelo: z.record(z.string(), z.any()).optional(),
|
|
54
|
+
groq: z.record(z.string(), z.any()).optional(),
|
|
55
|
+
heygen: z.record(z.string(), z.any()).optional(),
|
|
56
|
+
huggingface: z.record(z.string(), z.any()).optional(),
|
|
57
|
+
hyperbolic: z.record(z.string(), z.any()).optional(),
|
|
58
|
+
hyperbolicQuantized: z.record(z.string(), z.any()).optional(),
|
|
59
|
+
inception: z.record(z.string(), z.any()).optional(),
|
|
60
|
+
inceptron: z.record(z.string(), z.any()).optional(),
|
|
61
|
+
inferactVllm: z.record(z.string(), z.any()).optional(),
|
|
62
|
+
inferenceNet: z.record(z.string(), z.any()).optional(),
|
|
63
|
+
infermatic: z.record(z.string(), z.any()).optional(),
|
|
64
|
+
inflection: z.record(z.string(), z.any()).optional(),
|
|
65
|
+
inocloud: z.record(z.string(), z.any()).optional(),
|
|
66
|
+
ioNet: z.record(z.string(), z.any()).optional(),
|
|
67
|
+
ionstream: z.record(z.string(), z.any()).optional(),
|
|
68
|
+
klusterai: z.record(z.string(), z.any()).optional(),
|
|
69
|
+
krea: z.record(z.string(), z.any()).optional(),
|
|
70
|
+
lambda: z.record(z.string(), z.any()).optional(),
|
|
71
|
+
lepton: z.record(z.string(), z.any()).optional(),
|
|
72
|
+
liquid: z.record(z.string(), z.any()).optional(),
|
|
73
|
+
lynn: z.record(z.string(), z.any()).optional(),
|
|
74
|
+
lynnPrivate: z.record(z.string(), z.any()).optional(),
|
|
75
|
+
mancer: z.record(z.string(), z.any()).optional(),
|
|
76
|
+
mancerOld: z.record(z.string(), z.any()).optional(),
|
|
77
|
+
mara: z.record(z.string(), z.any()).optional(),
|
|
78
|
+
meta: z.record(z.string(), z.any()).optional(),
|
|
79
|
+
minimax: z.record(z.string(), z.any()).optional(),
|
|
80
|
+
mistral: z.record(z.string(), z.any()).optional(),
|
|
81
|
+
modal: z.record(z.string(), z.any()).optional(),
|
|
82
|
+
modelrun: z.record(z.string(), z.any()).optional(),
|
|
83
|
+
modular: z.record(z.string(), z.any()).optional(),
|
|
84
|
+
moonshotai: z.record(z.string(), z.any()).optional(),
|
|
85
|
+
morph: z.record(z.string(), z.any()).optional(),
|
|
86
|
+
ncompass: z.record(z.string(), z.any()).optional(),
|
|
87
|
+
nebius: z.record(z.string(), z.any()).optional(),
|
|
88
|
+
nexAgi: z.record(z.string(), z.any()).optional(),
|
|
89
|
+
nextbit: z.record(z.string(), z.any()).optional(),
|
|
90
|
+
nineteen: z.record(z.string(), z.any()).optional(),
|
|
91
|
+
novita: z.record(z.string(), z.any()).optional(),
|
|
92
|
+
nvidia: z.record(z.string(), z.any()).optional(),
|
|
93
|
+
octoai: z.record(z.string(), z.any()).optional(),
|
|
94
|
+
openInference: z.record(z.string(), z.any()).optional(),
|
|
95
|
+
openai: z.record(z.string(), z.any()).optional(),
|
|
96
|
+
parasail: z.record(z.string(), z.any()).optional(),
|
|
97
|
+
perceptron: z.record(z.string(), z.any()).optional(),
|
|
98
|
+
perplexity: z.record(z.string(), z.any()).optional(),
|
|
99
|
+
phala: z.record(z.string(), z.any()).optional(),
|
|
100
|
+
poolside: z.record(z.string(), z.any()).optional(),
|
|
101
|
+
quiver: z.record(z.string(), z.any()).optional(),
|
|
102
|
+
recraft: z.record(z.string(), z.any()).optional(),
|
|
103
|
+
recursal: z.record(z.string(), z.any()).optional(),
|
|
104
|
+
reflection: z.record(z.string(), z.any()).optional(),
|
|
105
|
+
reka: z.record(z.string(), z.any()).optional(),
|
|
106
|
+
relace: z.record(z.string(), z.any()).optional(),
|
|
107
|
+
replicate: z.record(z.string(), z.any()).optional(),
|
|
108
|
+
sailResearch: z.record(z.string(), z.any()).optional(),
|
|
109
|
+
sakana: z.record(z.string(), z.any()).optional(),
|
|
110
|
+
sambanova: z.record(z.string(), z.any()).optional(),
|
|
111
|
+
sambanovaCloaked: z.record(z.string(), z.any()).optional(),
|
|
112
|
+
seed: z.record(z.string(), z.any()).optional(),
|
|
113
|
+
sfCompute: z.record(z.string(), z.any()).optional(),
|
|
114
|
+
siliconflow: z.record(z.string(), z.any()).optional(),
|
|
115
|
+
sourceful: z.record(z.string(), z.any()).optional(),
|
|
116
|
+
stealth: z.record(z.string(), z.any()).optional(),
|
|
117
|
+
stepfun: z.record(z.string(), z.any()).optional(),
|
|
118
|
+
streamlake: z.record(z.string(), z.any()).optional(),
|
|
119
|
+
switchpoint: z.record(z.string(), z.any()).optional(),
|
|
120
|
+
targon: z.record(z.string(), z.any()).optional(),
|
|
121
|
+
tencent: z.record(z.string(), z.any()).optional(),
|
|
122
|
+
tenstorrent: z.record(z.string(), z.any()).optional(),
|
|
123
|
+
together: z.record(z.string(), z.any()).optional(),
|
|
124
|
+
togetherLite: z.record(z.string(), z.any()).optional(),
|
|
125
|
+
ubicloud: z.record(z.string(), z.any()).optional(),
|
|
126
|
+
upstage: z.record(z.string(), z.any()).optional(),
|
|
127
|
+
venice: z.record(z.string(), z.any()).optional(),
|
|
128
|
+
wafer: z.record(z.string(), z.any()).optional(),
|
|
129
|
+
wandb: z.record(z.string(), z.any()).optional(),
|
|
130
|
+
xai: z.record(z.string(), z.any()).optional(),
|
|
131
|
+
xiaomi: z.record(z.string(), z.any()).optional(),
|
|
132
|
+
zAi: z.record(z.string(), z.any()).optional(),
|
|
132
133
|
}).transform((v) => {
|
|
133
134
|
return remap$(v, {
|
|
134
135
|
oneai: "01ai",
|
|
@@ -8,7 +8,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
8
8
|
export const ProviderOverloadedResponseErrorData$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 providerOverloadedResponseErrorDataFromJSON(jsonString) {
|
|
14
14
|
return safeParse(jsonString, (x) => ProviderOverloadedResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProviderOverloadedResponseErrorData' from JSON`);
|
|
@@ -58,7 +58,7 @@ export type ProviderPreferencesOrder = ProviderName | string;
|
|
|
58
58
|
/**
|
|
59
59
|
* The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
60
60
|
*/
|
|
61
|
-
export type ProviderPreferencesSort = ProviderSort | ProviderSortConfig
|
|
61
|
+
export type ProviderPreferencesSort = ProviderSort | ProviderSortConfig;
|
|
62
62
|
/**
|
|
63
63
|
* When multiple model providers are available, optionally indicate your routing preference.
|
|
64
64
|
*/
|
|
@@ -119,7 +119,7 @@ export type ProviderPreferences = {
|
|
|
119
119
|
/**
|
|
120
120
|
* The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
121
121
|
*/
|
|
122
|
-
sort?: ProviderSort | ProviderSortConfig |
|
|
122
|
+
sort?: ProviderSort | ProviderSortConfig | null | undefined;
|
|
123
123
|
/**
|
|
124
124
|
* Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.
|
|
125
125
|
*/
|
|
@@ -154,7 +154,7 @@ export type ProviderPreferencesOrder$Outbound = string | string;
|
|
|
154
154
|
export declare const ProviderPreferencesOrder$outboundSchema: z.ZodType<ProviderPreferencesOrder$Outbound, ProviderPreferencesOrder>;
|
|
155
155
|
export declare function providerPreferencesOrderToJSON(providerPreferencesOrder: ProviderPreferencesOrder): string;
|
|
156
156
|
/** @internal */
|
|
157
|
-
export type ProviderPreferencesSort$Outbound = string | ProviderSortConfig$Outbound
|
|
157
|
+
export type ProviderPreferencesSort$Outbound = string | ProviderSortConfig$Outbound;
|
|
158
158
|
/** @internal */
|
|
159
159
|
export declare const ProviderPreferencesSort$outboundSchema: z.ZodType<ProviderPreferencesSort$Outbound, ProviderPreferencesSort>;
|
|
160
160
|
export declare function providerPreferencesSortToJSON(providerPreferencesSort: ProviderPreferencesSort): string;
|
|
@@ -171,7 +171,7 @@ export type ProviderPreferences$Outbound = {
|
|
|
171
171
|
preferred_min_throughput?: PreferredMinThroughput$Outbound | null | undefined;
|
|
172
172
|
quantizations?: Array<string> | null | undefined;
|
|
173
173
|
require_parameters?: boolean | null | undefined;
|
|
174
|
-
sort?: string | ProviderSortConfig$Outbound |
|
|
174
|
+
sort?: string | ProviderSortConfig$Outbound | null | undefined;
|
|
175
175
|
zdr?: boolean | null | undefined;
|
|
176
176
|
};
|
|
177
177
|
/** @internal */
|
|
@@ -53,11 +53,7 @@ export function providerPreferencesOrderToJSON(providerPreferencesOrder) {
|
|
|
53
53
|
return JSON.stringify(ProviderPreferencesOrder$outboundSchema.parse(providerPreferencesOrder));
|
|
54
54
|
}
|
|
55
55
|
/** @internal */
|
|
56
|
-
export const ProviderPreferencesSort$outboundSchema = z.union([
|
|
57
|
-
ProviderSort$outboundSchema,
|
|
58
|
-
ProviderSortConfig$outboundSchema,
|
|
59
|
-
z.any(),
|
|
60
|
-
]);
|
|
56
|
+
export const ProviderPreferencesSort$outboundSchema = z.union([ProviderSort$outboundSchema, ProviderSortConfig$outboundSchema]);
|
|
61
57
|
export function providerPreferencesSortToJSON(providerPreferencesSort) {
|
|
62
58
|
return JSON.stringify(ProviderPreferencesSort$outboundSchema.parse(providerPreferencesSort));
|
|
63
59
|
}
|
|
@@ -78,11 +74,7 @@ export const ProviderPreferences$outboundSchema = z.object({
|
|
|
78
74
|
.optional(),
|
|
79
75
|
quantizations: z.nullable(z.array(Quantization$outboundSchema)).optional(),
|
|
80
76
|
requireParameters: z.nullable(z.boolean()).optional(),
|
|
81
|
-
sort: z.nullable(z.union([
|
|
82
|
-
ProviderSort$outboundSchema,
|
|
83
|
-
ProviderSortConfig$outboundSchema,
|
|
84
|
-
z.any(),
|
|
85
|
-
])).optional(),
|
|
77
|
+
sort: z.nullable(z.union([ProviderSort$outboundSchema, ProviderSortConfig$outboundSchema])).optional(),
|
|
86
78
|
zdr: z.nullable(z.boolean()).optional(),
|
|
87
79
|
}).transform((v) => {
|
|
88
80
|
return remap$(v, {
|
|
@@ -22,7 +22,6 @@ export declare const ProviderResponseProviderName: {
|
|
|
22
22
|
readonly Lynn2: "Lynn 2";
|
|
23
23
|
readonly Lynn: "Lynn";
|
|
24
24
|
readonly Mancer: "Mancer";
|
|
25
|
-
readonly Meta: "Meta";
|
|
26
25
|
readonly Modal: "Modal";
|
|
27
26
|
readonly Nineteen: "Nineteen";
|
|
28
27
|
readonly OctoAI: "OctoAI";
|
|
@@ -85,6 +84,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
85
84
|
readonly Liquid: "Liquid";
|
|
86
85
|
readonly Mara: "Mara";
|
|
87
86
|
readonly Mancer2: "Mancer 2";
|
|
87
|
+
readonly Meta: "Meta";
|
|
88
88
|
readonly Minimax: "Minimax";
|
|
89
89
|
readonly ModelRun: "ModelRun";
|
|
90
90
|
readonly Mistral: "Mistral";
|
|
@@ -117,6 +117,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
117
117
|
readonly Stealth: "Stealth";
|
|
118
118
|
readonly StreamLake: "StreamLake";
|
|
119
119
|
readonly Switchpoint: "Switchpoint";
|
|
120
|
+
readonly Tencent: "Tencent";
|
|
120
121
|
readonly Tenstorrent: "Tenstorrent";
|
|
121
122
|
readonly Together: "Together";
|
|
122
123
|
readonly Upstage: "Upstage";
|
|
@@ -26,7 +26,6 @@ export const ProviderResponseProviderName = {
|
|
|
26
26
|
Lynn2: "Lynn 2",
|
|
27
27
|
Lynn: "Lynn",
|
|
28
28
|
Mancer: "Mancer",
|
|
29
|
-
Meta: "Meta",
|
|
30
29
|
Modal: "Modal",
|
|
31
30
|
Nineteen: "Nineteen",
|
|
32
31
|
OctoAI: "OctoAI",
|
|
@@ -89,6 +88,7 @@ export const ProviderResponseProviderName = {
|
|
|
89
88
|
Liquid: "Liquid",
|
|
90
89
|
Mara: "Mara",
|
|
91
90
|
Mancer2: "Mancer 2",
|
|
91
|
+
Meta: "Meta",
|
|
92
92
|
Minimax: "Minimax",
|
|
93
93
|
ModelRun: "ModelRun",
|
|
94
94
|
Mistral: "Mistral",
|
|
@@ -121,6 +121,7 @@ export const ProviderResponseProviderName = {
|
|
|
121
121
|
Stealth: "Stealth",
|
|
122
122
|
StreamLake: "StreamLake",
|
|
123
123
|
Switchpoint: "Switchpoint",
|
|
124
|
+
Tencent: "Tencent",
|
|
124
125
|
Tenstorrent: "Tenstorrent",
|
|
125
126
|
Together: "Together",
|
|
126
127
|
Upstage: "Upstage",
|
|
@@ -1,5 +1,4 @@
|
|
|
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 { EndpointStatus } from "./endpointstatus.js";
|
|
5
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
@@ -7,6 +6,7 @@ import { Parameter } from "./parameter.js";
|
|
|
7
6
|
import { PercentileStats } from "./percentilestats.js";
|
|
8
7
|
import { PricingOverride } from "./pricingoverride.js";
|
|
9
8
|
import { ProviderName } from "./providername.js";
|
|
9
|
+
import { Quantization } from "./quantization.js";
|
|
10
10
|
export type Pricing = {
|
|
11
11
|
/**
|
|
12
12
|
* Price in USD per audio input token
|
|
@@ -73,18 +73,6 @@ export type Pricing = {
|
|
|
73
73
|
*/
|
|
74
74
|
webSearch?: string | undefined;
|
|
75
75
|
};
|
|
76
|
-
export declare const PublicEndpointQuantization: {
|
|
77
|
-
readonly Int4: "int4";
|
|
78
|
-
readonly Int8: "int8";
|
|
79
|
-
readonly Fp4: "fp4";
|
|
80
|
-
readonly Fp6: "fp6";
|
|
81
|
-
readonly Fp8: "fp8";
|
|
82
|
-
readonly Fp16: "fp16";
|
|
83
|
-
readonly Bf16: "bf16";
|
|
84
|
-
readonly Fp32: "fp32";
|
|
85
|
-
readonly Unknown: "unknown";
|
|
86
|
-
};
|
|
87
|
-
export type PublicEndpointQuantization = OpenEnum<typeof PublicEndpointQuantization>;
|
|
88
76
|
/**
|
|
89
77
|
* Information about a specific model endpoint
|
|
90
78
|
*/
|
|
@@ -104,7 +92,7 @@ export type PublicEndpoint = {
|
|
|
104
92
|
name: string;
|
|
105
93
|
pricing: Pricing;
|
|
106
94
|
providerName: ProviderName;
|
|
107
|
-
quantization:
|
|
95
|
+
quantization: Quantization | null;
|
|
108
96
|
status?: EndpointStatus | undefined;
|
|
109
97
|
supportedParameters: Array<Parameter>;
|
|
110
98
|
supportsImplicitCaching: boolean;
|
|
@@ -124,8 +112,6 @@ export type PublicEndpoint = {
|
|
|
124
112
|
export declare const Pricing$inboundSchema: z.ZodType<Pricing, unknown>;
|
|
125
113
|
export declare function pricingFromJSON(jsonString: string): SafeParseResult<Pricing, SDKValidationError>;
|
|
126
114
|
/** @internal */
|
|
127
|
-
export declare const PublicEndpointQuantization$inboundSchema: z.ZodType<PublicEndpointQuantization, unknown>;
|
|
128
|
-
/** @internal */
|
|
129
115
|
export declare const PublicEndpoint$inboundSchema: z.ZodType<PublicEndpoint, unknown>;
|
|
130
116
|
export declare function publicEndpointFromJSON(jsonString: string): SafeParseResult<PublicEndpoint, SDKValidationError>;
|
|
131
117
|
//# sourceMappingURL=publicendpoint.d.ts.map
|
|
@@ -5,23 +5,12 @@
|
|
|
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 { EndpointStatus$inboundSchema, } from "./endpointstatus.js";
|
|
10
9
|
import { Parameter$inboundSchema } from "./parameter.js";
|
|
11
10
|
import { PercentileStats$inboundSchema, } from "./percentilestats.js";
|
|
12
11
|
import { PricingOverride$inboundSchema, } from "./pricingoverride.js";
|
|
13
12
|
import { ProviderName$inboundSchema } from "./providername.js";
|
|
14
|
-
|
|
15
|
-
Int4: "int4",
|
|
16
|
-
Int8: "int8",
|
|
17
|
-
Fp4: "fp4",
|
|
18
|
-
Fp6: "fp6",
|
|
19
|
-
Fp8: "fp8",
|
|
20
|
-
Fp16: "fp16",
|
|
21
|
-
Bf16: "bf16",
|
|
22
|
-
Fp32: "fp32",
|
|
23
|
-
Unknown: "unknown",
|
|
24
|
-
};
|
|
13
|
+
import { Quantization$inboundSchema } from "./quantization.js";
|
|
25
14
|
/** @internal */
|
|
26
15
|
export const Pricing$inboundSchema = z.object({
|
|
27
16
|
audio: z.string().optional(),
|
|
@@ -57,8 +46,6 @@ export function pricingFromJSON(jsonString) {
|
|
|
57
46
|
return safeParse(jsonString, (x) => Pricing$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Pricing' from JSON`);
|
|
58
47
|
}
|
|
59
48
|
/** @internal */
|
|
60
|
-
export const PublicEndpointQuantization$inboundSchema = openEnums.inboundSchema(PublicEndpointQuantization);
|
|
61
|
-
/** @internal */
|
|
62
49
|
export const PublicEndpoint$inboundSchema = z.object({
|
|
63
50
|
context_length: z.int(),
|
|
64
51
|
latency_last_30m: z.nullable(PercentileStats$inboundSchema),
|
|
@@ -69,7 +56,7 @@ export const PublicEndpoint$inboundSchema = z.object({
|
|
|
69
56
|
name: z.string(),
|
|
70
57
|
pricing: z.lazy(() => Pricing$inboundSchema),
|
|
71
58
|
provider_name: ProviderName$inboundSchema,
|
|
72
|
-
quantization: z.nullable(
|
|
59
|
+
quantization: z.nullable(Quantization$inboundSchema),
|
|
73
60
|
status: EndpointStatus$inboundSchema.optional(),
|
|
74
61
|
supported_parameters: z.array(Parameter$inboundSchema),
|
|
75
62
|
supports_implicit_caching: z.boolean(),
|
|
@@ -13,5 +13,7 @@ export declare const Quantization: {
|
|
|
13
13
|
};
|
|
14
14
|
export type Quantization = OpenEnum<typeof Quantization>;
|
|
15
15
|
/** @internal */
|
|
16
|
+
export declare const Quantization$inboundSchema: z.ZodType<Quantization, unknown>;
|
|
17
|
+
/** @internal */
|
|
16
18
|
export declare const Quantization$outboundSchema: z.ZodType<string, Quantization>;
|
|
17
19
|
//# sourceMappingURL=quantization.d.ts.map
|
|
@@ -15,5 +15,7 @@ export const Quantization = {
|
|
|
15
15
|
Unknown: "unknown",
|
|
16
16
|
};
|
|
17
17
|
/** @internal */
|
|
18
|
+
export const Quantization$inboundSchema = openEnums.inboundSchema(Quantization);
|
|
19
|
+
/** @internal */
|
|
18
20
|
export const Quantization$outboundSchema = openEnums.outboundSchema(Quantization);
|
|
19
21
|
//# sourceMappingURL=quantization.js.map
|
|
@@ -8,7 +8,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
8
8
|
export const RequestTimeoutResponseErrorData$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 requestTimeoutResponseErrorDataFromJSON(jsonString) {
|
|
14
14
|
return safeParse(jsonString, (x) => RequestTimeoutResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestTimeoutResponseErrorData' from JSON`);
|
|
@@ -34,7 +34,10 @@ import { Preview20250311WebSearchServerTool, Preview20250311WebSearchServerTool$
|
|
|
34
34
|
import { PreviewWebSearchServerTool, PreviewWebSearchServerTool$Outbound } from "./previewwebsearchservertool.js";
|
|
35
35
|
import { PromptCacheOptions, PromptCacheOptions$Outbound } from "./promptcacheoptions.js";
|
|
36
36
|
import { ProviderPreferences, ProviderPreferences$Outbound } from "./providerpreferences.js";
|
|
37
|
-
import {
|
|
37
|
+
import { ReasoningContext } from "./reasoningcontext.js";
|
|
38
|
+
import { ReasoningEffort } from "./reasoningeffort.js";
|
|
39
|
+
import { ReasoningMode } from "./reasoningmode.js";
|
|
40
|
+
import { ReasoningSummaryVerbosity } from "./reasoningsummaryverbosity.js";
|
|
38
41
|
import { ResponseHealingPlugin, ResponseHealingPlugin$Outbound } from "./responsehealingplugin.js";
|
|
39
42
|
import { ResponseIncludesEnum } from "./responseincludesenum.js";
|
|
40
43
|
import { SearchModelsServerToolOpenRouter, SearchModelsServerToolOpenRouter$Outbound } from "./searchmodelsservertoolopenrouter.js";
|
|
@@ -51,6 +54,20 @@ import { WebSearchPlugin, WebSearchPlugin$Outbound } from "./websearchplugin.js"
|
|
|
51
54
|
import { WebSearchServerTool, WebSearchServerTool$Outbound } from "./websearchservertool.js";
|
|
52
55
|
import { WebSearchServerToolOpenRouter, WebSearchServerToolOpenRouter$Outbound } from "./websearchservertoolopenrouter.js";
|
|
53
56
|
export type ResponsesRequestPlugin = AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | WebSearchPlugin | WebFetchPlugin;
|
|
57
|
+
export type ReasoningConfig = {
|
|
58
|
+
/**
|
|
59
|
+
* Controls which reasoning is available to the model. `auto` uses the model default (same as omitting); `all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn only. Only supported by OpenAI GPT-5.6 and newer.
|
|
60
|
+
*/
|
|
61
|
+
context?: ReasoningContext | null | undefined;
|
|
62
|
+
effort?: ReasoningEffort | null | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer.
|
|
65
|
+
*/
|
|
66
|
+
mode?: ReasoningMode | null | undefined;
|
|
67
|
+
summary?: ReasoningSummaryVerbosity | null | undefined;
|
|
68
|
+
enabled?: boolean | null | undefined;
|
|
69
|
+
maxTokens?: number | null | undefined;
|
|
70
|
+
};
|
|
54
71
|
export declare const ResponsesRequestServiceTier: {
|
|
55
72
|
readonly Auto: "auto";
|
|
56
73
|
readonly Default: "default";
|
|
@@ -66,7 +83,7 @@ export type ResponsesRequestToolFunction = {
|
|
|
66
83
|
description?: string | null | undefined;
|
|
67
84
|
name: string;
|
|
68
85
|
parameters: {
|
|
69
|
-
[k: string]: any
|
|
86
|
+
[k: string]: any;
|
|
70
87
|
} | null;
|
|
71
88
|
strict?: boolean | null | undefined;
|
|
72
89
|
type: "function";
|
|
@@ -170,7 +187,10 @@ export type ResponsesRequest = {
|
|
|
170
187
|
*/
|
|
171
188
|
plugins?: Array<AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | WebSearchPlugin | WebFetchPlugin> | undefined;
|
|
172
189
|
presencePenalty?: number | null | undefined;
|
|
173
|
-
|
|
190
|
+
/**
|
|
191
|
+
* Not supported. The Responses API is stateless: no responses are stored, so a previous response cannot be referenced. Requests with a non-null value are rejected with a 400 error. Send the full conversation history in `input` instead.
|
|
192
|
+
*/
|
|
193
|
+
previousResponseId?: any | undefined;
|
|
174
194
|
prompt?: StoredPromptTemplate | null | undefined;
|
|
175
195
|
promptCacheKey?: string | null | undefined;
|
|
176
196
|
/**
|
|
@@ -275,13 +295,25 @@ export type ResponsesRequestPlugin$Outbound = AutoRouterPlugin$Outbound | Contex
|
|
|
275
295
|
export declare const ResponsesRequestPlugin$outboundSchema: z.ZodType<ResponsesRequestPlugin$Outbound, ResponsesRequestPlugin>;
|
|
276
296
|
export declare function responsesRequestPluginToJSON(responsesRequestPlugin: ResponsesRequestPlugin): string;
|
|
277
297
|
/** @internal */
|
|
298
|
+
export type ReasoningConfig$Outbound = {
|
|
299
|
+
context?: string | null | undefined;
|
|
300
|
+
effort?: string | null | undefined;
|
|
301
|
+
mode?: string | null | undefined;
|
|
302
|
+
summary?: string | null | undefined;
|
|
303
|
+
enabled?: boolean | null | undefined;
|
|
304
|
+
max_tokens?: number | null | undefined;
|
|
305
|
+
};
|
|
306
|
+
/** @internal */
|
|
307
|
+
export declare const ReasoningConfig$outboundSchema: z.ZodType<ReasoningConfig$Outbound, ReasoningConfig>;
|
|
308
|
+
export declare function reasoningConfigToJSON(reasoningConfig: ReasoningConfig): string;
|
|
309
|
+
/** @internal */
|
|
278
310
|
export declare const ResponsesRequestServiceTier$outboundSchema: z.ZodType<string, ResponsesRequestServiceTier>;
|
|
279
311
|
/** @internal */
|
|
280
312
|
export type ResponsesRequestToolFunction$Outbound = {
|
|
281
313
|
description?: string | null | undefined;
|
|
282
314
|
name: string;
|
|
283
315
|
parameters: {
|
|
284
|
-
[k: string]: any
|
|
316
|
+
[k: string]: any;
|
|
285
317
|
} | null;
|
|
286
318
|
strict?: boolean | null | undefined;
|
|
287
319
|
type: "function";
|
|
@@ -369,7 +401,7 @@ export type ResponsesRequest$Outbound = {
|
|
|
369
401
|
parallel_tool_calls?: boolean | null | undefined;
|
|
370
402
|
plugins?: Array<AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound> | undefined;
|
|
371
403
|
presence_penalty?: number | null | undefined;
|
|
372
|
-
previous_response_id?:
|
|
404
|
+
previous_response_id?: any | undefined;
|
|
373
405
|
prompt?: StoredPromptTemplate$Outbound | null | undefined;
|
|
374
406
|
prompt_cache_key?: string | null | undefined;
|
|
375
407
|
prompt_cache_options?: PromptCacheOptions$Outbound | null | undefined;
|