@openrouter/sdk 0.0.0-beta.7 → 0.0.0-beta.9
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 +6 -6
- package/REACT_QUERY.md +30 -25
- package/README.md +95 -56
- package/dist/commonjs/funcs/analyticsGetActivity.d.ts +2 -1
- package/dist/commonjs/funcs/analyticsGetActivity.d.ts.map +1 -1
- package/dist/commonjs/funcs/analyticsGetActivity.js +8 -3
- package/dist/commonjs/funcs/analyticsGetActivity.js.map +1 -1
- package/dist/commonjs/funcs/apiKeysDeleteKeysHash.d.ts +2 -1
- package/dist/commonjs/funcs/apiKeysDeleteKeysHash.d.ts.map +1 -1
- package/dist/commonjs/funcs/apiKeysDeleteKeysHash.js +8 -3
- package/dist/commonjs/funcs/apiKeysDeleteKeysHash.js.map +1 -1
- package/dist/commonjs/funcs/apiKeysGetAuthKey.d.ts +2 -1
- package/dist/commonjs/funcs/apiKeysGetAuthKey.d.ts.map +1 -1
- package/dist/commonjs/funcs/apiKeysGetAuthKey.js +8 -3
- package/dist/commonjs/funcs/apiKeysGetAuthKey.js.map +1 -1
- package/dist/commonjs/funcs/apiKeysGetKey.d.ts +2 -1
- package/dist/commonjs/funcs/apiKeysGetKey.d.ts.map +1 -1
- package/dist/commonjs/funcs/apiKeysGetKey.js +8 -3
- package/dist/commonjs/funcs/apiKeysGetKey.js.map +1 -1
- package/dist/commonjs/funcs/apiKeysGetKeys.d.ts +2 -1
- package/dist/commonjs/funcs/apiKeysGetKeys.d.ts.map +1 -1
- package/dist/commonjs/funcs/apiKeysGetKeys.js +8 -3
- package/dist/commonjs/funcs/apiKeysGetKeys.js.map +1 -1
- package/dist/commonjs/funcs/apiKeysGetKeysHash.d.ts +2 -1
- package/dist/commonjs/funcs/apiKeysGetKeysHash.d.ts.map +1 -1
- package/dist/commonjs/funcs/apiKeysGetKeysHash.js +8 -3
- package/dist/commonjs/funcs/apiKeysGetKeysHash.js.map +1 -1
- package/dist/commonjs/funcs/apiKeysPatchKeysHash.d.ts +2 -1
- package/dist/commonjs/funcs/apiKeysPatchKeysHash.d.ts.map +1 -1
- package/dist/commonjs/funcs/apiKeysPatchKeysHash.js +8 -3
- package/dist/commonjs/funcs/apiKeysPatchKeysHash.js.map +1 -1
- package/dist/commonjs/funcs/apiKeysPostKeys.d.ts +2 -1
- package/dist/commonjs/funcs/apiKeysPostKeys.d.ts.map +1 -1
- package/dist/commonjs/funcs/apiKeysPostKeys.js +8 -3
- package/dist/commonjs/funcs/apiKeysPostKeys.js.map +1 -1
- package/dist/commonjs/funcs/{chatGenerateResponse.d.ts → chatSend.d.ts} +6 -6
- package/dist/commonjs/funcs/chatSend.d.ts.map +1 -0
- package/dist/commonjs/funcs/{chatGenerateResponse.js → chatSend.js} +14 -13
- package/dist/commonjs/funcs/chatSend.js.map +1 -0
- package/dist/commonjs/funcs/completionsGenerate.d.ts +25 -0
- package/dist/commonjs/funcs/completionsGenerate.d.ts.map +1 -0
- package/dist/commonjs/funcs/completionsGenerate.js +128 -0
- package/dist/commonjs/funcs/completionsGenerate.js.map +1 -0
- package/dist/{esm/funcs/getCredits.d.ts → commonjs/funcs/creditsGetCredits.d.ts} +3 -2
- package/dist/commonjs/funcs/creditsGetCredits.d.ts.map +1 -0
- package/dist/commonjs/funcs/{getCredits.js → creditsGetCredits.js} +11 -6
- package/dist/commonjs/funcs/creditsGetCredits.js.map +1 -0
- package/dist/commonjs/funcs/{postCreditsCoinbase.d.ts → creditsPostCreditsCoinbase.d.ts} +3 -2
- package/dist/commonjs/funcs/creditsPostCreditsCoinbase.d.ts.map +1 -0
- package/dist/commonjs/funcs/{postCreditsCoinbase.js → creditsPostCreditsCoinbase.js} +19 -10
- package/dist/commonjs/funcs/creditsPostCreditsCoinbase.js.map +1 -0
- package/dist/{esm/funcs/embeddingsPostEmbeddings.d.ts → commonjs/funcs/embeddingsGenerate.d.ts} +3 -2
- package/dist/commonjs/funcs/embeddingsGenerate.d.ts.map +1 -0
- package/dist/commonjs/funcs/{embeddingsPostEmbeddings.js → embeddingsGenerate.js} +11 -6
- package/dist/commonjs/funcs/embeddingsGenerate.js.map +1 -0
- package/dist/commonjs/funcs/endpointsGetEndpointsZdr.d.ts +2 -1
- package/dist/commonjs/funcs/endpointsGetEndpointsZdr.d.ts.map +1 -1
- package/dist/commonjs/funcs/endpointsGetEndpointsZdr.js +8 -3
- package/dist/commonjs/funcs/endpointsGetEndpointsZdr.js.map +1 -1
- package/dist/commonjs/funcs/endpointsGetModelsAuthorSlugEndpoints.d.ts +2 -1
- package/dist/commonjs/funcs/endpointsGetModelsAuthorSlugEndpoints.d.ts.map +1 -1
- package/dist/commonjs/funcs/endpointsGetModelsAuthorSlugEndpoints.js +8 -3
- package/dist/commonjs/funcs/endpointsGetModelsAuthorSlugEndpoints.js.map +1 -1
- package/dist/commonjs/funcs/generationsGetGeneration.d.ts +2 -1
- package/dist/commonjs/funcs/generationsGetGeneration.d.ts.map +1 -1
- package/dist/commonjs/funcs/generationsGetGeneration.js +8 -3
- package/dist/commonjs/funcs/generationsGetGeneration.js.map +1 -1
- package/dist/commonjs/funcs/{parametersGetParametersAuthorSlug.d.ts → modelGetParametersAuthorSlug.d.ts} +3 -2
- package/dist/commonjs/funcs/modelGetParametersAuthorSlug.d.ts.map +1 -0
- package/dist/commonjs/funcs/{parametersGetParametersAuthorSlug.js → modelGetParametersAuthorSlug.js} +19 -10
- package/dist/commonjs/funcs/modelGetParametersAuthorSlug.js.map +1 -0
- package/dist/commonjs/funcs/modelsGetModels.d.ts +2 -1
- package/dist/commonjs/funcs/modelsGetModels.d.ts.map +1 -1
- package/dist/commonjs/funcs/modelsGetModels.js +8 -3
- package/dist/commonjs/funcs/modelsGetModels.js.map +1 -1
- package/dist/commonjs/funcs/modelsGetModelsCount.d.ts +2 -1
- package/dist/commonjs/funcs/modelsGetModelsCount.d.ts.map +1 -1
- package/dist/commonjs/funcs/modelsGetModelsCount.js +8 -3
- package/dist/commonjs/funcs/modelsGetModelsCount.js.map +1 -1
- package/dist/commonjs/funcs/modelsGetModelsUser.d.ts +2 -1
- package/dist/commonjs/funcs/modelsGetModelsUser.d.ts.map +1 -1
- package/dist/commonjs/funcs/modelsGetModelsUser.js +17 -8
- package/dist/commonjs/funcs/modelsGetModelsUser.js.map +1 -1
- package/dist/commonjs/funcs/oAuthPostAuthKeys.d.ts +18 -0
- package/dist/commonjs/funcs/oAuthPostAuthKeys.d.ts.map +1 -0
- package/dist/commonjs/funcs/oAuthPostAuthKeys.js +120 -0
- package/dist/commonjs/funcs/oAuthPostAuthKeys.js.map +1 -0
- package/dist/commonjs/funcs/oAuthPostAuthKeysCode.d.ts +18 -0
- package/dist/commonjs/funcs/oAuthPostAuthKeysCode.d.ts.map +1 -0
- package/dist/commonjs/funcs/oAuthPostAuthKeysCode.js +120 -0
- package/dist/commonjs/funcs/oAuthPostAuthKeysCode.js.map +1 -0
- package/dist/{esm/funcs/getProviders.d.ts → commonjs/funcs/providersGetProviders.d.ts} +5 -2
- package/dist/commonjs/funcs/providersGetProviders.d.ts.map +1 -0
- package/dist/commonjs/funcs/{getProviders.js → providersGetProviders.js} +9 -5
- package/dist/commonjs/funcs/providersGetProviders.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -7
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/env.d.ts +1 -2
- package/dist/commonjs/lib/env.d.ts.map +1 -1
- package/dist/commonjs/lib/env.js +1 -2
- package/dist/commonjs/lib/env.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +1 -7
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/models/chaterror.d.ts +56 -0
- package/dist/commonjs/models/chaterror.d.ts.map +1 -0
- package/dist/commonjs/models/chaterror.js +98 -0
- package/dist/commonjs/models/chaterror.js.map +1 -0
- package/dist/commonjs/models/chatgenerationparams.d.ts +108 -108
- package/dist/commonjs/models/chatgenerationparams.d.ts.map +1 -1
- package/dist/commonjs/models/chatgenerationparams.js +143 -144
- package/dist/commonjs/models/chatgenerationparams.js.map +1 -1
- package/dist/commonjs/models/chatresponse.d.ts +43 -0
- package/dist/commonjs/models/chatresponse.d.ts.map +1 -0
- package/dist/commonjs/models/{chatcompletion.js → chatresponse.js} +22 -22
- package/dist/commonjs/models/chatresponse.js.map +1 -0
- package/dist/commonjs/models/chatresponsechoice.d.ts +72 -0
- package/dist/commonjs/models/chatresponsechoice.d.ts.map +1 -0
- package/dist/commonjs/models/chatresponsechoice.js +108 -0
- package/dist/commonjs/models/chatresponsechoice.js.map +1 -0
- package/dist/commonjs/models/chatstreamingchoice.d.ts +72 -0
- package/dist/commonjs/models/chatstreamingchoice.d.ts.map +1 -0
- package/dist/commonjs/models/{chatcompletionchoice.js → chatstreamingchoice.js} +32 -32
- package/dist/commonjs/models/chatstreamingchoice.js.map +1 -0
- package/dist/commonjs/models/chatstreamingmessagechunk.d.ts +61 -0
- package/dist/commonjs/models/chatstreamingmessagechunk.d.ts.map +1 -0
- package/dist/commonjs/models/{chatcompletionchunkchoicedelta.js → chatstreamingmessagechunk.js} +20 -22
- package/dist/commonjs/models/chatstreamingmessagechunk.js.map +1 -0
- package/dist/commonjs/models/chatstreamingmessagetoolcall.d.ts +62 -0
- package/dist/commonjs/models/chatstreamingmessagetoolcall.d.ts.map +1 -0
- package/dist/commonjs/models/chatstreamingmessagetoolcall.js +106 -0
- package/dist/commonjs/models/chatstreamingmessagetoolcall.js.map +1 -0
- package/dist/commonjs/models/chatstreamingresponsechunk.d.ts +97 -0
- package/dist/commonjs/models/chatstreamingresponsechunk.d.ts.map +1 -0
- package/dist/commonjs/models/chatstreamingresponsechunk.js +162 -0
- package/dist/commonjs/models/chatstreamingresponsechunk.js.map +1 -0
- package/dist/commonjs/models/completionchoice.d.ts +37 -0
- package/dist/commonjs/models/completionchoice.d.ts.map +1 -0
- package/dist/commonjs/models/completionchoice.js +86 -0
- package/dist/commonjs/models/completionchoice.js.map +1 -0
- package/dist/commonjs/models/completioncreateparams.d.ts +327 -0
- package/dist/commonjs/models/completioncreateparams.d.ts.map +1 -0
- package/dist/commonjs/models/completioncreateparams.js +461 -0
- package/dist/commonjs/models/completioncreateparams.js.map +1 -0
- package/dist/commonjs/models/completionerror.d.ts +56 -0
- package/dist/commonjs/models/completionerror.d.ts.map +1 -0
- package/dist/commonjs/models/completionerror.js +98 -0
- package/dist/commonjs/models/completionerror.js.map +1 -0
- package/dist/commonjs/models/completionfinishreason.d.ts +31 -0
- package/dist/commonjs/models/completionfinishreason.d.ts.map +1 -0
- package/dist/commonjs/models/completionfinishreason.js +61 -0
- package/dist/commonjs/models/completionfinishreason.js.map +1 -0
- package/dist/commonjs/models/completionlogprobs.d.ts +39 -0
- package/dist/commonjs/models/completionlogprobs.d.ts.map +1 -0
- package/dist/commonjs/models/completionlogprobs.js +88 -0
- package/dist/commonjs/models/completionlogprobs.js.map +1 -0
- package/dist/commonjs/models/completionresponse.d.ts +43 -0
- package/dist/commonjs/models/completionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/completionresponse.js +92 -0
- package/dist/commonjs/models/completionresponse.js.map +1 -0
- package/dist/commonjs/models/completionstreamingchoice.d.ts +37 -0
- package/dist/commonjs/models/completionstreamingchoice.d.ts.map +1 -0
- package/dist/commonjs/models/completionstreamingchoice.js +86 -0
- package/dist/commonjs/models/completionstreamingchoice.js.map +1 -0
- package/dist/commonjs/models/completionstreamingresponsechunk.d.ts +68 -0
- package/dist/commonjs/models/completionstreamingresponsechunk.d.ts.map +1 -0
- package/dist/commonjs/models/completionstreamingresponsechunk.js +130 -0
- package/dist/commonjs/models/completionstreamingresponsechunk.js.map +1 -0
- package/dist/commonjs/models/completionusage.d.ts +33 -0
- package/dist/commonjs/models/completionusage.d.ts.map +1 -0
- package/dist/commonjs/models/{chatcompletionerror.js → completionusage.js} +36 -25
- package/dist/commonjs/models/completionusage.js.map +1 -0
- package/dist/commonjs/models/errorresponse.d.ts +8 -38
- package/dist/commonjs/models/errorresponse.d.ts.map +1 -1
- package/dist/commonjs/models/errorresponse.js +14 -51
- package/dist/commonjs/models/errorresponse.js.map +1 -1
- package/dist/commonjs/models/errors/chaterror.d.ts +37 -0
- package/dist/commonjs/models/errors/chaterror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/{chatcompletionerror.js → chaterror.js} +17 -17
- package/dist/commonjs/models/errors/chaterror.js.map +1 -0
- package/dist/commonjs/models/errors/completionerror.d.ts +37 -0
- package/dist/commonjs/models/errors/completionerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/completionerror.js +85 -0
- package/dist/commonjs/models/errors/completionerror.js.map +1 -0
- package/dist/commonjs/models/errors/errorresponse.d.ts +46 -0
- package/dist/commonjs/models/errors/errorresponse.d.ts.map +1 -0
- package/dist/commonjs/models/errors/errorresponse.js +100 -0
- package/dist/commonjs/models/errors/errorresponse.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +3 -1
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +3 -1
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +17 -9
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +17 -9
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/message.d.ts +54 -19
- package/dist/commonjs/models/message.d.ts.map +1 -1
- package/dist/commonjs/models/message.js +73 -22
- package/dist/commonjs/models/message.js.map +1 -1
- package/dist/commonjs/models/operations/deletekeyshash.d.ts +3 -25
- package/dist/commonjs/models/operations/deletekeyshash.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deletekeyshash.js +3 -33
- package/dist/commonjs/models/operations/deletekeyshash.js.map +1 -1
- package/dist/commonjs/models/operations/getactivity.d.ts +3 -24
- package/dist/commonjs/models/operations/getactivity.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getactivity.js +3 -32
- package/dist/commonjs/models/operations/getactivity.js.map +1 -1
- package/dist/commonjs/models/operations/getauthkey.d.ts +3 -25
- package/dist/commonjs/models/operations/getauthkey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getauthkey.js +3 -33
- package/dist/commonjs/models/operations/getauthkey.js.map +1 -1
- package/dist/commonjs/models/operations/getcredits.d.ts +3 -25
- package/dist/commonjs/models/operations/getcredits.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcredits.js +3 -33
- package/dist/commonjs/models/operations/getcredits.js.map +1 -1
- package/dist/commonjs/models/operations/getendpointszdr.d.ts +3 -25
- package/dist/commonjs/models/operations/getendpointszdr.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getendpointszdr.js +3 -33
- package/dist/commonjs/models/operations/getendpointszdr.js.map +1 -1
- package/dist/commonjs/models/operations/getgeneration.d.ts +3 -25
- package/dist/commonjs/models/operations/getgeneration.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getgeneration.js +3 -33
- package/dist/commonjs/models/operations/getgeneration.js.map +1 -1
- package/dist/commonjs/models/operations/getkey.d.ts +3 -25
- package/dist/commonjs/models/operations/getkey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getkey.js +3 -33
- package/dist/commonjs/models/operations/getkey.js.map +1 -1
- package/dist/commonjs/models/operations/getkeys.d.ts +3 -25
- package/dist/commonjs/models/operations/getkeys.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getkeys.js +3 -33
- package/dist/commonjs/models/operations/getkeys.js.map +1 -1
- package/dist/commonjs/models/operations/getkeyshash.d.ts +3 -25
- package/dist/commonjs/models/operations/getkeyshash.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getkeyshash.js +3 -33
- package/dist/commonjs/models/operations/getkeyshash.js.map +1 -1
- package/dist/commonjs/models/operations/getmodels.d.ts +2 -3
- package/dist/commonjs/models/operations/getmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodels.js +2 -11
- package/dist/commonjs/models/operations/getmodels.js.map +1 -1
- package/dist/commonjs/models/operations/getmodelsauthorslugendpoints.d.ts +3 -25
- package/dist/commonjs/models/operations/getmodelsauthorslugendpoints.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodelsauthorslugendpoints.js +3 -33
- package/dist/commonjs/models/operations/getmodelsauthorslugendpoints.js.map +1 -1
- package/dist/commonjs/models/operations/getmodelscount.d.ts +3 -25
- package/dist/commonjs/models/operations/getmodelscount.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodelscount.js +3 -33
- package/dist/commonjs/models/operations/getmodelscount.js.map +1 -1
- package/dist/commonjs/models/operations/getmodelsuser.d.ts +28 -25
- package/dist/commonjs/models/operations/getmodelsuser.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodelsuser.js +31 -34
- package/dist/commonjs/models/operations/getmodelsuser.js.map +1 -1
- package/dist/commonjs/models/operations/getparametersauthorslug.d.ts +28 -25
- package/dist/commonjs/models/operations/getparametersauthorslug.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getparametersauthorslug.js +30 -33
- package/dist/commonjs/models/operations/getparametersauthorslug.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/patchkeyshash.d.ts +3 -25
- package/dist/commonjs/models/operations/patchkeyshash.d.ts.map +1 -1
- package/dist/commonjs/models/operations/patchkeyshash.js +3 -33
- package/dist/commonjs/models/operations/patchkeyshash.js.map +1 -1
- package/dist/commonjs/models/operations/postauthkeys.d.ts +110 -0
- package/dist/commonjs/models/operations/postauthkeys.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postauthkeys.js +145 -0
- package/dist/commonjs/models/operations/postauthkeys.js.map +1 -0
- package/dist/commonjs/models/operations/postauthkeyscode.d.ts +145 -0
- package/dist/commonjs/models/operations/postauthkeyscode.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postauthkeyscode.js +180 -0
- package/dist/commonjs/models/operations/postauthkeyscode.js.map +1 -0
- package/dist/commonjs/models/operations/postchatcompletions.d.ts +3 -3
- package/dist/commonjs/models/operations/postchatcompletions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/postchatcompletions.js +3 -3
- package/dist/commonjs/models/operations/postchatcompletions.js.map +1 -1
- package/dist/commonjs/models/operations/postcompletions.d.ts +27 -0
- package/dist/commonjs/models/operations/postcompletions.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postcompletions.js +80 -0
- package/dist/commonjs/models/operations/postcompletions.js.map +1 -0
- package/dist/commonjs/models/operations/postcreditscoinbase.d.ts +28 -25
- package/dist/commonjs/models/operations/postcreditscoinbase.d.ts.map +1 -1
- package/dist/commonjs/models/operations/postcreditscoinbase.js +30 -33
- package/dist/commonjs/models/operations/postcreditscoinbase.js.map +1 -1
- package/dist/commonjs/models/operations/postembeddings.d.ts +3 -25
- package/dist/commonjs/models/operations/postembeddings.d.ts.map +1 -1
- package/dist/commonjs/models/operations/postembeddings.js +3 -33
- package/dist/commonjs/models/operations/postembeddings.js.map +1 -1
- package/dist/commonjs/models/operations/postkeys.d.ts +3 -25
- package/dist/commonjs/models/operations/postkeys.d.ts.map +1 -1
- package/dist/commonjs/models/operations/postkeys.js +3 -33
- package/dist/commonjs/models/operations/postkeys.js.map +1 -1
- package/dist/commonjs/models/security.d.ts +2 -4
- package/dist/commonjs/models/security.d.ts.map +1 -1
- package/dist/commonjs/models/security.js +2 -4
- package/dist/commonjs/models/security.js.map +1 -1
- package/dist/commonjs/models/toolresponsemessage.d.ts +55 -0
- package/dist/commonjs/models/toolresponsemessage.d.ts.map +1 -0
- package/dist/commonjs/models/{toolmessage.js → toolresponsemessage.js} +32 -32
- package/dist/commonjs/models/toolresponsemessage.js.map +1 -0
- package/dist/commonjs/react-query/chatSend.d.ts +28 -0
- package/dist/commonjs/react-query/chatSend.d.ts.map +1 -0
- package/dist/commonjs/react-query/chatSend.js +50 -0
- package/dist/commonjs/react-query/chatSend.js.map +1 -0
- package/dist/commonjs/react-query/completionsGenerate.d.ts +28 -0
- package/dist/commonjs/react-query/completionsGenerate.d.ts.map +1 -0
- package/dist/commonjs/react-query/completionsGenerate.js +50 -0
- package/dist/commonjs/react-query/completionsGenerate.js.map +1 -0
- package/dist/commonjs/react-query/creditsGetCredits.d.ts +23 -0
- package/dist/commonjs/react-query/creditsGetCredits.d.ts.map +1 -0
- package/dist/commonjs/react-query/creditsGetCredits.js +69 -0
- package/dist/commonjs/react-query/creditsGetCredits.js.map +1 -0
- package/dist/commonjs/react-query/creditsPostCreditsCoinbase.d.ts +21 -0
- package/dist/commonjs/react-query/creditsPostCreditsCoinbase.d.ts.map +1 -0
- package/dist/commonjs/react-query/creditsPostCreditsCoinbase.js +44 -0
- package/dist/commonjs/react-query/creditsPostCreditsCoinbase.js.map +1 -0
- package/dist/commonjs/react-query/embeddingsGenerate.d.ts +23 -0
- package/dist/commonjs/react-query/embeddingsGenerate.d.ts.map +1 -0
- package/dist/commonjs/react-query/{embeddingsPostEmbeddings.js → embeddingsGenerate.js} +13 -13
- package/dist/commonjs/react-query/embeddingsGenerate.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +9 -6
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +9 -6
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/modelGetParametersAuthorSlug.d.ts +38 -0
- package/dist/commonjs/react-query/modelGetParametersAuthorSlug.d.ts.map +1 -0
- package/dist/commonjs/react-query/modelGetParametersAuthorSlug.js +88 -0
- package/dist/commonjs/react-query/modelGetParametersAuthorSlug.js.map +1 -0
- package/dist/commonjs/react-query/modelsGetModelsUser.d.ts +4 -4
- package/dist/commonjs/react-query/modelsGetModelsUser.d.ts.map +1 -1
- package/dist/commonjs/react-query/modelsGetModelsUser.js +8 -8
- package/dist/commonjs/react-query/modelsGetModelsUser.js.map +1 -1
- package/dist/commonjs/react-query/oAuthPostAuthKeys.d.ts +23 -0
- package/dist/commonjs/react-query/oAuthPostAuthKeys.d.ts.map +1 -0
- package/dist/commonjs/react-query/oAuthPostAuthKeys.js +47 -0
- package/dist/commonjs/react-query/oAuthPostAuthKeys.js.map +1 -0
- package/dist/commonjs/react-query/oAuthPostAuthKeysCode.d.ts +23 -0
- package/dist/commonjs/react-query/oAuthPostAuthKeysCode.d.ts.map +1 -0
- package/dist/commonjs/react-query/oAuthPostAuthKeysCode.js +47 -0
- package/dist/commonjs/react-query/oAuthPostAuthKeysCode.js.map +1 -0
- package/dist/commonjs/react-query/providersGetProviders.d.ts +23 -0
- package/dist/commonjs/react-query/providersGetProviders.d.ts.map +1 -0
- package/dist/commonjs/react-query/providersGetProviders.js +69 -0
- package/dist/commonjs/react-query/providersGetProviders.js.map +1 -0
- package/dist/commonjs/sdk/chat.d.ts +5 -5
- package/dist/commonjs/sdk/chat.d.ts.map +1 -1
- package/dist/commonjs/sdk/chat.js +7 -7
- package/dist/commonjs/sdk/chat.js.map +1 -1
- package/dist/commonjs/sdk/completions.d.ts +17 -0
- package/dist/commonjs/sdk/completions.d.ts.map +1 -0
- package/dist/commonjs/sdk/completions.js +24 -0
- package/dist/commonjs/sdk/completions.js.map +1 -0
- package/dist/commonjs/sdk/credits.d.ts +13 -0
- package/dist/commonjs/sdk/credits.d.ts.map +1 -0
- package/dist/commonjs/sdk/credits.js +26 -0
- package/dist/commonjs/sdk/credits.js.map +1 -0
- package/dist/commonjs/sdk/embeddings.d.ts +1 -1
- package/dist/commonjs/sdk/embeddings.d.ts.map +1 -1
- package/dist/commonjs/sdk/embeddings.js +3 -3
- package/dist/commonjs/sdk/embeddings.js.map +1 -1
- package/dist/commonjs/sdk/model.d.ts +9 -0
- package/dist/commonjs/sdk/model.d.ts.map +1 -0
- package/dist/commonjs/sdk/model.js +19 -0
- package/dist/commonjs/sdk/model.js.map +1 -0
- 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 +2 -2
- package/dist/commonjs/sdk/models.js.map +1 -1
- package/dist/commonjs/sdk/oauth.d.ts +19 -0
- package/dist/commonjs/sdk/oauth.d.ts.map +1 -0
- package/dist/commonjs/sdk/oauth.js +32 -0
- package/dist/commonjs/sdk/oauth.js.map +1 -0
- package/dist/commonjs/sdk/providers.d.ts +9 -0
- package/dist/commonjs/sdk/providers.d.ts.map +1 -0
- package/dist/commonjs/sdk/providers.js +19 -0
- package/dist/commonjs/sdk/providers.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +16 -14
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +18 -21
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/analyticsGetActivity.d.ts +2 -1
- package/dist/esm/funcs/analyticsGetActivity.d.ts.map +1 -1
- package/dist/esm/funcs/analyticsGetActivity.js +8 -3
- package/dist/esm/funcs/analyticsGetActivity.js.map +1 -1
- package/dist/esm/funcs/apiKeysDeleteKeysHash.d.ts +2 -1
- package/dist/esm/funcs/apiKeysDeleteKeysHash.d.ts.map +1 -1
- package/dist/esm/funcs/apiKeysDeleteKeysHash.js +8 -3
- package/dist/esm/funcs/apiKeysDeleteKeysHash.js.map +1 -1
- package/dist/esm/funcs/apiKeysGetAuthKey.d.ts +2 -1
- package/dist/esm/funcs/apiKeysGetAuthKey.d.ts.map +1 -1
- package/dist/esm/funcs/apiKeysGetAuthKey.js +8 -3
- package/dist/esm/funcs/apiKeysGetAuthKey.js.map +1 -1
- package/dist/esm/funcs/apiKeysGetKey.d.ts +2 -1
- package/dist/esm/funcs/apiKeysGetKey.d.ts.map +1 -1
- package/dist/esm/funcs/apiKeysGetKey.js +8 -3
- package/dist/esm/funcs/apiKeysGetKey.js.map +1 -1
- package/dist/esm/funcs/apiKeysGetKeys.d.ts +2 -1
- package/dist/esm/funcs/apiKeysGetKeys.d.ts.map +1 -1
- package/dist/esm/funcs/apiKeysGetKeys.js +8 -3
- package/dist/esm/funcs/apiKeysGetKeys.js.map +1 -1
- package/dist/esm/funcs/apiKeysGetKeysHash.d.ts +2 -1
- package/dist/esm/funcs/apiKeysGetKeysHash.d.ts.map +1 -1
- package/dist/esm/funcs/apiKeysGetKeysHash.js +8 -3
- package/dist/esm/funcs/apiKeysGetKeysHash.js.map +1 -1
- package/dist/esm/funcs/apiKeysPatchKeysHash.d.ts +2 -1
- package/dist/esm/funcs/apiKeysPatchKeysHash.d.ts.map +1 -1
- package/dist/esm/funcs/apiKeysPatchKeysHash.js +8 -3
- package/dist/esm/funcs/apiKeysPatchKeysHash.js.map +1 -1
- package/dist/esm/funcs/apiKeysPostKeys.d.ts +2 -1
- package/dist/esm/funcs/apiKeysPostKeys.d.ts.map +1 -1
- package/dist/esm/funcs/apiKeysPostKeys.js +8 -3
- package/dist/esm/funcs/apiKeysPostKeys.js.map +1 -1
- package/dist/esm/funcs/{chatGenerateResponse.d.ts → chatSend.d.ts} +6 -6
- package/dist/esm/funcs/chatSend.d.ts.map +1 -0
- package/dist/esm/funcs/{chatGenerateResponse.js → chatSend.js} +12 -11
- package/dist/esm/funcs/chatSend.js.map +1 -0
- package/dist/esm/funcs/completionsGenerate.d.ts +25 -0
- package/dist/esm/funcs/completionsGenerate.d.ts.map +1 -0
- package/dist/esm/funcs/completionsGenerate.js +91 -0
- package/dist/esm/funcs/completionsGenerate.js.map +1 -0
- package/dist/{commonjs/funcs/getCredits.d.ts → esm/funcs/creditsGetCredits.d.ts} +3 -2
- package/dist/esm/funcs/creditsGetCredits.d.ts.map +1 -0
- package/dist/esm/funcs/{getCredits.js → creditsGetCredits.js} +10 -5
- package/dist/esm/funcs/creditsGetCredits.js.map +1 -0
- package/dist/esm/funcs/{postCreditsCoinbase.d.ts → creditsPostCreditsCoinbase.d.ts} +3 -2
- package/dist/esm/funcs/creditsPostCreditsCoinbase.d.ts.map +1 -0
- package/dist/esm/funcs/{postCreditsCoinbase.js → creditsPostCreditsCoinbase.js} +19 -10
- package/dist/esm/funcs/creditsPostCreditsCoinbase.js.map +1 -0
- package/dist/{commonjs/funcs/embeddingsPostEmbeddings.d.ts → esm/funcs/embeddingsGenerate.d.ts} +3 -2
- package/dist/esm/funcs/embeddingsGenerate.d.ts.map +1 -0
- package/dist/esm/funcs/{embeddingsPostEmbeddings.js → embeddingsGenerate.js} +10 -5
- package/dist/esm/funcs/embeddingsGenerate.js.map +1 -0
- package/dist/esm/funcs/endpointsGetEndpointsZdr.d.ts +2 -1
- package/dist/esm/funcs/endpointsGetEndpointsZdr.d.ts.map +1 -1
- package/dist/esm/funcs/endpointsGetEndpointsZdr.js +8 -3
- package/dist/esm/funcs/endpointsGetEndpointsZdr.js.map +1 -1
- package/dist/esm/funcs/endpointsGetModelsAuthorSlugEndpoints.d.ts +2 -1
- package/dist/esm/funcs/endpointsGetModelsAuthorSlugEndpoints.d.ts.map +1 -1
- package/dist/esm/funcs/endpointsGetModelsAuthorSlugEndpoints.js +8 -3
- package/dist/esm/funcs/endpointsGetModelsAuthorSlugEndpoints.js.map +1 -1
- package/dist/esm/funcs/generationsGetGeneration.d.ts +2 -1
- package/dist/esm/funcs/generationsGetGeneration.d.ts.map +1 -1
- package/dist/esm/funcs/generationsGetGeneration.js +8 -3
- package/dist/esm/funcs/generationsGetGeneration.js.map +1 -1
- package/dist/esm/funcs/{parametersGetParametersAuthorSlug.d.ts → modelGetParametersAuthorSlug.d.ts} +3 -2
- package/dist/esm/funcs/modelGetParametersAuthorSlug.d.ts.map +1 -0
- package/dist/esm/funcs/{parametersGetParametersAuthorSlug.js → modelGetParametersAuthorSlug.js} +19 -10
- package/dist/esm/funcs/modelGetParametersAuthorSlug.js.map +1 -0
- package/dist/esm/funcs/modelsGetModels.d.ts +2 -1
- package/dist/esm/funcs/modelsGetModels.d.ts.map +1 -1
- package/dist/esm/funcs/modelsGetModels.js +8 -3
- package/dist/esm/funcs/modelsGetModels.js.map +1 -1
- package/dist/esm/funcs/modelsGetModelsCount.d.ts +2 -1
- package/dist/esm/funcs/modelsGetModelsCount.d.ts.map +1 -1
- package/dist/esm/funcs/modelsGetModelsCount.js +8 -3
- package/dist/esm/funcs/modelsGetModelsCount.js.map +1 -1
- package/dist/esm/funcs/modelsGetModelsUser.d.ts +2 -1
- package/dist/esm/funcs/modelsGetModelsUser.d.ts.map +1 -1
- package/dist/esm/funcs/modelsGetModelsUser.js +18 -9
- package/dist/esm/funcs/modelsGetModelsUser.js.map +1 -1
- package/dist/esm/funcs/oAuthPostAuthKeys.d.ts +18 -0
- package/dist/esm/funcs/oAuthPostAuthKeys.d.ts.map +1 -0
- package/dist/esm/funcs/oAuthPostAuthKeys.js +84 -0
- package/dist/esm/funcs/oAuthPostAuthKeys.js.map +1 -0
- package/dist/esm/funcs/oAuthPostAuthKeysCode.d.ts +18 -0
- package/dist/esm/funcs/oAuthPostAuthKeysCode.d.ts.map +1 -0
- package/dist/esm/funcs/oAuthPostAuthKeysCode.js +84 -0
- package/dist/esm/funcs/oAuthPostAuthKeysCode.js.map +1 -0
- package/dist/{commonjs/funcs/getProviders.d.ts → esm/funcs/providersGetProviders.d.ts} +5 -2
- package/dist/esm/funcs/providersGetProviders.d.ts.map +1 -0
- package/dist/esm/funcs/{getProviders.js → providersGetProviders.js} +8 -4
- package/dist/esm/funcs/providersGetProviders.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -7
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/env.d.ts +1 -2
- package/dist/esm/lib/env.d.ts.map +1 -1
- package/dist/esm/lib/env.js +1 -2
- package/dist/esm/lib/env.js.map +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +1 -7
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/models/chaterror.d.ts +56 -0
- package/dist/esm/models/chaterror.d.ts.map +1 -0
- package/dist/esm/models/chaterror.js +58 -0
- package/dist/esm/models/chaterror.js.map +1 -0
- package/dist/esm/models/chatgenerationparams.d.ts +108 -108
- package/dist/esm/models/chatgenerationparams.d.ts.map +1 -1
- package/dist/esm/models/chatgenerationparams.js +126 -127
- package/dist/esm/models/chatgenerationparams.js.map +1 -1
- package/dist/esm/models/chatresponse.d.ts +43 -0
- package/dist/esm/models/chatresponse.d.ts.map +1 -0
- package/dist/esm/models/chatresponse.js +54 -0
- package/dist/esm/models/chatresponse.js.map +1 -0
- package/dist/esm/models/chatresponsechoice.d.ts +72 -0
- package/dist/esm/models/chatresponsechoice.d.ts.map +1 -0
- package/dist/esm/models/chatresponsechoice.js +70 -0
- package/dist/esm/models/chatresponsechoice.js.map +1 -0
- package/dist/esm/models/chatstreamingchoice.d.ts +72 -0
- package/dist/esm/models/chatstreamingchoice.d.ts.map +1 -0
- package/dist/esm/models/chatstreamingchoice.js +70 -0
- package/dist/esm/models/chatstreamingchoice.js.map +1 -0
- package/dist/esm/models/chatstreamingmessagechunk.d.ts +61 -0
- package/dist/esm/models/chatstreamingmessagechunk.d.ts.map +1 -0
- package/dist/esm/models/{chatcompletionchunkchoicedelta.js → chatstreamingmessagechunk.js} +17 -19
- package/dist/esm/models/chatstreamingmessagechunk.js.map +1 -0
- package/dist/esm/models/chatstreamingmessagetoolcall.d.ts +62 -0
- package/dist/esm/models/chatstreamingmessagetoolcall.d.ts.map +1 -0
- package/dist/esm/models/chatstreamingmessagetoolcall.js +66 -0
- package/dist/esm/models/chatstreamingmessagetoolcall.js.map +1 -0
- package/dist/esm/models/chatstreamingresponsechunk.d.ts +97 -0
- package/dist/esm/models/chatstreamingresponsechunk.d.ts.map +1 -0
- package/dist/esm/models/chatstreamingresponsechunk.js +120 -0
- package/dist/esm/models/chatstreamingresponsechunk.js.map +1 -0
- package/dist/esm/models/completionchoice.d.ts +37 -0
- package/dist/esm/models/completionchoice.d.ts.map +1 -0
- package/dist/esm/models/completionchoice.js +48 -0
- package/dist/esm/models/completionchoice.js.map +1 -0
- package/dist/esm/models/completioncreateparams.d.ts +327 -0
- package/dist/esm/models/completioncreateparams.d.ts.map +1 -0
- package/dist/esm/models/completioncreateparams.js +403 -0
- package/dist/esm/models/completioncreateparams.js.map +1 -0
- package/dist/esm/models/completionerror.d.ts +56 -0
- package/dist/esm/models/completionerror.d.ts.map +1 -0
- package/dist/esm/models/completionerror.js +58 -0
- package/dist/esm/models/completionerror.js.map +1 -0
- package/dist/esm/models/completionfinishreason.d.ts +31 -0
- package/dist/esm/models/completionfinishreason.d.ts.map +1 -0
- package/dist/esm/models/completionfinishreason.js +25 -0
- package/dist/esm/models/completionfinishreason.js.map +1 -0
- package/dist/esm/models/completionlogprobs.d.ts +39 -0
- package/dist/esm/models/completionlogprobs.d.ts.map +1 -0
- package/dist/esm/models/completionlogprobs.js +50 -0
- package/dist/esm/models/completionlogprobs.js.map +1 -0
- package/dist/esm/models/completionresponse.d.ts +43 -0
- package/dist/esm/models/completionresponse.d.ts.map +1 -0
- package/dist/esm/models/completionresponse.js +54 -0
- package/dist/esm/models/completionresponse.js.map +1 -0
- package/dist/esm/models/completionstreamingchoice.d.ts +37 -0
- package/dist/esm/models/completionstreamingchoice.d.ts.map +1 -0
- package/dist/esm/models/completionstreamingchoice.js +48 -0
- package/dist/esm/models/completionstreamingchoice.js.map +1 -0
- package/dist/esm/models/completionstreamingresponsechunk.d.ts +68 -0
- package/dist/esm/models/completionstreamingresponsechunk.d.ts.map +1 -0
- package/dist/esm/models/completionstreamingresponsechunk.js +90 -0
- package/dist/esm/models/completionstreamingresponsechunk.js.map +1 -0
- package/dist/esm/models/completionusage.d.ts +33 -0
- package/dist/esm/models/completionusage.d.ts.map +1 -0
- package/dist/esm/models/completionusage.js +48 -0
- package/dist/esm/models/completionusage.js.map +1 -0
- package/dist/esm/models/errorresponse.d.ts +8 -38
- package/dist/esm/models/errorresponse.d.ts.map +1 -1
- package/dist/esm/models/errorresponse.js +13 -48
- package/dist/esm/models/errorresponse.js.map +1 -1
- package/dist/esm/models/errors/chaterror.d.ts +37 -0
- package/dist/esm/models/errors/chaterror.d.ts.map +1 -0
- package/dist/esm/models/errors/chaterror.js +48 -0
- package/dist/esm/models/errors/chaterror.js.map +1 -0
- package/dist/esm/models/errors/completionerror.d.ts +37 -0
- package/dist/esm/models/errors/completionerror.d.ts.map +1 -0
- package/dist/esm/models/errors/completionerror.js +48 -0
- package/dist/esm/models/errors/completionerror.js.map +1 -0
- package/dist/esm/models/errors/errorresponse.d.ts +46 -0
- package/dist/esm/models/errors/errorresponse.d.ts.map +1 -0
- package/dist/esm/models/errors/errorresponse.js +63 -0
- package/dist/esm/models/errors/errorresponse.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +3 -1
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +3 -1
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +17 -9
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +17 -9
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/message.d.ts +54 -19
- package/dist/esm/models/message.d.ts.map +1 -1
- package/dist/esm/models/message.js +68 -21
- package/dist/esm/models/message.js.map +1 -1
- package/dist/esm/models/operations/deletekeyshash.d.ts +3 -25
- package/dist/esm/models/operations/deletekeyshash.d.ts.map +1 -1
- package/dist/esm/models/operations/deletekeyshash.js +2 -30
- package/dist/esm/models/operations/deletekeyshash.js.map +1 -1
- package/dist/esm/models/operations/getactivity.d.ts +3 -24
- package/dist/esm/models/operations/getactivity.d.ts.map +1 -1
- package/dist/esm/models/operations/getactivity.js +2 -29
- package/dist/esm/models/operations/getactivity.js.map +1 -1
- package/dist/esm/models/operations/getauthkey.d.ts +3 -25
- package/dist/esm/models/operations/getauthkey.d.ts.map +1 -1
- package/dist/esm/models/operations/getauthkey.js +2 -30
- package/dist/esm/models/operations/getauthkey.js.map +1 -1
- package/dist/esm/models/operations/getcredits.d.ts +3 -25
- package/dist/esm/models/operations/getcredits.d.ts.map +1 -1
- package/dist/esm/models/operations/getcredits.js +2 -30
- package/dist/esm/models/operations/getcredits.js.map +1 -1
- package/dist/esm/models/operations/getendpointszdr.d.ts +3 -25
- package/dist/esm/models/operations/getendpointszdr.d.ts.map +1 -1
- package/dist/esm/models/operations/getendpointszdr.js +2 -30
- package/dist/esm/models/operations/getendpointszdr.js.map +1 -1
- package/dist/esm/models/operations/getgeneration.d.ts +3 -25
- package/dist/esm/models/operations/getgeneration.d.ts.map +1 -1
- package/dist/esm/models/operations/getgeneration.js +2 -30
- package/dist/esm/models/operations/getgeneration.js.map +1 -1
- package/dist/esm/models/operations/getkey.d.ts +3 -25
- package/dist/esm/models/operations/getkey.d.ts.map +1 -1
- package/dist/esm/models/operations/getkey.js +2 -30
- package/dist/esm/models/operations/getkey.js.map +1 -1
- package/dist/esm/models/operations/getkeys.d.ts +3 -25
- package/dist/esm/models/operations/getkeys.d.ts.map +1 -1
- package/dist/esm/models/operations/getkeys.js +2 -30
- package/dist/esm/models/operations/getkeys.js.map +1 -1
- package/dist/esm/models/operations/getkeyshash.d.ts +3 -25
- package/dist/esm/models/operations/getkeyshash.d.ts.map +1 -1
- package/dist/esm/models/operations/getkeyshash.js +2 -30
- package/dist/esm/models/operations/getkeyshash.js.map +1 -1
- package/dist/esm/models/operations/getmodels.d.ts +2 -3
- package/dist/esm/models/operations/getmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodels.js +2 -11
- package/dist/esm/models/operations/getmodels.js.map +1 -1
- package/dist/esm/models/operations/getmodelsauthorslugendpoints.d.ts +3 -25
- package/dist/esm/models/operations/getmodelsauthorslugendpoints.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodelsauthorslugendpoints.js +2 -30
- package/dist/esm/models/operations/getmodelsauthorslugendpoints.js.map +1 -1
- package/dist/esm/models/operations/getmodelscount.d.ts +3 -25
- package/dist/esm/models/operations/getmodelscount.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodelscount.js +2 -30
- package/dist/esm/models/operations/getmodelscount.js.map +1 -1
- package/dist/esm/models/operations/getmodelsuser.d.ts +28 -25
- package/dist/esm/models/operations/getmodelsuser.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodelsuser.js +27 -30
- package/dist/esm/models/operations/getmodelsuser.js.map +1 -1
- package/dist/esm/models/operations/getparametersauthorslug.d.ts +28 -25
- package/dist/esm/models/operations/getparametersauthorslug.d.ts.map +1 -1
- package/dist/esm/models/operations/getparametersauthorslug.js +27 -30
- package/dist/esm/models/operations/getparametersauthorslug.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/patchkeyshash.d.ts +3 -25
- package/dist/esm/models/operations/patchkeyshash.d.ts.map +1 -1
- package/dist/esm/models/operations/patchkeyshash.js +2 -30
- package/dist/esm/models/operations/patchkeyshash.js.map +1 -1
- package/dist/esm/models/operations/postauthkeys.d.ts +110 -0
- package/dist/esm/models/operations/postauthkeys.d.ts.map +1 -0
- package/dist/esm/models/operations/postauthkeys.js +105 -0
- package/dist/esm/models/operations/postauthkeys.js.map +1 -0
- package/dist/esm/models/operations/postauthkeyscode.d.ts +145 -0
- package/dist/esm/models/operations/postauthkeyscode.d.ts.map +1 -0
- package/dist/esm/models/operations/postauthkeyscode.js +138 -0
- package/dist/esm/models/operations/postauthkeyscode.js.map +1 -0
- package/dist/esm/models/operations/postchatcompletions.d.ts +3 -3
- package/dist/esm/models/operations/postchatcompletions.d.ts.map +1 -1
- package/dist/esm/models/operations/postchatcompletions.js +3 -3
- package/dist/esm/models/operations/postchatcompletions.js.map +1 -1
- package/dist/esm/models/operations/postcompletions.d.ts +27 -0
- package/dist/esm/models/operations/postcompletions.d.ts.map +1 -0
- package/dist/esm/models/operations/postcompletions.js +42 -0
- package/dist/esm/models/operations/postcompletions.js.map +1 -0
- package/dist/esm/models/operations/postcreditscoinbase.d.ts +28 -25
- package/dist/esm/models/operations/postcreditscoinbase.d.ts.map +1 -1
- package/dist/esm/models/operations/postcreditscoinbase.js +27 -30
- package/dist/esm/models/operations/postcreditscoinbase.js.map +1 -1
- package/dist/esm/models/operations/postembeddings.d.ts +3 -25
- package/dist/esm/models/operations/postembeddings.d.ts.map +1 -1
- package/dist/esm/models/operations/postembeddings.js +2 -30
- package/dist/esm/models/operations/postembeddings.js.map +1 -1
- package/dist/esm/models/operations/postkeys.d.ts +3 -25
- package/dist/esm/models/operations/postkeys.d.ts.map +1 -1
- package/dist/esm/models/operations/postkeys.js +2 -30
- package/dist/esm/models/operations/postkeys.js.map +1 -1
- package/dist/esm/models/security.d.ts +2 -4
- package/dist/esm/models/security.d.ts.map +1 -1
- package/dist/esm/models/security.js +2 -4
- package/dist/esm/models/security.js.map +1 -1
- package/dist/esm/models/toolresponsemessage.d.ts +55 -0
- package/dist/esm/models/toolresponsemessage.d.ts.map +1 -0
- package/dist/esm/models/toolresponsemessage.js +69 -0
- package/dist/esm/models/toolresponsemessage.js.map +1 -0
- package/dist/esm/react-query/chatSend.d.ts +28 -0
- package/dist/esm/react-query/chatSend.d.ts.map +1 -0
- package/dist/esm/react-query/chatSend.js +43 -0
- package/dist/esm/react-query/chatSend.js.map +1 -0
- package/dist/esm/react-query/completionsGenerate.d.ts +28 -0
- package/dist/esm/react-query/completionsGenerate.d.ts.map +1 -0
- package/dist/esm/react-query/completionsGenerate.js +43 -0
- package/dist/esm/react-query/completionsGenerate.js.map +1 -0
- package/dist/esm/react-query/creditsGetCredits.d.ts +23 -0
- package/dist/esm/react-query/creditsGetCredits.d.ts.map +1 -0
- package/dist/esm/react-query/{getCredits.js → creditsGetCredits.js} +18 -18
- package/dist/esm/react-query/creditsGetCredits.js.map +1 -0
- package/dist/esm/react-query/creditsPostCreditsCoinbase.d.ts +21 -0
- package/dist/esm/react-query/creditsPostCreditsCoinbase.d.ts.map +1 -0
- package/dist/esm/react-query/{postCreditsCoinbase.js → creditsPostCreditsCoinbase.js} +10 -10
- package/dist/esm/react-query/creditsPostCreditsCoinbase.js.map +1 -0
- package/dist/esm/react-query/embeddingsGenerate.d.ts +23 -0
- package/dist/esm/react-query/embeddingsGenerate.d.ts.map +1 -0
- package/dist/esm/react-query/{embeddingsPostEmbeddings.js → embeddingsGenerate.js} +10 -10
- package/dist/esm/react-query/embeddingsGenerate.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +9 -6
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +9 -6
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/modelGetParametersAuthorSlug.d.ts +38 -0
- package/dist/esm/react-query/modelGetParametersAuthorSlug.d.ts.map +1 -0
- package/dist/esm/react-query/modelGetParametersAuthorSlug.js +78 -0
- package/dist/esm/react-query/modelGetParametersAuthorSlug.js.map +1 -0
- package/dist/esm/react-query/modelsGetModelsUser.d.ts +4 -4
- package/dist/esm/react-query/modelsGetModelsUser.d.ts.map +1 -1
- package/dist/esm/react-query/modelsGetModelsUser.js +8 -8
- package/dist/esm/react-query/modelsGetModelsUser.js.map +1 -1
- package/dist/esm/react-query/oAuthPostAuthKeys.d.ts +23 -0
- package/dist/esm/react-query/oAuthPostAuthKeys.d.ts.map +1 -0
- package/dist/esm/react-query/oAuthPostAuthKeys.js +42 -0
- package/dist/esm/react-query/oAuthPostAuthKeys.js.map +1 -0
- package/dist/esm/react-query/oAuthPostAuthKeysCode.d.ts +23 -0
- package/dist/esm/react-query/oAuthPostAuthKeysCode.d.ts.map +1 -0
- package/dist/esm/react-query/oAuthPostAuthKeysCode.js +42 -0
- package/dist/esm/react-query/oAuthPostAuthKeysCode.js.map +1 -0
- package/dist/esm/react-query/providersGetProviders.d.ts +23 -0
- package/dist/esm/react-query/providersGetProviders.d.ts.map +1 -0
- package/dist/esm/react-query/providersGetProviders.js +60 -0
- package/dist/esm/react-query/providersGetProviders.js.map +1 -0
- package/dist/esm/sdk/chat.d.ts +5 -5
- package/dist/esm/sdk/chat.d.ts.map +1 -1
- package/dist/esm/sdk/chat.js +5 -5
- package/dist/esm/sdk/chat.js.map +1 -1
- package/dist/esm/sdk/completions.d.ts +17 -0
- package/dist/esm/sdk/completions.d.ts.map +1 -0
- package/dist/esm/sdk/completions.js +19 -0
- package/dist/esm/sdk/completions.js.map +1 -0
- package/dist/esm/sdk/credits.d.ts +13 -0
- package/dist/esm/sdk/credits.d.ts.map +1 -0
- package/dist/esm/sdk/credits.js +22 -0
- package/dist/esm/sdk/credits.js.map +1 -0
- package/dist/esm/sdk/embeddings.d.ts +1 -1
- package/dist/esm/sdk/embeddings.d.ts.map +1 -1
- package/dist/esm/sdk/embeddings.js +3 -3
- package/dist/esm/sdk/embeddings.js.map +1 -1
- package/dist/esm/sdk/model.d.ts +9 -0
- package/dist/esm/sdk/model.d.ts.map +1 -0
- package/dist/esm/sdk/model.js +15 -0
- package/dist/esm/sdk/model.js.map +1 -0
- 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 +2 -2
- package/dist/esm/sdk/models.js.map +1 -1
- package/dist/esm/sdk/oauth.d.ts +19 -0
- package/dist/esm/sdk/oauth.d.ts.map +1 -0
- package/dist/esm/sdk/oauth.js +28 -0
- package/dist/esm/sdk/oauth.js.map +1 -0
- package/dist/esm/sdk/providers.d.ts +9 -0
- package/dist/esm/sdk/providers.d.ts.map +1 -0
- package/dist/esm/sdk/providers.js +15 -0
- package/dist/esm/sdk/providers.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +16 -14
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +18 -21
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/docs/sdks/analytics/README.md +6 -9
- package/docs/sdks/apikeys/README.md +42 -63
- package/docs/sdks/chat/README.md +13 -17
- package/docs/sdks/completions/README.md +96 -0
- package/docs/sdks/credits/README.md +193 -0
- package/docs/sdks/embeddings/README.md +14 -17
- package/docs/sdks/endpoints/README.md +12 -18
- package/docs/sdks/generations/README.md +6 -9
- package/docs/sdks/{parameters → model}/README.md +23 -25
- package/docs/sdks/models/README.md +25 -33
- package/docs/sdks/oauth/README.md +201 -0
- package/docs/sdks/openrouter/README.md +1 -292
- package/docs/sdks/providers/README.md +104 -0
- package/examples/{getCredits.example.ts → analyticsGetActivity.example.ts} +5 -5
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/analyticsGetActivity.ts +14 -6
- package/src/funcs/apiKeysDeleteKeysHash.ts +14 -6
- package/src/funcs/apiKeysGetAuthKey.ts +14 -6
- package/src/funcs/apiKeysGetKey.ts +14 -6
- package/src/funcs/apiKeysGetKeys.ts +14 -6
- package/src/funcs/apiKeysGetKeysHash.ts +14 -6
- package/src/funcs/apiKeysPatchKeysHash.ts +14 -6
- package/src/funcs/apiKeysPostKeys.ts +14 -6
- package/src/funcs/{chatGenerateResponse.ts → chatSend.ts} +13 -16
- package/src/funcs/completionsGenerate.ts +181 -0
- package/src/funcs/{getCredits.ts → creditsGetCredits.ts} +14 -6
- package/src/funcs/{postCreditsCoinbase.ts → creditsPostCreditsCoinbase.ts} +27 -10
- package/src/funcs/{embeddingsPostEmbeddings.ts → embeddingsGenerate.ts} +15 -7
- package/src/funcs/endpointsGetEndpointsZdr.ts +14 -6
- package/src/funcs/endpointsGetModelsAuthorSlugEndpoints.ts +14 -9
- package/src/funcs/generationsGetGeneration.ts +14 -6
- package/src/funcs/{parametersGetParametersAuthorSlug.ts → modelGetParametersAuthorSlug.ts} +27 -10
- package/src/funcs/modelsGetModels.ts +14 -6
- package/src/funcs/modelsGetModelsCount.ts +14 -6
- package/src/funcs/modelsGetModelsUser.ts +26 -9
- package/src/funcs/oAuthPostAuthKeys.ts +171 -0
- package/src/funcs/oAuthPostAuthKeysCode.ts +171 -0
- package/src/funcs/{getProviders.ts → providersGetProviders.ts} +7 -3
- package/src/lib/config.ts +3 -7
- package/src/lib/env.ts +2 -4
- package/src/lib/security.ts +1 -8
- package/src/models/chaterror.ts +120 -0
- package/src/models/chatgenerationparams.ts +335 -249
- package/src/models/{chatcompletion.ts → chatresponse.ts} +34 -34
- package/src/models/chatresponsechoice.ts +132 -0
- package/src/models/chatstreamingchoice.ts +132 -0
- package/src/models/{chatcompletionchunkchoicedelta.ts → chatstreamingmessagechunk.ts} +30 -36
- package/src/models/chatstreamingmessagetoolcall.ts +149 -0
- package/src/models/chatstreamingresponsechunk.ts +250 -0
- package/src/models/completionchoice.ts +98 -0
- package/src/models/completioncreateparams.ts +912 -0
- package/src/models/completionerror.ts +128 -0
- package/src/models/completionfinishreason.ts +34 -0
- package/src/models/completionlogprobs.ts +91 -0
- package/src/models/completionresponse.ts +111 -0
- package/src/models/completionstreamingchoice.ts +98 -0
- package/src/models/completionstreamingresponsechunk.ts +186 -0
- package/src/models/completionusage.ts +85 -0
- package/src/models/errorresponse.ts +14 -85
- package/src/models/errors/chaterror.ts +79 -0
- package/src/models/errors/completionerror.ts +79 -0
- package/src/models/errors/errorresponse.ts +102 -0
- package/src/models/errors/index.ts +3 -1
- package/src/models/index.ts +17 -9
- package/src/models/message.ts +151 -49
- package/src/models/operations/deletekeyshash.ts +7 -68
- package/src/models/operations/getactivity.ts +7 -67
- package/src/models/operations/getauthkey.ts +7 -66
- package/src/models/operations/getcredits.ts +7 -66
- package/src/models/operations/getendpointszdr.ts +7 -70
- package/src/models/operations/getgeneration.ts +7 -68
- package/src/models/operations/getkey.ts +7 -66
- package/src/models/operations/getkeys.ts +7 -66
- package/src/models/operations/getkeyshash.ts +7 -68
- package/src/models/operations/getmodels.ts +3 -16
- package/src/models/operations/getmodelsauthorslugendpoints.ts +7 -79
- package/src/models/operations/getmodelscount.ts +7 -68
- package/src/models/operations/getmodelsuser.ts +64 -67
- package/src/models/operations/getparametersauthorslug.ts +66 -72
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/patchkeyshash.ts +7 -68
- package/src/models/operations/postauthkeys.ts +211 -0
- package/src/models/operations/postauthkeyscode.ts +289 -0
- package/src/models/operations/postchatcompletions.ts +8 -6
- package/src/models/operations/postcompletions.ts +78 -0
- package/src/models/operations/postcreditscoinbase.ts +66 -69
- package/src/models/operations/postembeddings.ts +7 -68
- package/src/models/operations/postkeys.ts +7 -66
- package/src/models/security.ts +4 -8
- package/src/models/toolresponsemessage.ts +144 -0
- package/src/react-query/{chatGenerateResponse.ts → chatSend.ts} +20 -30
- package/src/react-query/completionsGenerate.ts +95 -0
- package/src/react-query/{getCredits.ts → creditsGetCredits.ts} +29 -27
- package/src/react-query/{postCreditsCoinbase.ts → creditsPostCreditsCoinbase.ts} +21 -18
- package/src/react-query/{embeddingsPostEmbeddings.ts → embeddingsGenerate.ts} +18 -19
- package/src/react-query/index.ts +9 -6
- package/src/react-query/{parametersGetParametersAuthorSlug.ts → modelGetParametersAuthorSlug.ts} +37 -34
- package/src/react-query/modelsGetModelsUser.ts +8 -0
- package/src/react-query/oAuthPostAuthKeys.ts +88 -0
- package/src/react-query/oAuthPostAuthKeysCode.ts +89 -0
- package/src/react-query/{getProviders.ts → providersGetProviders.ts} +35 -27
- package/src/sdk/chat.ts +6 -11
- package/src/sdk/completions.ts +33 -0
- package/src/sdk/credits.ts +39 -0
- package/src/sdk/embeddings.ts +3 -3
- package/src/sdk/{parameters.ts → model.ts} +5 -3
- package/src/sdk/models.ts +2 -0
- package/src/sdk/oauth.ts +45 -0
- package/src/sdk/providers.ts +22 -0
- package/src/sdk/sdk.ts +27 -43
- package/dist/commonjs/funcs/chatGenerateResponse.d.ts.map +0 -1
- package/dist/commonjs/funcs/chatGenerateResponse.js.map +0 -1
- package/dist/commonjs/funcs/embeddingsPostEmbeddings.d.ts.map +0 -1
- package/dist/commonjs/funcs/embeddingsPostEmbeddings.js.map +0 -1
- package/dist/commonjs/funcs/getCredits.d.ts.map +0 -1
- package/dist/commonjs/funcs/getCredits.js.map +0 -1
- package/dist/commonjs/funcs/getProviders.d.ts.map +0 -1
- package/dist/commonjs/funcs/getProviders.js.map +0 -1
- package/dist/commonjs/funcs/parametersGetParametersAuthorSlug.d.ts.map +0 -1
- package/dist/commonjs/funcs/parametersGetParametersAuthorSlug.js.map +0 -1
- package/dist/commonjs/funcs/postCreditsCoinbase.d.ts.map +0 -1
- package/dist/commonjs/funcs/postCreditsCoinbase.js.map +0 -1
- package/dist/commonjs/models/chatcompletion.d.ts +0 -43
- package/dist/commonjs/models/chatcompletion.d.ts.map +0 -1
- package/dist/commonjs/models/chatcompletion.js.map +0 -1
- package/dist/commonjs/models/chatcompletionchoice.d.ts +0 -72
- package/dist/commonjs/models/chatcompletionchoice.d.ts.map +0 -1
- package/dist/commonjs/models/chatcompletionchoice.js.map +0 -1
- package/dist/commonjs/models/chatcompletionchunk.d.ts +0 -68
- package/dist/commonjs/models/chatcompletionchunk.d.ts.map +0 -1
- package/dist/commonjs/models/chatcompletionchunk.js +0 -131
- package/dist/commonjs/models/chatcompletionchunk.js.map +0 -1
- package/dist/commonjs/models/chatcompletionchunkchoice.d.ts +0 -72
- package/dist/commonjs/models/chatcompletionchunkchoice.d.ts.map +0 -1
- package/dist/commonjs/models/chatcompletionchunkchoice.js +0 -108
- package/dist/commonjs/models/chatcompletionchunkchoice.js.map +0 -1
- package/dist/commonjs/models/chatcompletionchunkchoicedelta.d.ts +0 -61
- package/dist/commonjs/models/chatcompletionchunkchoicedelta.d.ts.map +0 -1
- package/dist/commonjs/models/chatcompletionchunkchoicedelta.js.map +0 -1
- package/dist/commonjs/models/chatcompletionchunkchoicedeltatoolcall.d.ts +0 -62
- package/dist/commonjs/models/chatcompletionchunkchoicedeltatoolcall.d.ts.map +0 -1
- package/dist/commonjs/models/chatcompletionchunkchoicedeltatoolcall.js +0 -104
- package/dist/commonjs/models/chatcompletionchunkchoicedeltatoolcall.js.map +0 -1
- package/dist/commonjs/models/chatcompletionerror.d.ts +0 -35
- package/dist/commonjs/models/chatcompletionerror.d.ts.map +0 -1
- package/dist/commonjs/models/chatcompletionerror.js.map +0 -1
- package/dist/commonjs/models/chatcompletionmessage.d.ts +0 -62
- package/dist/commonjs/models/chatcompletionmessage.d.ts.map +0 -1
- package/dist/commonjs/models/chatcompletionmessage.js +0 -113
- package/dist/commonjs/models/chatcompletionmessage.js.map +0 -1
- package/dist/commonjs/models/errors/chatcompletionerror.d.ts +0 -37
- package/dist/commonjs/models/errors/chatcompletionerror.d.ts.map +0 -1
- package/dist/commonjs/models/errors/chatcompletionerror.js.map +0 -1
- package/dist/commonjs/models/toolmessage.d.ts +0 -55
- package/dist/commonjs/models/toolmessage.d.ts.map +0 -1
- package/dist/commonjs/models/toolmessage.js.map +0 -1
- package/dist/commonjs/react-query/chatGenerateResponse.d.ts +0 -28
- package/dist/commonjs/react-query/chatGenerateResponse.d.ts.map +0 -1
- package/dist/commonjs/react-query/chatGenerateResponse.js +0 -50
- package/dist/commonjs/react-query/chatGenerateResponse.js.map +0 -1
- package/dist/commonjs/react-query/embeddingsPostEmbeddings.d.ts +0 -23
- package/dist/commonjs/react-query/embeddingsPostEmbeddings.d.ts.map +0 -1
- package/dist/commonjs/react-query/embeddingsPostEmbeddings.js.map +0 -1
- package/dist/commonjs/react-query/getCredits.d.ts +0 -23
- package/dist/commonjs/react-query/getCredits.d.ts.map +0 -1
- package/dist/commonjs/react-query/getCredits.js +0 -69
- package/dist/commonjs/react-query/getCredits.js.map +0 -1
- package/dist/commonjs/react-query/getProviders.d.ts +0 -17
- package/dist/commonjs/react-query/getProviders.d.ts.map +0 -1
- package/dist/commonjs/react-query/getProviders.js +0 -63
- package/dist/commonjs/react-query/getProviders.js.map +0 -1
- package/dist/commonjs/react-query/parametersGetParametersAuthorSlug.d.ts +0 -38
- package/dist/commonjs/react-query/parametersGetParametersAuthorSlug.d.ts.map +0 -1
- package/dist/commonjs/react-query/parametersGetParametersAuthorSlug.js +0 -88
- package/dist/commonjs/react-query/parametersGetParametersAuthorSlug.js.map +0 -1
- package/dist/commonjs/react-query/postCreditsCoinbase.d.ts +0 -20
- package/dist/commonjs/react-query/postCreditsCoinbase.d.ts.map +0 -1
- package/dist/commonjs/react-query/postCreditsCoinbase.js +0 -44
- package/dist/commonjs/react-query/postCreditsCoinbase.js.map +0 -1
- package/dist/commonjs/sdk/parameters.d.ts +0 -9
- package/dist/commonjs/sdk/parameters.d.ts.map +0 -1
- package/dist/commonjs/sdk/parameters.js +0 -19
- package/dist/commonjs/sdk/parameters.js.map +0 -1
- package/dist/esm/funcs/chatGenerateResponse.d.ts.map +0 -1
- package/dist/esm/funcs/chatGenerateResponse.js.map +0 -1
- package/dist/esm/funcs/embeddingsPostEmbeddings.d.ts.map +0 -1
- package/dist/esm/funcs/embeddingsPostEmbeddings.js.map +0 -1
- package/dist/esm/funcs/getCredits.d.ts.map +0 -1
- package/dist/esm/funcs/getCredits.js.map +0 -1
- package/dist/esm/funcs/getProviders.d.ts.map +0 -1
- package/dist/esm/funcs/getProviders.js.map +0 -1
- package/dist/esm/funcs/parametersGetParametersAuthorSlug.d.ts.map +0 -1
- package/dist/esm/funcs/parametersGetParametersAuthorSlug.js.map +0 -1
- package/dist/esm/funcs/postCreditsCoinbase.d.ts.map +0 -1
- package/dist/esm/funcs/postCreditsCoinbase.js.map +0 -1
- package/dist/esm/models/chatcompletion.d.ts +0 -43
- package/dist/esm/models/chatcompletion.d.ts.map +0 -1
- package/dist/esm/models/chatcompletion.js +0 -54
- package/dist/esm/models/chatcompletion.js.map +0 -1
- package/dist/esm/models/chatcompletionchoice.d.ts +0 -72
- package/dist/esm/models/chatcompletionchoice.d.ts.map +0 -1
- package/dist/esm/models/chatcompletionchoice.js +0 -70
- package/dist/esm/models/chatcompletionchoice.js.map +0 -1
- package/dist/esm/models/chatcompletionchunk.d.ts +0 -68
- package/dist/esm/models/chatcompletionchunk.d.ts.map +0 -1
- package/dist/esm/models/chatcompletionchunk.js +0 -91
- package/dist/esm/models/chatcompletionchunk.js.map +0 -1
- package/dist/esm/models/chatcompletionchunkchoice.d.ts +0 -72
- package/dist/esm/models/chatcompletionchunkchoice.d.ts.map +0 -1
- package/dist/esm/models/chatcompletionchunkchoice.js +0 -70
- package/dist/esm/models/chatcompletionchunkchoice.js.map +0 -1
- package/dist/esm/models/chatcompletionchunkchoicedelta.d.ts +0 -61
- package/dist/esm/models/chatcompletionchunkchoicedelta.d.ts.map +0 -1
- package/dist/esm/models/chatcompletionchunkchoicedelta.js.map +0 -1
- package/dist/esm/models/chatcompletionchunkchoicedeltatoolcall.d.ts +0 -62
- package/dist/esm/models/chatcompletionchunkchoicedeltatoolcall.d.ts.map +0 -1
- package/dist/esm/models/chatcompletionchunkchoicedeltatoolcall.js +0 -64
- package/dist/esm/models/chatcompletionchunkchoicedeltatoolcall.js.map +0 -1
- package/dist/esm/models/chatcompletionerror.d.ts +0 -35
- package/dist/esm/models/chatcompletionerror.d.ts.map +0 -1
- package/dist/esm/models/chatcompletionerror.js +0 -37
- package/dist/esm/models/chatcompletionerror.js.map +0 -1
- package/dist/esm/models/chatcompletionmessage.d.ts +0 -62
- package/dist/esm/models/chatcompletionmessage.d.ts.map +0 -1
- package/dist/esm/models/chatcompletionmessage.js +0 -73
- package/dist/esm/models/chatcompletionmessage.js.map +0 -1
- package/dist/esm/models/errors/chatcompletionerror.d.ts +0 -37
- package/dist/esm/models/errors/chatcompletionerror.d.ts.map +0 -1
- package/dist/esm/models/errors/chatcompletionerror.js +0 -48
- package/dist/esm/models/errors/chatcompletionerror.js.map +0 -1
- package/dist/esm/models/toolmessage.d.ts +0 -55
- package/dist/esm/models/toolmessage.d.ts.map +0 -1
- package/dist/esm/models/toolmessage.js +0 -69
- package/dist/esm/models/toolmessage.js.map +0 -1
- package/dist/esm/react-query/chatGenerateResponse.d.ts +0 -28
- package/dist/esm/react-query/chatGenerateResponse.d.ts.map +0 -1
- package/dist/esm/react-query/chatGenerateResponse.js +0 -43
- package/dist/esm/react-query/chatGenerateResponse.js.map +0 -1
- package/dist/esm/react-query/embeddingsPostEmbeddings.d.ts +0 -23
- package/dist/esm/react-query/embeddingsPostEmbeddings.d.ts.map +0 -1
- package/dist/esm/react-query/embeddingsPostEmbeddings.js.map +0 -1
- package/dist/esm/react-query/getCredits.d.ts +0 -23
- package/dist/esm/react-query/getCredits.d.ts.map +0 -1
- package/dist/esm/react-query/getCredits.js.map +0 -1
- package/dist/esm/react-query/getProviders.d.ts +0 -17
- package/dist/esm/react-query/getProviders.d.ts.map +0 -1
- package/dist/esm/react-query/getProviders.js +0 -54
- package/dist/esm/react-query/getProviders.js.map +0 -1
- package/dist/esm/react-query/parametersGetParametersAuthorSlug.d.ts +0 -38
- package/dist/esm/react-query/parametersGetParametersAuthorSlug.d.ts.map +0 -1
- package/dist/esm/react-query/parametersGetParametersAuthorSlug.js +0 -78
- package/dist/esm/react-query/parametersGetParametersAuthorSlug.js.map +0 -1
- package/dist/esm/react-query/postCreditsCoinbase.d.ts +0 -20
- package/dist/esm/react-query/postCreditsCoinbase.d.ts.map +0 -1
- package/dist/esm/react-query/postCreditsCoinbase.js.map +0 -1
- package/dist/esm/sdk/parameters.d.ts +0 -9
- package/dist/esm/sdk/parameters.d.ts.map +0 -1
- package/dist/esm/sdk/parameters.js +0 -15
- package/dist/esm/sdk/parameters.js.map +0 -1
- package/src/models/chatcompletionchoice.ts +0 -132
- package/src/models/chatcompletionchunk.ts +0 -169
- package/src/models/chatcompletionchunkchoice.ts +0 -139
- package/src/models/chatcompletionchunkchoicedeltatoolcall.ts +0 -166
- package/src/models/chatcompletionerror.ts +0 -78
- package/src/models/chatcompletionmessage.ts +0 -167
- package/src/models/errors/chatcompletionerror.ts +0 -79
- package/src/models/toolmessage.ts +0 -140
|
@@ -55,43 +55,43 @@ export type Reasoning = {
|
|
|
55
55
|
summary?: Summary | null | undefined;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
export type
|
|
58
|
+
export type ChatGenerationParamsResponseFormatPython = {
|
|
59
59
|
type: "python";
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
export type
|
|
62
|
+
export type ChatGenerationParamsResponseFormatGrammar = {
|
|
63
63
|
type: "grammar";
|
|
64
64
|
grammar: string;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
export type
|
|
67
|
+
export type ChatGenerationParamsJsonSchema = {
|
|
68
68
|
name: string;
|
|
69
69
|
description?: string | undefined;
|
|
70
70
|
schema?: { [k: string]: any } | undefined;
|
|
71
71
|
strict?: boolean | null | undefined;
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
-
export type
|
|
74
|
+
export type ChatGenerationParamsResponseFormatJSONSchema = {
|
|
75
75
|
type: "json_schema";
|
|
76
|
-
jsonSchema:
|
|
76
|
+
jsonSchema: ChatGenerationParamsJsonSchema;
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
export type
|
|
79
|
+
export type ChatGenerationParamsResponseFormatJSONObject = {
|
|
80
80
|
type: "json_object";
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
-
export type
|
|
83
|
+
export type ChatGenerationParamsResponseFormatText = {
|
|
84
84
|
type: "text";
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
-
export type
|
|
88
|
-
|
|
|
89
|
-
|
|
|
90
|
-
|
|
|
91
|
-
|
|
|
92
|
-
|
|
|
87
|
+
export type ChatGenerationParamsResponseFormatUnion =
|
|
88
|
+
| ChatGenerationParamsResponseFormatJSONSchema
|
|
89
|
+
| ChatGenerationParamsResponseFormatGrammar
|
|
90
|
+
| ChatGenerationParamsResponseFormatText
|
|
91
|
+
| ChatGenerationParamsResponseFormatJSONObject
|
|
92
|
+
| ChatGenerationParamsResponseFormatPython;
|
|
93
93
|
|
|
94
|
-
export type
|
|
94
|
+
export type ChatGenerationParamsStop = string | Array<string>;
|
|
95
95
|
|
|
96
96
|
export type ChatGenerationParams = {
|
|
97
97
|
messages: Array<Message>;
|
|
@@ -106,11 +106,11 @@ export type ChatGenerationParams = {
|
|
|
106
106
|
presencePenalty?: number | null | undefined;
|
|
107
107
|
reasoning?: Reasoning | undefined;
|
|
108
108
|
responseFormat?:
|
|
109
|
-
|
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
113
|
-
|
|
|
109
|
+
| ChatGenerationParamsResponseFormatJSONSchema
|
|
110
|
+
| ChatGenerationParamsResponseFormatGrammar
|
|
111
|
+
| ChatGenerationParamsResponseFormatText
|
|
112
|
+
| ChatGenerationParamsResponseFormatJSONObject
|
|
113
|
+
| ChatGenerationParamsResponseFormatPython
|
|
114
114
|
| undefined;
|
|
115
115
|
seed?: number | null | undefined;
|
|
116
116
|
stop?: string | Array<string> | null | undefined;
|
|
@@ -247,8 +247,8 @@ export function reasoningFromJSON(
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
/** @internal */
|
|
250
|
-
export const
|
|
251
|
-
|
|
250
|
+
export const ChatGenerationParamsResponseFormatPython$inboundSchema: z.ZodType<
|
|
251
|
+
ChatGenerationParamsResponseFormatPython,
|
|
252
252
|
z.ZodTypeDef,
|
|
253
253
|
unknown
|
|
254
254
|
> = z.object({
|
|
@@ -256,15 +256,15 @@ export const ResponseFormatPython$inboundSchema: z.ZodType<
|
|
|
256
256
|
});
|
|
257
257
|
|
|
258
258
|
/** @internal */
|
|
259
|
-
export type
|
|
259
|
+
export type ChatGenerationParamsResponseFormatPython$Outbound = {
|
|
260
260
|
type: "python";
|
|
261
261
|
};
|
|
262
262
|
|
|
263
263
|
/** @internal */
|
|
264
|
-
export const
|
|
265
|
-
|
|
264
|
+
export const ChatGenerationParamsResponseFormatPython$outboundSchema: z.ZodType<
|
|
265
|
+
ChatGenerationParamsResponseFormatPython$Outbound,
|
|
266
266
|
z.ZodTypeDef,
|
|
267
|
-
|
|
267
|
+
ChatGenerationParamsResponseFormatPython
|
|
268
268
|
> = z.object({
|
|
269
269
|
type: z.literal("python"),
|
|
270
270
|
});
|
|
@@ -273,36 +273,47 @@ export const ResponseFormatPython$outboundSchema: z.ZodType<
|
|
|
273
273
|
* @internal
|
|
274
274
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
275
275
|
*/
|
|
276
|
-
export namespace
|
|
277
|
-
/** @deprecated use `
|
|
278
|
-
export const inboundSchema =
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
276
|
+
export namespace ChatGenerationParamsResponseFormatPython$ {
|
|
277
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatPython$inboundSchema` instead. */
|
|
278
|
+
export const inboundSchema =
|
|
279
|
+
ChatGenerationParamsResponseFormatPython$inboundSchema;
|
|
280
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatPython$outboundSchema` instead. */
|
|
281
|
+
export const outboundSchema =
|
|
282
|
+
ChatGenerationParamsResponseFormatPython$outboundSchema;
|
|
283
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatPython$Outbound` instead. */
|
|
284
|
+
export type Outbound = ChatGenerationParamsResponseFormatPython$Outbound;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export function chatGenerationParamsResponseFormatPythonToJSON(
|
|
288
|
+
chatGenerationParamsResponseFormatPython:
|
|
289
|
+
ChatGenerationParamsResponseFormatPython,
|
|
287
290
|
): string {
|
|
288
291
|
return JSON.stringify(
|
|
289
|
-
|
|
292
|
+
ChatGenerationParamsResponseFormatPython$outboundSchema.parse(
|
|
293
|
+
chatGenerationParamsResponseFormatPython,
|
|
294
|
+
),
|
|
290
295
|
);
|
|
291
296
|
}
|
|
292
297
|
|
|
293
|
-
export function
|
|
298
|
+
export function chatGenerationParamsResponseFormatPythonFromJSON(
|
|
294
299
|
jsonString: string,
|
|
295
|
-
): SafeParseResult<
|
|
300
|
+
): SafeParseResult<
|
|
301
|
+
ChatGenerationParamsResponseFormatPython,
|
|
302
|
+
SDKValidationError
|
|
303
|
+
> {
|
|
296
304
|
return safeParse(
|
|
297
305
|
jsonString,
|
|
298
|
-
(x) =>
|
|
299
|
-
|
|
306
|
+
(x) =>
|
|
307
|
+
ChatGenerationParamsResponseFormatPython$inboundSchema.parse(
|
|
308
|
+
JSON.parse(x),
|
|
309
|
+
),
|
|
310
|
+
`Failed to parse 'ChatGenerationParamsResponseFormatPython' from JSON`,
|
|
300
311
|
);
|
|
301
312
|
}
|
|
302
313
|
|
|
303
314
|
/** @internal */
|
|
304
|
-
export const
|
|
305
|
-
|
|
315
|
+
export const ChatGenerationParamsResponseFormatGrammar$inboundSchema: z.ZodType<
|
|
316
|
+
ChatGenerationParamsResponseFormatGrammar,
|
|
306
317
|
z.ZodTypeDef,
|
|
307
318
|
unknown
|
|
308
319
|
> = z.object({
|
|
@@ -311,55 +322,67 @@ export const ResponseFormatGrammar$inboundSchema: z.ZodType<
|
|
|
311
322
|
});
|
|
312
323
|
|
|
313
324
|
/** @internal */
|
|
314
|
-
export type
|
|
325
|
+
export type ChatGenerationParamsResponseFormatGrammar$Outbound = {
|
|
315
326
|
type: "grammar";
|
|
316
327
|
grammar: string;
|
|
317
328
|
};
|
|
318
329
|
|
|
319
330
|
/** @internal */
|
|
320
|
-
export const
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
331
|
+
export const ChatGenerationParamsResponseFormatGrammar$outboundSchema:
|
|
332
|
+
z.ZodType<
|
|
333
|
+
ChatGenerationParamsResponseFormatGrammar$Outbound,
|
|
334
|
+
z.ZodTypeDef,
|
|
335
|
+
ChatGenerationParamsResponseFormatGrammar
|
|
336
|
+
> = z.object({
|
|
337
|
+
type: z.literal("grammar"),
|
|
338
|
+
grammar: z.string(),
|
|
339
|
+
});
|
|
328
340
|
|
|
329
341
|
/**
|
|
330
342
|
* @internal
|
|
331
343
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
332
344
|
*/
|
|
333
|
-
export namespace
|
|
334
|
-
/** @deprecated use `
|
|
335
|
-
export const inboundSchema =
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
345
|
+
export namespace ChatGenerationParamsResponseFormatGrammar$ {
|
|
346
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatGrammar$inboundSchema` instead. */
|
|
347
|
+
export const inboundSchema =
|
|
348
|
+
ChatGenerationParamsResponseFormatGrammar$inboundSchema;
|
|
349
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatGrammar$outboundSchema` instead. */
|
|
350
|
+
export const outboundSchema =
|
|
351
|
+
ChatGenerationParamsResponseFormatGrammar$outboundSchema;
|
|
352
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatGrammar$Outbound` instead. */
|
|
353
|
+
export type Outbound = ChatGenerationParamsResponseFormatGrammar$Outbound;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export function chatGenerationParamsResponseFormatGrammarToJSON(
|
|
357
|
+
chatGenerationParamsResponseFormatGrammar:
|
|
358
|
+
ChatGenerationParamsResponseFormatGrammar,
|
|
344
359
|
): string {
|
|
345
360
|
return JSON.stringify(
|
|
346
|
-
|
|
361
|
+
ChatGenerationParamsResponseFormatGrammar$outboundSchema.parse(
|
|
362
|
+
chatGenerationParamsResponseFormatGrammar,
|
|
363
|
+
),
|
|
347
364
|
);
|
|
348
365
|
}
|
|
349
366
|
|
|
350
|
-
export function
|
|
367
|
+
export function chatGenerationParamsResponseFormatGrammarFromJSON(
|
|
351
368
|
jsonString: string,
|
|
352
|
-
): SafeParseResult<
|
|
369
|
+
): SafeParseResult<
|
|
370
|
+
ChatGenerationParamsResponseFormatGrammar,
|
|
371
|
+
SDKValidationError
|
|
372
|
+
> {
|
|
353
373
|
return safeParse(
|
|
354
374
|
jsonString,
|
|
355
|
-
(x) =>
|
|
356
|
-
|
|
375
|
+
(x) =>
|
|
376
|
+
ChatGenerationParamsResponseFormatGrammar$inboundSchema.parse(
|
|
377
|
+
JSON.parse(x),
|
|
378
|
+
),
|
|
379
|
+
`Failed to parse 'ChatGenerationParamsResponseFormatGrammar' from JSON`,
|
|
357
380
|
);
|
|
358
381
|
}
|
|
359
382
|
|
|
360
383
|
/** @internal */
|
|
361
|
-
export const
|
|
362
|
-
|
|
384
|
+
export const ChatGenerationParamsJsonSchema$inboundSchema: z.ZodType<
|
|
385
|
+
ChatGenerationParamsJsonSchema,
|
|
363
386
|
z.ZodTypeDef,
|
|
364
387
|
unknown
|
|
365
388
|
> = z.object({
|
|
@@ -370,7 +393,7 @@ export const JsonSchema$inboundSchema: z.ZodType<
|
|
|
370
393
|
});
|
|
371
394
|
|
|
372
395
|
/** @internal */
|
|
373
|
-
export type
|
|
396
|
+
export type ChatGenerationParamsJsonSchema$Outbound = {
|
|
374
397
|
name: string;
|
|
375
398
|
description?: string | undefined;
|
|
376
399
|
schema?: { [k: string]: any } | undefined;
|
|
@@ -378,10 +401,10 @@ export type JsonSchema$Outbound = {
|
|
|
378
401
|
};
|
|
379
402
|
|
|
380
403
|
/** @internal */
|
|
381
|
-
export const
|
|
382
|
-
|
|
404
|
+
export const ChatGenerationParamsJsonSchema$outboundSchema: z.ZodType<
|
|
405
|
+
ChatGenerationParamsJsonSchema$Outbound,
|
|
383
406
|
z.ZodTypeDef,
|
|
384
|
-
|
|
407
|
+
ChatGenerationParamsJsonSchema
|
|
385
408
|
> = z.object({
|
|
386
409
|
name: z.string(),
|
|
387
410
|
description: z.string().optional(),
|
|
@@ -393,151 +416,183 @@ export const JsonSchema$outboundSchema: z.ZodType<
|
|
|
393
416
|
* @internal
|
|
394
417
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
395
418
|
*/
|
|
396
|
-
export namespace
|
|
397
|
-
/** @deprecated use `
|
|
398
|
-
export const inboundSchema =
|
|
399
|
-
/** @deprecated use `
|
|
400
|
-
export const outboundSchema =
|
|
401
|
-
/** @deprecated use `
|
|
402
|
-
export type Outbound =
|
|
419
|
+
export namespace ChatGenerationParamsJsonSchema$ {
|
|
420
|
+
/** @deprecated use `ChatGenerationParamsJsonSchema$inboundSchema` instead. */
|
|
421
|
+
export const inboundSchema = ChatGenerationParamsJsonSchema$inboundSchema;
|
|
422
|
+
/** @deprecated use `ChatGenerationParamsJsonSchema$outboundSchema` instead. */
|
|
423
|
+
export const outboundSchema = ChatGenerationParamsJsonSchema$outboundSchema;
|
|
424
|
+
/** @deprecated use `ChatGenerationParamsJsonSchema$Outbound` instead. */
|
|
425
|
+
export type Outbound = ChatGenerationParamsJsonSchema$Outbound;
|
|
403
426
|
}
|
|
404
427
|
|
|
405
|
-
export function
|
|
406
|
-
|
|
428
|
+
export function chatGenerationParamsJsonSchemaToJSON(
|
|
429
|
+
chatGenerationParamsJsonSchema: ChatGenerationParamsJsonSchema,
|
|
430
|
+
): string {
|
|
431
|
+
return JSON.stringify(
|
|
432
|
+
ChatGenerationParamsJsonSchema$outboundSchema.parse(
|
|
433
|
+
chatGenerationParamsJsonSchema,
|
|
434
|
+
),
|
|
435
|
+
);
|
|
407
436
|
}
|
|
408
437
|
|
|
409
|
-
export function
|
|
438
|
+
export function chatGenerationParamsJsonSchemaFromJSON(
|
|
410
439
|
jsonString: string,
|
|
411
|
-
): SafeParseResult<
|
|
440
|
+
): SafeParseResult<ChatGenerationParamsJsonSchema, SDKValidationError> {
|
|
412
441
|
return safeParse(
|
|
413
442
|
jsonString,
|
|
414
|
-
(x) =>
|
|
415
|
-
`Failed to parse '
|
|
443
|
+
(x) => ChatGenerationParamsJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
444
|
+
`Failed to parse 'ChatGenerationParamsJsonSchema' from JSON`,
|
|
416
445
|
);
|
|
417
446
|
}
|
|
418
447
|
|
|
419
448
|
/** @internal */
|
|
420
|
-
export const
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
449
|
+
export const ChatGenerationParamsResponseFormatJSONSchema$inboundSchema:
|
|
450
|
+
z.ZodType<
|
|
451
|
+
ChatGenerationParamsResponseFormatJSONSchema,
|
|
452
|
+
z.ZodTypeDef,
|
|
453
|
+
unknown
|
|
454
|
+
> = z.object({
|
|
455
|
+
type: z.literal("json_schema"),
|
|
456
|
+
json_schema: z.lazy(() => ChatGenerationParamsJsonSchema$inboundSchema),
|
|
457
|
+
}).transform((v) => {
|
|
458
|
+
return remap$(v, {
|
|
459
|
+
"json_schema": "jsonSchema",
|
|
460
|
+
});
|
|
430
461
|
});
|
|
431
|
-
});
|
|
432
462
|
|
|
433
463
|
/** @internal */
|
|
434
|
-
export type
|
|
464
|
+
export type ChatGenerationParamsResponseFormatJSONSchema$Outbound = {
|
|
435
465
|
type: "json_schema";
|
|
436
|
-
json_schema:
|
|
466
|
+
json_schema: ChatGenerationParamsJsonSchema$Outbound;
|
|
437
467
|
};
|
|
438
468
|
|
|
439
469
|
/** @internal */
|
|
440
|
-
export const
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
470
|
+
export const ChatGenerationParamsResponseFormatJSONSchema$outboundSchema:
|
|
471
|
+
z.ZodType<
|
|
472
|
+
ChatGenerationParamsResponseFormatJSONSchema$Outbound,
|
|
473
|
+
z.ZodTypeDef,
|
|
474
|
+
ChatGenerationParamsResponseFormatJSONSchema
|
|
475
|
+
> = z.object({
|
|
476
|
+
type: z.literal("json_schema"),
|
|
477
|
+
jsonSchema: z.lazy(() => ChatGenerationParamsJsonSchema$outboundSchema),
|
|
478
|
+
}).transform((v) => {
|
|
479
|
+
return remap$(v, {
|
|
480
|
+
jsonSchema: "json_schema",
|
|
481
|
+
});
|
|
450
482
|
});
|
|
451
|
-
});
|
|
452
483
|
|
|
453
484
|
/**
|
|
454
485
|
* @internal
|
|
455
486
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
456
487
|
*/
|
|
457
|
-
export namespace
|
|
458
|
-
/** @deprecated use `
|
|
459
|
-
export const inboundSchema =
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
488
|
+
export namespace ChatGenerationParamsResponseFormatJSONSchema$ {
|
|
489
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatJSONSchema$inboundSchema` instead. */
|
|
490
|
+
export const inboundSchema =
|
|
491
|
+
ChatGenerationParamsResponseFormatJSONSchema$inboundSchema;
|
|
492
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatJSONSchema$outboundSchema` instead. */
|
|
493
|
+
export const outboundSchema =
|
|
494
|
+
ChatGenerationParamsResponseFormatJSONSchema$outboundSchema;
|
|
495
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatJSONSchema$Outbound` instead. */
|
|
496
|
+
export type Outbound = ChatGenerationParamsResponseFormatJSONSchema$Outbound;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
export function chatGenerationParamsResponseFormatJSONSchemaToJSON(
|
|
500
|
+
chatGenerationParamsResponseFormatJSONSchema:
|
|
501
|
+
ChatGenerationParamsResponseFormatJSONSchema,
|
|
468
502
|
): string {
|
|
469
503
|
return JSON.stringify(
|
|
470
|
-
|
|
504
|
+
ChatGenerationParamsResponseFormatJSONSchema$outboundSchema.parse(
|
|
505
|
+
chatGenerationParamsResponseFormatJSONSchema,
|
|
506
|
+
),
|
|
471
507
|
);
|
|
472
508
|
}
|
|
473
509
|
|
|
474
|
-
export function
|
|
510
|
+
export function chatGenerationParamsResponseFormatJSONSchemaFromJSON(
|
|
475
511
|
jsonString: string,
|
|
476
|
-
): SafeParseResult<
|
|
512
|
+
): SafeParseResult<
|
|
513
|
+
ChatGenerationParamsResponseFormatJSONSchema,
|
|
514
|
+
SDKValidationError
|
|
515
|
+
> {
|
|
477
516
|
return safeParse(
|
|
478
517
|
jsonString,
|
|
479
|
-
(x) =>
|
|
480
|
-
|
|
518
|
+
(x) =>
|
|
519
|
+
ChatGenerationParamsResponseFormatJSONSchema$inboundSchema.parse(
|
|
520
|
+
JSON.parse(x),
|
|
521
|
+
),
|
|
522
|
+
`Failed to parse 'ChatGenerationParamsResponseFormatJSONSchema' from JSON`,
|
|
481
523
|
);
|
|
482
524
|
}
|
|
483
525
|
|
|
484
526
|
/** @internal */
|
|
485
|
-
export const
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
527
|
+
export const ChatGenerationParamsResponseFormatJSONObject$inboundSchema:
|
|
528
|
+
z.ZodType<
|
|
529
|
+
ChatGenerationParamsResponseFormatJSONObject,
|
|
530
|
+
z.ZodTypeDef,
|
|
531
|
+
unknown
|
|
532
|
+
> = z.object({
|
|
533
|
+
type: z.literal("json_object"),
|
|
534
|
+
});
|
|
492
535
|
|
|
493
536
|
/** @internal */
|
|
494
|
-
export type
|
|
537
|
+
export type ChatGenerationParamsResponseFormatJSONObject$Outbound = {
|
|
495
538
|
type: "json_object";
|
|
496
539
|
};
|
|
497
540
|
|
|
498
541
|
/** @internal */
|
|
499
|
-
export const
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
542
|
+
export const ChatGenerationParamsResponseFormatJSONObject$outboundSchema:
|
|
543
|
+
z.ZodType<
|
|
544
|
+
ChatGenerationParamsResponseFormatJSONObject$Outbound,
|
|
545
|
+
z.ZodTypeDef,
|
|
546
|
+
ChatGenerationParamsResponseFormatJSONObject
|
|
547
|
+
> = z.object({
|
|
548
|
+
type: z.literal("json_object"),
|
|
549
|
+
});
|
|
506
550
|
|
|
507
551
|
/**
|
|
508
552
|
* @internal
|
|
509
553
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
510
554
|
*/
|
|
511
|
-
export namespace
|
|
512
|
-
/** @deprecated use `
|
|
513
|
-
export const inboundSchema =
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
555
|
+
export namespace ChatGenerationParamsResponseFormatJSONObject$ {
|
|
556
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatJSONObject$inboundSchema` instead. */
|
|
557
|
+
export const inboundSchema =
|
|
558
|
+
ChatGenerationParamsResponseFormatJSONObject$inboundSchema;
|
|
559
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatJSONObject$outboundSchema` instead. */
|
|
560
|
+
export const outboundSchema =
|
|
561
|
+
ChatGenerationParamsResponseFormatJSONObject$outboundSchema;
|
|
562
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatJSONObject$Outbound` instead. */
|
|
563
|
+
export type Outbound = ChatGenerationParamsResponseFormatJSONObject$Outbound;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
export function chatGenerationParamsResponseFormatJSONObjectToJSON(
|
|
567
|
+
chatGenerationParamsResponseFormatJSONObject:
|
|
568
|
+
ChatGenerationParamsResponseFormatJSONObject,
|
|
522
569
|
): string {
|
|
523
570
|
return JSON.stringify(
|
|
524
|
-
|
|
571
|
+
ChatGenerationParamsResponseFormatJSONObject$outboundSchema.parse(
|
|
572
|
+
chatGenerationParamsResponseFormatJSONObject,
|
|
573
|
+
),
|
|
525
574
|
);
|
|
526
575
|
}
|
|
527
576
|
|
|
528
|
-
export function
|
|
577
|
+
export function chatGenerationParamsResponseFormatJSONObjectFromJSON(
|
|
529
578
|
jsonString: string,
|
|
530
|
-
): SafeParseResult<
|
|
579
|
+
): SafeParseResult<
|
|
580
|
+
ChatGenerationParamsResponseFormatJSONObject,
|
|
581
|
+
SDKValidationError
|
|
582
|
+
> {
|
|
531
583
|
return safeParse(
|
|
532
584
|
jsonString,
|
|
533
|
-
(x) =>
|
|
534
|
-
|
|
585
|
+
(x) =>
|
|
586
|
+
ChatGenerationParamsResponseFormatJSONObject$inboundSchema.parse(
|
|
587
|
+
JSON.parse(x),
|
|
588
|
+
),
|
|
589
|
+
`Failed to parse 'ChatGenerationParamsResponseFormatJSONObject' from JSON`,
|
|
535
590
|
);
|
|
536
591
|
}
|
|
537
592
|
|
|
538
593
|
/** @internal */
|
|
539
|
-
export const
|
|
540
|
-
|
|
594
|
+
export const ChatGenerationParamsResponseFormatText$inboundSchema: z.ZodType<
|
|
595
|
+
ChatGenerationParamsResponseFormatText,
|
|
541
596
|
z.ZodTypeDef,
|
|
542
597
|
unknown
|
|
543
598
|
> = z.object({
|
|
@@ -545,15 +600,15 @@ export const ResponseFormatText$inboundSchema: z.ZodType<
|
|
|
545
600
|
});
|
|
546
601
|
|
|
547
602
|
/** @internal */
|
|
548
|
-
export type
|
|
603
|
+
export type ChatGenerationParamsResponseFormatText$Outbound = {
|
|
549
604
|
type: "text";
|
|
550
605
|
};
|
|
551
606
|
|
|
552
607
|
/** @internal */
|
|
553
|
-
export const
|
|
554
|
-
|
|
608
|
+
export const ChatGenerationParamsResponseFormatText$outboundSchema: z.ZodType<
|
|
609
|
+
ChatGenerationParamsResponseFormatText$Outbound,
|
|
555
610
|
z.ZodTypeDef,
|
|
556
|
-
|
|
611
|
+
ChatGenerationParamsResponseFormatText
|
|
557
612
|
> = z.object({
|
|
558
613
|
type: z.literal("text"),
|
|
559
614
|
});
|
|
@@ -562,129 +617,160 @@ export const ResponseFormatText$outboundSchema: z.ZodType<
|
|
|
562
617
|
* @internal
|
|
563
618
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
564
619
|
*/
|
|
565
|
-
export namespace
|
|
566
|
-
/** @deprecated use `
|
|
567
|
-
export const inboundSchema =
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
620
|
+
export namespace ChatGenerationParamsResponseFormatText$ {
|
|
621
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatText$inboundSchema` instead. */
|
|
622
|
+
export const inboundSchema =
|
|
623
|
+
ChatGenerationParamsResponseFormatText$inboundSchema;
|
|
624
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatText$outboundSchema` instead. */
|
|
625
|
+
export const outboundSchema =
|
|
626
|
+
ChatGenerationParamsResponseFormatText$outboundSchema;
|
|
627
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatText$Outbound` instead. */
|
|
628
|
+
export type Outbound = ChatGenerationParamsResponseFormatText$Outbound;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
export function chatGenerationParamsResponseFormatTextToJSON(
|
|
632
|
+
chatGenerationParamsResponseFormatText:
|
|
633
|
+
ChatGenerationParamsResponseFormatText,
|
|
576
634
|
): string {
|
|
577
635
|
return JSON.stringify(
|
|
578
|
-
|
|
636
|
+
ChatGenerationParamsResponseFormatText$outboundSchema.parse(
|
|
637
|
+
chatGenerationParamsResponseFormatText,
|
|
638
|
+
),
|
|
579
639
|
);
|
|
580
640
|
}
|
|
581
641
|
|
|
582
|
-
export function
|
|
642
|
+
export function chatGenerationParamsResponseFormatTextFromJSON(
|
|
583
643
|
jsonString: string,
|
|
584
|
-
): SafeParseResult<
|
|
644
|
+
): SafeParseResult<ChatGenerationParamsResponseFormatText, SDKValidationError> {
|
|
585
645
|
return safeParse(
|
|
586
646
|
jsonString,
|
|
587
|
-
(x) =>
|
|
588
|
-
|
|
647
|
+
(x) =>
|
|
648
|
+
ChatGenerationParamsResponseFormatText$inboundSchema.parse(JSON.parse(x)),
|
|
649
|
+
`Failed to parse 'ChatGenerationParamsResponseFormatText' from JSON`,
|
|
589
650
|
);
|
|
590
651
|
}
|
|
591
652
|
|
|
592
653
|
/** @internal */
|
|
593
|
-
export const
|
|
594
|
-
|
|
654
|
+
export const ChatGenerationParamsResponseFormatUnion$inboundSchema: z.ZodType<
|
|
655
|
+
ChatGenerationParamsResponseFormatUnion,
|
|
595
656
|
z.ZodTypeDef,
|
|
596
657
|
unknown
|
|
597
658
|
> = z.union([
|
|
598
|
-
z.lazy(() =>
|
|
599
|
-
z.lazy(() =>
|
|
600
|
-
z.lazy(() =>
|
|
601
|
-
z.lazy(() =>
|
|
602
|
-
z.lazy(() =>
|
|
659
|
+
z.lazy(() => ChatGenerationParamsResponseFormatJSONSchema$inboundSchema),
|
|
660
|
+
z.lazy(() => ChatGenerationParamsResponseFormatGrammar$inboundSchema),
|
|
661
|
+
z.lazy(() => ChatGenerationParamsResponseFormatText$inboundSchema),
|
|
662
|
+
z.lazy(() => ChatGenerationParamsResponseFormatJSONObject$inboundSchema),
|
|
663
|
+
z.lazy(() => ChatGenerationParamsResponseFormatPython$inboundSchema),
|
|
603
664
|
]);
|
|
604
665
|
|
|
605
666
|
/** @internal */
|
|
606
|
-
export type
|
|
607
|
-
|
|
|
608
|
-
|
|
|
609
|
-
|
|
|
610
|
-
|
|
|
611
|
-
|
|
|
667
|
+
export type ChatGenerationParamsResponseFormatUnion$Outbound =
|
|
668
|
+
| ChatGenerationParamsResponseFormatJSONSchema$Outbound
|
|
669
|
+
| ChatGenerationParamsResponseFormatGrammar$Outbound
|
|
670
|
+
| ChatGenerationParamsResponseFormatText$Outbound
|
|
671
|
+
| ChatGenerationParamsResponseFormatJSONObject$Outbound
|
|
672
|
+
| ChatGenerationParamsResponseFormatPython$Outbound;
|
|
612
673
|
|
|
613
674
|
/** @internal */
|
|
614
|
-
export const
|
|
615
|
-
|
|
675
|
+
export const ChatGenerationParamsResponseFormatUnion$outboundSchema: z.ZodType<
|
|
676
|
+
ChatGenerationParamsResponseFormatUnion$Outbound,
|
|
616
677
|
z.ZodTypeDef,
|
|
617
|
-
|
|
678
|
+
ChatGenerationParamsResponseFormatUnion
|
|
618
679
|
> = z.union([
|
|
619
|
-
z.lazy(() =>
|
|
620
|
-
z.lazy(() =>
|
|
621
|
-
z.lazy(() =>
|
|
622
|
-
z.lazy(() =>
|
|
623
|
-
z.lazy(() =>
|
|
680
|
+
z.lazy(() => ChatGenerationParamsResponseFormatJSONSchema$outboundSchema),
|
|
681
|
+
z.lazy(() => ChatGenerationParamsResponseFormatGrammar$outboundSchema),
|
|
682
|
+
z.lazy(() => ChatGenerationParamsResponseFormatText$outboundSchema),
|
|
683
|
+
z.lazy(() => ChatGenerationParamsResponseFormatJSONObject$outboundSchema),
|
|
684
|
+
z.lazy(() => ChatGenerationParamsResponseFormatPython$outboundSchema),
|
|
624
685
|
]);
|
|
625
686
|
|
|
626
687
|
/**
|
|
627
688
|
* @internal
|
|
628
689
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
629
690
|
*/
|
|
630
|
-
export namespace
|
|
631
|
-
/** @deprecated use `
|
|
632
|
-
export const inboundSchema =
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
691
|
+
export namespace ChatGenerationParamsResponseFormatUnion$ {
|
|
692
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatUnion$inboundSchema` instead. */
|
|
693
|
+
export const inboundSchema =
|
|
694
|
+
ChatGenerationParamsResponseFormatUnion$inboundSchema;
|
|
695
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatUnion$outboundSchema` instead. */
|
|
696
|
+
export const outboundSchema =
|
|
697
|
+
ChatGenerationParamsResponseFormatUnion$outboundSchema;
|
|
698
|
+
/** @deprecated use `ChatGenerationParamsResponseFormatUnion$Outbound` instead. */
|
|
699
|
+
export type Outbound = ChatGenerationParamsResponseFormatUnion$Outbound;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
export function chatGenerationParamsResponseFormatUnionToJSON(
|
|
703
|
+
chatGenerationParamsResponseFormatUnion:
|
|
704
|
+
ChatGenerationParamsResponseFormatUnion,
|
|
705
|
+
): string {
|
|
706
|
+
return JSON.stringify(
|
|
707
|
+
ChatGenerationParamsResponseFormatUnion$outboundSchema.parse(
|
|
708
|
+
chatGenerationParamsResponseFormatUnion,
|
|
709
|
+
),
|
|
710
|
+
);
|
|
641
711
|
}
|
|
642
712
|
|
|
643
|
-
export function
|
|
713
|
+
export function chatGenerationParamsResponseFormatUnionFromJSON(
|
|
644
714
|
jsonString: string,
|
|
645
|
-
): SafeParseResult<
|
|
715
|
+
): SafeParseResult<
|
|
716
|
+
ChatGenerationParamsResponseFormatUnion,
|
|
717
|
+
SDKValidationError
|
|
718
|
+
> {
|
|
646
719
|
return safeParse(
|
|
647
720
|
jsonString,
|
|
648
|
-
(x) =>
|
|
649
|
-
|
|
721
|
+
(x) =>
|
|
722
|
+
ChatGenerationParamsResponseFormatUnion$inboundSchema.parse(
|
|
723
|
+
JSON.parse(x),
|
|
724
|
+
),
|
|
725
|
+
`Failed to parse 'ChatGenerationParamsResponseFormatUnion' from JSON`,
|
|
650
726
|
);
|
|
651
727
|
}
|
|
652
728
|
|
|
653
729
|
/** @internal */
|
|
654
|
-
export const
|
|
655
|
-
|
|
730
|
+
export const ChatGenerationParamsStop$inboundSchema: z.ZodType<
|
|
731
|
+
ChatGenerationParamsStop,
|
|
732
|
+
z.ZodTypeDef,
|
|
733
|
+
unknown
|
|
734
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
656
735
|
|
|
657
736
|
/** @internal */
|
|
658
|
-
export type
|
|
737
|
+
export type ChatGenerationParamsStop$Outbound = string | Array<string>;
|
|
659
738
|
|
|
660
739
|
/** @internal */
|
|
661
|
-
export const
|
|
662
|
-
|
|
740
|
+
export const ChatGenerationParamsStop$outboundSchema: z.ZodType<
|
|
741
|
+
ChatGenerationParamsStop$Outbound,
|
|
742
|
+
z.ZodTypeDef,
|
|
743
|
+
ChatGenerationParamsStop
|
|
744
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
663
745
|
|
|
664
746
|
/**
|
|
665
747
|
* @internal
|
|
666
748
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
667
749
|
*/
|
|
668
|
-
export namespace
|
|
669
|
-
/** @deprecated use `
|
|
670
|
-
export const inboundSchema =
|
|
671
|
-
/** @deprecated use `
|
|
672
|
-
export const outboundSchema =
|
|
673
|
-
/** @deprecated use `
|
|
674
|
-
export type Outbound =
|
|
750
|
+
export namespace ChatGenerationParamsStop$ {
|
|
751
|
+
/** @deprecated use `ChatGenerationParamsStop$inboundSchema` instead. */
|
|
752
|
+
export const inboundSchema = ChatGenerationParamsStop$inboundSchema;
|
|
753
|
+
/** @deprecated use `ChatGenerationParamsStop$outboundSchema` instead. */
|
|
754
|
+
export const outboundSchema = ChatGenerationParamsStop$outboundSchema;
|
|
755
|
+
/** @deprecated use `ChatGenerationParamsStop$Outbound` instead. */
|
|
756
|
+
export type Outbound = ChatGenerationParamsStop$Outbound;
|
|
675
757
|
}
|
|
676
758
|
|
|
677
|
-
export function
|
|
678
|
-
|
|
759
|
+
export function chatGenerationParamsStopToJSON(
|
|
760
|
+
chatGenerationParamsStop: ChatGenerationParamsStop,
|
|
761
|
+
): string {
|
|
762
|
+
return JSON.stringify(
|
|
763
|
+
ChatGenerationParamsStop$outboundSchema.parse(chatGenerationParamsStop),
|
|
764
|
+
);
|
|
679
765
|
}
|
|
680
766
|
|
|
681
|
-
export function
|
|
767
|
+
export function chatGenerationParamsStopFromJSON(
|
|
682
768
|
jsonString: string,
|
|
683
|
-
): SafeParseResult<
|
|
769
|
+
): SafeParseResult<ChatGenerationParamsStop, SDKValidationError> {
|
|
684
770
|
return safeParse(
|
|
685
771
|
jsonString,
|
|
686
|
-
(x) =>
|
|
687
|
-
`Failed to parse '
|
|
772
|
+
(x) => ChatGenerationParamsStop$inboundSchema.parse(JSON.parse(x)),
|
|
773
|
+
`Failed to parse 'ChatGenerationParamsStop' from JSON`,
|
|
688
774
|
);
|
|
689
775
|
}
|
|
690
776
|
|
|
@@ -706,11 +792,11 @@ export const ChatGenerationParams$inboundSchema: z.ZodType<
|
|
|
706
792
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
707
793
|
reasoning: z.lazy(() => Reasoning$inboundSchema).optional(),
|
|
708
794
|
response_format: z.union([
|
|
709
|
-
z.lazy(() =>
|
|
710
|
-
z.lazy(() =>
|
|
711
|
-
z.lazy(() =>
|
|
712
|
-
z.lazy(() =>
|
|
713
|
-
z.lazy(() =>
|
|
795
|
+
z.lazy(() => ChatGenerationParamsResponseFormatJSONSchema$inboundSchema),
|
|
796
|
+
z.lazy(() => ChatGenerationParamsResponseFormatGrammar$inboundSchema),
|
|
797
|
+
z.lazy(() => ChatGenerationParamsResponseFormatText$inboundSchema),
|
|
798
|
+
z.lazy(() => ChatGenerationParamsResponseFormatJSONObject$inboundSchema),
|
|
799
|
+
z.lazy(() => ChatGenerationParamsResponseFormatPython$inboundSchema),
|
|
714
800
|
]).optional(),
|
|
715
801
|
seed: z.nullable(z.number().int()).optional(),
|
|
716
802
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
@@ -750,11 +836,11 @@ export type ChatGenerationParams$Outbound = {
|
|
|
750
836
|
presence_penalty?: number | null | undefined;
|
|
751
837
|
reasoning?: Reasoning$Outbound | undefined;
|
|
752
838
|
response_format?:
|
|
753
|
-
|
|
|
754
|
-
|
|
|
755
|
-
|
|
|
756
|
-
|
|
|
757
|
-
|
|
|
839
|
+
| ChatGenerationParamsResponseFormatJSONSchema$Outbound
|
|
840
|
+
| ChatGenerationParamsResponseFormatGrammar$Outbound
|
|
841
|
+
| ChatGenerationParamsResponseFormatText$Outbound
|
|
842
|
+
| ChatGenerationParamsResponseFormatJSONObject$Outbound
|
|
843
|
+
| ChatGenerationParamsResponseFormatPython$Outbound
|
|
758
844
|
| undefined;
|
|
759
845
|
seed?: number | null | undefined;
|
|
760
846
|
stop?: string | Array<string> | null | undefined;
|
|
@@ -785,11 +871,11 @@ export const ChatGenerationParams$outboundSchema: z.ZodType<
|
|
|
785
871
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
786
872
|
reasoning: z.lazy(() => Reasoning$outboundSchema).optional(),
|
|
787
873
|
responseFormat: z.union([
|
|
788
|
-
z.lazy(() =>
|
|
789
|
-
z.lazy(() =>
|
|
790
|
-
z.lazy(() =>
|
|
791
|
-
z.lazy(() =>
|
|
792
|
-
z.lazy(() =>
|
|
874
|
+
z.lazy(() => ChatGenerationParamsResponseFormatJSONSchema$outboundSchema),
|
|
875
|
+
z.lazy(() => ChatGenerationParamsResponseFormatGrammar$outboundSchema),
|
|
876
|
+
z.lazy(() => ChatGenerationParamsResponseFormatText$outboundSchema),
|
|
877
|
+
z.lazy(() => ChatGenerationParamsResponseFormatJSONObject$outboundSchema),
|
|
878
|
+
z.lazy(() => ChatGenerationParamsResponseFormatPython$outboundSchema),
|
|
793
879
|
]).optional(),
|
|
794
880
|
seed: z.nullable(z.number().int()).optional(),
|
|
795
881
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|