@effect/ai-openrouter 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Generated.js +422 -145
- package/dist/cjs/Generated.js.map +1 -1
- package/dist/dts/Generated.d.ts +932 -350
- package/dist/dts/Generated.d.ts.map +1 -1
- package/dist/dts/OpenRouterClient.d.ts +1 -1
- package/dist/esm/Generated.js +395 -133
- package/dist/esm/Generated.js.map +1 -1
- package/package.json +4 -4
- package/src/Generated.ts +386 -176
package/dist/cjs/Generated.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.ModelsListResponse = exports.ModelsCountResponse = exports.ModelName = exports.ModelGroup = exports.ModelArchitectureInstructType = exports.ModelArchitecture = exports.Model = exports.Message = exports.ListProviders200 = exports.ListParams = exports.ListEndpointsZdr200 = exports.ListEndpointsResponseArchitectureEnumInstructType = exports.ListEndpointsResponseArchitecture = exports.ListEndpointsResponse = exports.ListEndpoints200 = exports.List200 = exports.JSONSchemaConfig = exports.InternalServerResponseErrorData = exports.InternalServerResponse = exports.InputModality = exports.ImageGenerationStatus = exports.GetUserActivityParams = exports.GetUserActivity200 = exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.make = exports.WebSearchStatus = exports.WebSearchPreviewToolUserLocationType = exports.WebSearchPreviewToolUserLocation = exports.
|
|
6
|
+
exports.ModelsListResponse = exports.ModelsCountResponse = exports.ModelName = exports.ModelGroup = exports.ModelArchitectureInstructType = exports.ModelArchitecture = exports.Model = exports.Message = exports.ListProviders200 = exports.ListParams = exports.ListEndpointsZdr200 = exports.ListEndpointsResponseArchitectureEnumInstructType = exports.ListEndpointsResponseArchitecture = exports.ListEndpointsResponse = exports.ListEndpoints200 = exports.List200 = exports.JSONSchemaConfig = exports.InternalServerResponseErrorData = exports.InternalServerResponse = exports.InputModality = exports.ImageGenerationStatus = exports.GetUserActivityParams = exports.GetUserActivity200 = exports.GetParametersParams = exports.GetParameters200 = exports.GetModelsParams = exports.GetKey200 = exports.GetGenerationParams = exports.GetGeneration200DataApiType = exports.GetGeneration200 = exports.GetCurrentKey200 = exports.GetCredits200 = exports.ForbiddenResponseErrorData = exports.ForbiddenResponse = exports.FilePathType = exports.FilePath = exports.FileCitationType = exports.FileCitation = exports.FileAnnotationDetailType = exports.FileAnnotationDetail = exports.ExchangeAuthCodeForAPIKeyRequestCodeChallengeMethod = exports.ExchangeAuthCodeForAPIKeyRequest = exports.ExchangeAuthCodeForAPIKey200 = exports.EndpointStatus = exports.EdgeNetworkTimeoutResponseErrorData = exports.EdgeNetworkTimeoutResponse = exports.DeleteKeys200 = exports.DefaultParameters = exports.DataCollection = exports.CreateKeysRequestLimitReset = exports.CreateKeysRequest = exports.CreateKeys201 = exports.CreateEmbeddingsRequestEncodingFormat = exports.CreateEmbeddingsRequest = exports.CreateEmbeddings200Object = exports.CreateEmbeddings200 = exports.CreateCoinbaseCharge200 = exports.CreateChargeRequestChainId = exports.CreateChargeRequest = exports.CreateAuthKeysCodeRequestCodeChallengeMethod = exports.CreateAuthKeysCodeRequest = exports.CreateAuthKeysCode200 = exports.CompletionUsage = exports.CompletionResponse = exports.CompletionLogprobs = exports.CompletionFinishReasonEnum = exports.CompletionFinishReason = exports.CompletionCreateParams = exports.CompletionChoice = exports.ClientError = exports.ChatStreamOptions = exports.ChatResponseChoice = exports.ChatResponse = exports.ChatMessageToolCall = exports.ChatMessageTokenLogprobs = exports.ChatMessageTokenLogprob = exports.ChatMessageContentItemVideo = exports.ChatMessageContentItemText = exports.ChatMessageContentItemImageImageUrlDetail = exports.ChatMessageContentItemImage = exports.ChatMessageContentItemCacheControlTtl = exports.ChatMessageContentItemCacheControl = exports.ChatMessageContentItemAudio = exports.ChatMessageContentItem = exports.ChatGenerationTokenUsage = exports.ChatGenerationParamsRouteEnum = exports.ChatGenerationParamsReasoningEffortEnum = exports.ChatGenerationParamsProviderEnumDataCollectionEnum = exports.ChatGenerationParams = exports.ChatError = exports.ChatCompletionFinishReason = exports.CacheControlEphemeral = exports.BigNumberUnion = exports.BadRequestResponseErrorData = exports.BadRequestResponse = exports.BadGatewayResponseErrorData = exports.BadGatewayResponse = exports.AssistantMessage = exports.AnnotationDetail = exports.ActivityItem = void 0;
|
|
7
|
+
exports.ReasoningDetailSummary = exports.ReasoningDetailEncryptedType = exports.ReasoningDetailEncryptedFormat = exports.ReasoningDetailEncrypted = exports.ReasoningDetail = exports.Quantization = exports.PublicPricing = exports.PublicEndpointQuantizationEnum = exports.PublicEndpointQuantization = exports.PublicEndpoint = exports.ProviderSortUnion = exports.ProviderSortConfigPartitionEnum = exports.ProviderSortConfig = exports.ProviderSort = exports.ProviderPreferencesSort = exports.ProviderPreferences = exports.ProviderOverloadedResponseErrorData = exports.ProviderOverloadedResponse = exports.ProviderName = exports.PerRequestLimits = exports.PaymentRequiredResponseErrorData = exports.PaymentRequiredResponse = exports.PayloadTooLargeResponseErrorData = exports.PayloadTooLargeResponse = exports.Parameter = exports.PDFParserOptions = exports.PDFParserEngine = exports.OutputModality = exports.OutputMessageType = exports.OutputMessageStatusEnum = exports.OutputMessageRole = exports.OutputMessage = exports.OutputItemWebSearchCallType = exports.OutputItemWebSearchCall = exports.OutputItemReasoningType = exports.OutputItemReasoningStatusEnum = exports.OutputItemReasoning = exports.OutputItemImageGenerationCallType = exports.OutputItemImageGenerationCall = exports.OutputItemFunctionCallType = exports.OutputItemFunctionCallStatusEnum = exports.OutputItemFunctionCall = exports.OutputItemFileSearchCallType = exports.OutputItemFileSearchCall = exports.OpenResponsesWebSearchToolType = exports.OpenResponsesWebSearchTool = exports.OpenResponsesWebSearchPreviewToolType = exports.OpenResponsesWebSearchPreviewTool = exports.OpenResponsesWebSearchPreview20250311ToolType = exports.OpenResponsesWebSearchPreview20250311Tool = exports.OpenResponsesWebSearch20250826ToolType = exports.OpenResponsesWebSearch20250826Tool = exports.OpenResponsesResponseTextVerbosity = exports.OpenResponsesResponseText = exports.OpenResponsesRequestTruncationEnum = exports.OpenResponsesRequestTruncation = exports.OpenResponsesRequestServiceTier = exports.OpenResponsesRequestRoute = exports.OpenResponsesRequestMetadata = exports.OpenResponsesRequest = exports.OpenResponsesReasoningType = exports.OpenResponsesReasoningStatusEnum = exports.OpenResponsesReasoningFormat = exports.OpenResponsesReasoningConfig = exports.OpenResponsesReasoning = exports.OpenResponsesNonStreamingResponseObject = exports.OpenResponsesNonStreamingResponse = exports.OpenResponsesInputMessageItemType = exports.OpenResponsesInputMessageItemRoleEnum = exports.OpenResponsesInputMessageItem = exports.OpenResponsesInput = exports.OpenResponsesFunctionToolCallType = exports.OpenResponsesFunctionToolCall = exports.OpenResponsesFunctionCallOutputType = exports.OpenResponsesFunctionCallOutput = exports.OpenResponsesEasyInputMessageType = exports.OpenResponsesEasyInputMessageRoleEnum = exports.OpenResponsesEasyInputMessage = exports.OpenAIResponsesUsage = exports.OpenAIResponsesTruncation = exports.OpenAIResponsesToolChoiceEnumTypeEnum = exports.OpenAIResponsesToolChoiceEnumType = exports.OpenAIResponsesToolChoiceEnum = exports.OpenAIResponsesToolChoice = exports.OpenAIResponsesServiceTier = exports.OpenAIResponsesResponseStatus = exports.OpenAIResponsesRefusalContentType = exports.OpenAIResponsesRefusalContent = exports.OpenAIResponsesReasoningEffort = exports.OpenAIResponsesReasoningConfig = exports.OpenAIResponsesPrompt = exports.OpenAIResponsesInput = exports.OpenAIResponsesIncompleteDetailsReason = exports.OpenAIResponsesIncompleteDetails = exports.OpenAIResponsesIncludable = exports.OpenAIResponsesAnnotation = exports.NotFoundResponseErrorData = exports.NotFoundResponse = exports.NamedToolChoice = exports.ModelsListResponseData = void 0;
|
|
8
|
+
exports.make = exports.WebSearchStatus = exports.WebSearchPreviewToolUserLocationType = exports.WebSearchPreviewToolUserLocation = exports.WebSearchEngine = exports.UserMessage = exports.UpdateKeysRequestLimitReset = exports.UpdateKeysRequest = exports.UpdateKeys200 = exports.UnprocessableEntityResponseErrorData = exports.UnprocessableEntityResponse = exports.UnauthorizedResponseErrorData = exports.UnauthorizedResponse = exports.URLCitationType = exports.URLCitationAnnotationDetailType = exports.URLCitationAnnotationDetail = exports.URLCitation = exports.TopProviderInfo = exports.ToolResponseMessage = exports.ToolDefinitionJson = exports.ToolChoiceOption = exports.ToolCallStatus = exports.TooManyRequestsResponseErrorData = exports.TooManyRequestsResponse = exports.SystemMessage = exports.ServiceUnavailableResponseErrorData = exports.ServiceUnavailableResponse = exports.Schema6 = exports.Schema5Enum = exports.Schema5 = exports.Schema4 = exports.Schema3 = exports.Schema2 = exports.Schema1 = exports.Schema0 = exports.ResponsesWebSearchUserLocationType = exports.ResponsesWebSearchUserLocation = exports.ResponsesWebSearchCallOutputType = exports.ResponsesWebSearchCallOutput = exports.ResponsesSearchContextSize = exports.ResponsesOutputMessageType = exports.ResponsesOutputMessageStatusEnum = exports.ResponsesOutputMessageRole = exports.ResponsesOutputMessage = exports.ResponsesOutputItemReasoningType = exports.ResponsesOutputItemReasoningStatusEnum = exports.ResponsesOutputItemReasoning = exports.ResponsesOutputItemFunctionCallType = exports.ResponsesOutputItemFunctionCallStatusEnum = exports.ResponsesOutputItemFunctionCall = exports.ResponsesOutputItemFileSearchCallType = exports.ResponsesOutputItemFileSearchCall = exports.ResponsesImageGenerationCallType = exports.ResponsesImageGenerationCall = exports.ResponsesFormatTextType = exports.ResponsesFormatTextJSONSchemaConfigType = exports.ResponsesFormatTextJSONSchemaConfig = exports.ResponsesFormatText = exports.ResponsesFormatJSONObjectType = exports.ResponsesFormatJSONObject = exports.ResponsesErrorFieldCode = exports.ResponsesErrorField = exports.ResponseTextConfigVerbosity = exports.ResponseTextConfig = exports.ResponseOutputTextType = exports.ResponseOutputText = exports.ResponseInputTextType = exports.ResponseInputText = exports.ResponseInputImageType = exports.ResponseInputImageDetail = exports.ResponseInputImage = exports.ResponseInputFileType = exports.ResponseInputFile = exports.ResponseInputAudioType = exports.ResponseInputAudioInputAudioFormat = exports.ResponseInputAudio = exports.ResponseFormatTextGrammar = exports.ResponseFormatTextConfig = exports.ResponseFormatJSONSchema = exports.RequestTimeoutResponseErrorData = exports.RequestTimeoutResponse = exports.ReasoningTextContentType = exports.ReasoningTextContent = exports.ReasoningSummaryVerbosity = exports.ReasoningSummaryTextType = exports.ReasoningSummaryText = exports.ReasoningDetailTextType = exports.ReasoningDetailTextFormat = exports.ReasoningDetailText = exports.ReasoningDetailSummaryType = exports.ReasoningDetailSummaryFormat = void 0;
|
|
9
9
|
var HttpClientError = _interopRequireWildcard(require("@effect/platform/HttpClientError"));
|
|
10
10
|
var HttpClientRequest = _interopRequireWildcard(require("@effect/platform/HttpClientRequest"));
|
|
11
11
|
var HttpClientResponse = _interopRequireWildcard(require("@effect/platform/HttpClientResponse"));
|
|
@@ -19,7 +19,7 @@ class CacheControlEphemeral extends /*#__PURE__*/S.Class("CacheControlEphemeral"
|
|
|
19
19
|
exports.CacheControlEphemeral = CacheControlEphemeral;
|
|
20
20
|
class ReasoningDetailSummaryType extends /*#__PURE__*/S.Literal("reasoning.summary") {}
|
|
21
21
|
exports.ReasoningDetailSummaryType = ReasoningDetailSummaryType;
|
|
22
|
-
class ReasoningDetailSummaryFormat extends /*#__PURE__*/S.Literal("unknown", "openai-responses-v1", "anthropic-claude-v1"
|
|
22
|
+
class ReasoningDetailSummaryFormat extends /*#__PURE__*/S.Literal("unknown", "openai-responses-v1", "anthropic-claude-v1") {}
|
|
23
23
|
/**
|
|
24
24
|
* Reasoning summary detail
|
|
25
25
|
*/
|
|
@@ -41,7 +41,7 @@ class ReasoningDetailSummary extends /*#__PURE__*/S.Class("ReasoningDetailSummar
|
|
|
41
41
|
exports.ReasoningDetailSummary = ReasoningDetailSummary;
|
|
42
42
|
class ReasoningDetailEncryptedType extends /*#__PURE__*/S.Literal("reasoning.encrypted") {}
|
|
43
43
|
exports.ReasoningDetailEncryptedType = ReasoningDetailEncryptedType;
|
|
44
|
-
class ReasoningDetailEncryptedFormat extends /*#__PURE__*/S.Literal("unknown", "openai-responses-v1", "anthropic-claude-v1"
|
|
44
|
+
class ReasoningDetailEncryptedFormat extends /*#__PURE__*/S.Literal("unknown", "openai-responses-v1", "anthropic-claude-v1") {}
|
|
45
45
|
/**
|
|
46
46
|
* Encrypted reasoning detail
|
|
47
47
|
*/
|
|
@@ -63,7 +63,7 @@ class ReasoningDetailEncrypted extends /*#__PURE__*/S.Class("ReasoningDetailEncr
|
|
|
63
63
|
exports.ReasoningDetailEncrypted = ReasoningDetailEncrypted;
|
|
64
64
|
class ReasoningDetailTextType extends /*#__PURE__*/S.Literal("reasoning.text") {}
|
|
65
65
|
exports.ReasoningDetailTextType = ReasoningDetailTextType;
|
|
66
|
-
class ReasoningDetailTextFormat extends /*#__PURE__*/S.Literal("unknown", "openai-responses-v1", "anthropic-claude-v1"
|
|
66
|
+
class ReasoningDetailTextFormat extends /*#__PURE__*/S.Literal("unknown", "openai-responses-v1", "anthropic-claude-v1") {}
|
|
67
67
|
/**
|
|
68
68
|
* Text reasoning detail
|
|
69
69
|
*/
|
|
@@ -637,7 +637,7 @@ class OpenResponsesResponseText extends /*#__PURE__*/S.Class("OpenResponsesRespo
|
|
|
637
637
|
})
|
|
638
638
|
}) {}
|
|
639
639
|
exports.OpenResponsesResponseText = OpenResponsesResponseText;
|
|
640
|
-
class OpenAIResponsesReasoningEffort extends /*#__PURE__*/S.Literal("high", "medium", "low", "minimal", "none") {}
|
|
640
|
+
class OpenAIResponsesReasoningEffort extends /*#__PURE__*/S.Literal("xhigh", "high", "medium", "low", "minimal", "none") {}
|
|
641
641
|
exports.OpenAIResponsesReasoningEffort = OpenAIResponsesReasoningEffort;
|
|
642
642
|
class ReasoningSummaryVerbosity extends /*#__PURE__*/S.Literal("auto", "concise", "detailed") {}
|
|
643
643
|
exports.ReasoningSummaryVerbosity = ReasoningSummaryVerbosity;
|
|
@@ -668,9 +668,7 @@ class OpenAIResponsesPrompt extends /*#__PURE__*/S.Class("OpenAIResponsesPrompt"
|
|
|
668
668
|
exports.OpenAIResponsesPrompt = OpenAIResponsesPrompt;
|
|
669
669
|
class OpenAIResponsesIncludable extends /*#__PURE__*/S.Literal("file_search_call.results", "message.input_image.image_url", "computer_call_output.output.image_url", "reasoning.encrypted_content", "code_interpreter_call.outputs") {}
|
|
670
670
|
exports.OpenAIResponsesIncludable = OpenAIResponsesIncludable;
|
|
671
|
-
class
|
|
672
|
-
exports.OpenResponsesRequestServiceTierEnum = OpenResponsesRequestServiceTierEnum;
|
|
673
|
-
class OpenResponsesRequestServiceTier extends OpenResponsesRequestServiceTierEnum {}
|
|
671
|
+
class OpenResponsesRequestServiceTier extends /*#__PURE__*/S.Literal("auto") {}
|
|
674
672
|
exports.OpenResponsesRequestServiceTier = OpenResponsesRequestServiceTier;
|
|
675
673
|
class OpenResponsesRequestTruncationEnum extends /*#__PURE__*/S.Literal("auto", "disabled") {}
|
|
676
674
|
exports.OpenResponsesRequestTruncationEnum = OpenResponsesRequestTruncationEnum;
|
|
@@ -684,23 +682,55 @@ class OpenResponsesRequestTruncation extends OpenResponsesRequestTruncationEnum
|
|
|
684
682
|
exports.OpenResponsesRequestTruncation = OpenResponsesRequestTruncation;
|
|
685
683
|
class DataCollection extends /*#__PURE__*/S.Literal("deny", "allow") {}
|
|
686
684
|
exports.DataCollection = DataCollection;
|
|
687
|
-
class ProviderName extends /*#__PURE__*/S.Literal("AI21", "AionLabs", "Alibaba", "Amazon Bedrock", "Anthropic", "Arcee", "AtlasCloud", "Avian", "Azure", "BaseTen", "Black Forest Labs", "Cerebras", "Chutes", "Cirrascale", "Clarifai", "Cloudflare", "Cohere", "Crusoe", "DeepInfra", "DeepSeek", "Featherless", "Fireworks", "Friendli", "GMICloud", "Google", "Google AI Studio", "Groq", "Hyperbolic", "Inception", "InferenceNet", "Infermatic", "Inflection", "Liquid", "Mancer 2", "Minimax", "ModelRun", "Mistral", "Modular", "Moonshot AI", "Morph", "NCompass", "Nebius", "NextBit", "Novita", "Nvidia", "OpenAI", "OpenInference", "Parasail", "Perplexity", "Phala", "Relace", "SambaNova", "SiliconFlow", "Stealth", "Switchpoint", "Targon", "Together", "Venice", "WandB", "xAI", "Z.AI", "FakeProvider") {}
|
|
685
|
+
class ProviderName extends /*#__PURE__*/S.Literal("AI21", "AionLabs", "Alibaba", "Amazon Bedrock", "Amazon Nova", "Anthropic", "Arcee AI", "AtlasCloud", "Avian", "Azure", "BaseTen", "BytePlus", "Black Forest Labs", "Cerebras", "Chutes", "Cirrascale", "Clarifai", "Cloudflare", "Cohere", "Crusoe", "DeepInfra", "DeepSeek", "Featherless", "Fireworks", "Friendli", "GMICloud", "GoPomelo", "Google", "Google AI Studio", "Groq", "Hyperbolic", "Inception", "InferenceNet", "Infermatic", "Inflection", "Liquid", "Mara", "Mancer 2", "Minimax", "ModelRun", "Mistral", "Modular", "Moonshot AI", "Morph", "NCompass", "Nebius", "NextBit", "Novita", "Nvidia", "OpenAI", "OpenInference", "Parasail", "Perplexity", "Phala", "Relace", "SambaNova", "SiliconFlow", "Sourceful", "Stealth", "StreamLake", "Switchpoint", "Targon", "Together", "Venice", "WandB", "Xiaomi", "xAI", "Z.AI", "FakeProvider") {}
|
|
688
686
|
exports.ProviderName = ProviderName;
|
|
689
687
|
class Quantization extends /*#__PURE__*/S.Literal("int4", "int8", "fp4", "fp6", "fp8", "fp16", "bf16", "fp32", "unknown") {}
|
|
690
|
-
/**
|
|
691
|
-
* The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
692
|
-
*/
|
|
693
688
|
exports.Quantization = Quantization;
|
|
694
689
|
class ProviderSort extends /*#__PURE__*/S.Literal("price", "throughput", "latency") {}
|
|
690
|
+
exports.ProviderSort = ProviderSort;
|
|
691
|
+
class ProviderSortConfigPartitionEnum extends /*#__PURE__*/S.Literal("model", "none") {}
|
|
692
|
+
exports.ProviderSortConfigPartitionEnum = ProviderSortConfigPartitionEnum;
|
|
693
|
+
class ProviderSortConfig extends /*#__PURE__*/S.Class("ProviderSortConfig")({
|
|
694
|
+
"by": /*#__PURE__*/S.optionalWith(ProviderSort, {
|
|
695
|
+
nullable: true
|
|
696
|
+
}),
|
|
697
|
+
"partition": /*#__PURE__*/S.optionalWith(ProviderSortConfigPartitionEnum, {
|
|
698
|
+
nullable: true
|
|
699
|
+
})
|
|
700
|
+
}) {}
|
|
695
701
|
/**
|
|
696
|
-
* A value in string
|
|
702
|
+
* A value in string format that is a large number
|
|
697
703
|
*/
|
|
698
|
-
exports.
|
|
699
|
-
class BigNumberUnion extends
|
|
704
|
+
exports.ProviderSortConfig = ProviderSortConfig;
|
|
705
|
+
class BigNumberUnion extends S.String {}
|
|
700
706
|
/**
|
|
701
|
-
*
|
|
707
|
+
* The search engine to use for web search.
|
|
702
708
|
*/
|
|
703
709
|
exports.BigNumberUnion = BigNumberUnion;
|
|
710
|
+
class WebSearchEngine extends /*#__PURE__*/S.Literal("native", "exa") {}
|
|
711
|
+
/**
|
|
712
|
+
* The engine to use for parsing PDF files.
|
|
713
|
+
*/
|
|
714
|
+
exports.WebSearchEngine = WebSearchEngine;
|
|
715
|
+
class PDFParserEngine extends /*#__PURE__*/S.Literal("mistral-ocr", "pdf-text", "native") {}
|
|
716
|
+
/**
|
|
717
|
+
* Options for PDF parsing.
|
|
718
|
+
*/
|
|
719
|
+
exports.PDFParserEngine = PDFParserEngine;
|
|
720
|
+
class PDFParserOptions extends /*#__PURE__*/S.Class("PDFParserOptions")({
|
|
721
|
+
"engine": /*#__PURE__*/S.optionalWith(PDFParserEngine, {
|
|
722
|
+
nullable: true
|
|
723
|
+
})
|
|
724
|
+
}) {}
|
|
725
|
+
/**
|
|
726
|
+
* **DEPRECATED** Use providers.sort.partition instead. Backwards-compatible alias for providers.sort.partition. Accepts legacy values: "fallback" (maps to "model"), "sort" (maps to "none").
|
|
727
|
+
*/
|
|
728
|
+
exports.PDFParserOptions = PDFParserOptions;
|
|
729
|
+
class OpenResponsesRequestRoute extends /*#__PURE__*/S.Literal("fallback", "sort") {}
|
|
730
|
+
/**
|
|
731
|
+
* Request schema for Responses endpoint
|
|
732
|
+
*/
|
|
733
|
+
exports.OpenResponsesRequestRoute = OpenResponsesRequestRoute;
|
|
704
734
|
class OpenResponsesRequest extends /*#__PURE__*/S.Class("OpenResponsesRequest")({
|
|
705
735
|
"input": /*#__PURE__*/S.optionalWith(OpenResponsesInput, {
|
|
706
736
|
nullable: true
|
|
@@ -766,11 +796,13 @@ class OpenResponsesRequest extends /*#__PURE__*/S.Class("OpenResponsesRequest")(
|
|
|
766
796
|
"safety_identifier": /*#__PURE__*/S.optionalWith(S.String, {
|
|
767
797
|
nullable: true
|
|
768
798
|
}),
|
|
769
|
-
"store": /*#__PURE__*/S.optionalWith(S.
|
|
770
|
-
nullable: true
|
|
799
|
+
"store": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Literal(false), {
|
|
800
|
+
nullable: true,
|
|
801
|
+
default: () => false
|
|
771
802
|
}),
|
|
772
803
|
"service_tier": /*#__PURE__*/S.optionalWith(OpenResponsesRequestServiceTier, {
|
|
773
|
-
nullable: true
|
|
804
|
+
nullable: true,
|
|
805
|
+
default: () => "auto"
|
|
774
806
|
}),
|
|
775
807
|
"truncation": /*#__PURE__*/S.optionalWith(OpenResponsesRequestTruncation, {
|
|
776
808
|
nullable: true
|
|
@@ -836,7 +868,10 @@ class OpenResponsesRequest extends /*#__PURE__*/S.Class("OpenResponsesRequest")(
|
|
|
836
868
|
"quantizations": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(Quantization), {
|
|
837
869
|
nullable: true
|
|
838
870
|
}),
|
|
839
|
-
|
|
871
|
+
/**
|
|
872
|
+
* The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
873
|
+
*/
|
|
874
|
+
"sort": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Union(ProviderSort, ProviderSortConfig), {
|
|
840
875
|
nullable: true
|
|
841
876
|
}),
|
|
842
877
|
/**
|
|
@@ -860,6 +895,30 @@ class OpenResponsesRequest extends /*#__PURE__*/S.Class("OpenResponsesRequest")(
|
|
|
860
895
|
})
|
|
861
896
|
}), {
|
|
862
897
|
nullable: true
|
|
898
|
+
}),
|
|
899
|
+
/**
|
|
900
|
+
* Preferred minimum throughput (in tokens per second). Endpoints below this threshold may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.
|
|
901
|
+
*/
|
|
902
|
+
"preferred_min_throughput": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
903
|
+
nullable: true
|
|
904
|
+
}),
|
|
905
|
+
/**
|
|
906
|
+
* Preferred maximum latency (in seconds). Endpoints above this threshold may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.
|
|
907
|
+
*/
|
|
908
|
+
"preferred_max_latency": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
909
|
+
nullable: true
|
|
910
|
+
}),
|
|
911
|
+
/**
|
|
912
|
+
* **DEPRECATED** Use preferred_min_throughput instead. Backwards-compatible alias for preferred_min_throughput.
|
|
913
|
+
*/
|
|
914
|
+
"min_throughput": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
915
|
+
nullable: true
|
|
916
|
+
}),
|
|
917
|
+
/**
|
|
918
|
+
* **DEPRECATED** Use preferred_max_latency instead. Backwards-compatible alias for preferred_max_latency.
|
|
919
|
+
*/
|
|
920
|
+
"max_latency": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
921
|
+
nullable: true
|
|
863
922
|
})
|
|
864
923
|
}), {
|
|
865
924
|
nullable: true
|
|
@@ -871,35 +930,60 @@ class OpenResponsesRequest extends /*#__PURE__*/S.Class("OpenResponsesRequest")(
|
|
|
871
930
|
"id": /*#__PURE__*/S.Literal("moderation")
|
|
872
931
|
}), /*#__PURE__*/S.Struct({
|
|
873
932
|
"id": /*#__PURE__*/S.Literal("web"),
|
|
933
|
+
/**
|
|
934
|
+
* Set to false to disable the web-search plugin for this request. Defaults to true.
|
|
935
|
+
*/
|
|
936
|
+
"enabled": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
937
|
+
nullable: true
|
|
938
|
+
}),
|
|
874
939
|
"max_results": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
875
940
|
nullable: true
|
|
876
941
|
}),
|
|
877
942
|
"search_prompt": /*#__PURE__*/S.optionalWith(S.String, {
|
|
878
943
|
nullable: true
|
|
879
944
|
}),
|
|
880
|
-
"engine": /*#__PURE__*/S.optionalWith(
|
|
945
|
+
"engine": /*#__PURE__*/S.optionalWith(WebSearchEngine, {
|
|
881
946
|
nullable: true
|
|
882
947
|
})
|
|
883
948
|
}), /*#__PURE__*/S.Struct({
|
|
884
949
|
"id": /*#__PURE__*/S.Literal("file-parser"),
|
|
885
|
-
|
|
950
|
+
/**
|
|
951
|
+
* Set to false to disable the file-parser plugin for this request. Defaults to true.
|
|
952
|
+
*/
|
|
953
|
+
"enabled": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
886
954
|
nullable: true
|
|
887
955
|
}),
|
|
888
|
-
"pdf": /*#__PURE__*/S.optionalWith(
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
956
|
+
"pdf": /*#__PURE__*/S.optionalWith(PDFParserOptions, {
|
|
957
|
+
nullable: true
|
|
958
|
+
})
|
|
959
|
+
}), /*#__PURE__*/S.Struct({
|
|
960
|
+
"id": /*#__PURE__*/S.Literal("response-healing"),
|
|
961
|
+
/**
|
|
962
|
+
* Set to false to disable the response-healing plugin for this request. Defaults to true.
|
|
963
|
+
*/
|
|
964
|
+
"enabled": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
893
965
|
nullable: true
|
|
894
966
|
})
|
|
895
967
|
}))), {
|
|
896
968
|
nullable: true
|
|
897
969
|
}),
|
|
970
|
+
/**
|
|
971
|
+
* **DEPRECATED** Use providers.sort.partition instead. Backwards-compatible alias for providers.sort.partition. Accepts legacy values: "fallback" (maps to "model"), "sort" (maps to "none").
|
|
972
|
+
*/
|
|
973
|
+
"route": /*#__PURE__*/S.optionalWith(OpenResponsesRequestRoute, {
|
|
974
|
+
nullable: true
|
|
975
|
+
}),
|
|
898
976
|
/**
|
|
899
977
|
* A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 128 characters.
|
|
900
978
|
*/
|
|
901
979
|
"user": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(128)), {
|
|
902
980
|
nullable: true
|
|
981
|
+
}),
|
|
982
|
+
/**
|
|
983
|
+
* A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters.
|
|
984
|
+
*/
|
|
985
|
+
"session_id": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(128)), {
|
|
986
|
+
nullable: true
|
|
903
987
|
})
|
|
904
988
|
}) {}
|
|
905
989
|
exports.OpenResponsesRequest = OpenResponsesRequest;
|
|
@@ -1554,9 +1638,17 @@ class ForbiddenResponse extends /*#__PURE__*/S.Class("ForbiddenResponse")({
|
|
|
1554
1638
|
* Total credits purchased and used
|
|
1555
1639
|
*/
|
|
1556
1640
|
exports.ForbiddenResponse = ForbiddenResponse;
|
|
1557
|
-
class GetCredits200 extends /*#__PURE__*/S.
|
|
1558
|
-
|
|
1559
|
-
|
|
1641
|
+
class GetCredits200 extends /*#__PURE__*/S.Struct({
|
|
1642
|
+
"data": /*#__PURE__*/S.Struct({
|
|
1643
|
+
/**
|
|
1644
|
+
* Total credits purchased
|
|
1645
|
+
*/
|
|
1646
|
+
"total_credits": S.Number,
|
|
1647
|
+
/**
|
|
1648
|
+
* Total credits used
|
|
1649
|
+
*/
|
|
1650
|
+
"total_usage": S.Number
|
|
1651
|
+
})
|
|
1560
1652
|
}) {}
|
|
1561
1653
|
exports.GetCredits200 = GetCredits200;
|
|
1562
1654
|
class CreateChargeRequestChainId extends /*#__PURE__*/S.Literal(1, 137, 8453) {}
|
|
@@ -1600,7 +1692,120 @@ class CreateCoinbaseCharge200 extends /*#__PURE__*/S.Struct({
|
|
|
1600
1692
|
}) {}
|
|
1601
1693
|
exports.CreateCoinbaseCharge200 = CreateCoinbaseCharge200;
|
|
1602
1694
|
class CreateEmbeddingsRequestEncodingFormat extends /*#__PURE__*/S.Literal("float", "base64") {}
|
|
1695
|
+
/**
|
|
1696
|
+
* The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
1697
|
+
*/
|
|
1603
1698
|
exports.CreateEmbeddingsRequestEncodingFormat = CreateEmbeddingsRequestEncodingFormat;
|
|
1699
|
+
class ProviderPreferencesSort extends /*#__PURE__*/S.Literal("price", "throughput", "latency") {}
|
|
1700
|
+
/**
|
|
1701
|
+
* Provider routing preferences for the request.
|
|
1702
|
+
*/
|
|
1703
|
+
exports.ProviderPreferencesSort = ProviderPreferencesSort;
|
|
1704
|
+
class ProviderPreferences extends /*#__PURE__*/S.Class("ProviderPreferences")({
|
|
1705
|
+
/**
|
|
1706
|
+
* Whether to allow backup providers to serve requests
|
|
1707
|
+
* - true: (default) when the primary provider (or your custom providers in "order") is unavailable, use the next best provider.
|
|
1708
|
+
* - false: use only the primary/custom provider, and return the upstream error if it's unavailable.
|
|
1709
|
+
*/
|
|
1710
|
+
"allow_fallbacks": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
1711
|
+
nullable: true
|
|
1712
|
+
}),
|
|
1713
|
+
/**
|
|
1714
|
+
* Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.
|
|
1715
|
+
*/
|
|
1716
|
+
"require_parameters": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
1717
|
+
nullable: true
|
|
1718
|
+
}),
|
|
1719
|
+
"data_collection": /*#__PURE__*/S.optionalWith(DataCollection, {
|
|
1720
|
+
nullable: true
|
|
1721
|
+
}),
|
|
1722
|
+
/**
|
|
1723
|
+
* Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.
|
|
1724
|
+
*/
|
|
1725
|
+
"zdr": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
1726
|
+
nullable: true
|
|
1727
|
+
}),
|
|
1728
|
+
/**
|
|
1729
|
+
* Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used.
|
|
1730
|
+
*/
|
|
1731
|
+
"enforce_distillable_text": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
1732
|
+
nullable: true
|
|
1733
|
+
}),
|
|
1734
|
+
/**
|
|
1735
|
+
* An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.
|
|
1736
|
+
*/
|
|
1737
|
+
"order": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(ProviderName, S.String)), {
|
|
1738
|
+
nullable: true
|
|
1739
|
+
}),
|
|
1740
|
+
/**
|
|
1741
|
+
* List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.
|
|
1742
|
+
*/
|
|
1743
|
+
"only": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(ProviderName, S.String)), {
|
|
1744
|
+
nullable: true
|
|
1745
|
+
}),
|
|
1746
|
+
/**
|
|
1747
|
+
* List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.
|
|
1748
|
+
*/
|
|
1749
|
+
"ignore": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(ProviderName, S.String)), {
|
|
1750
|
+
nullable: true
|
|
1751
|
+
}),
|
|
1752
|
+
/**
|
|
1753
|
+
* A list of quantization levels to filter the provider by.
|
|
1754
|
+
*/
|
|
1755
|
+
"quantizations": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(Quantization), {
|
|
1756
|
+
nullable: true
|
|
1757
|
+
}),
|
|
1758
|
+
"sort": /*#__PURE__*/S.optionalWith(ProviderPreferencesSort, {
|
|
1759
|
+
nullable: true
|
|
1760
|
+
}),
|
|
1761
|
+
/**
|
|
1762
|
+
* The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
|
|
1763
|
+
*/
|
|
1764
|
+
"max_price": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
|
|
1765
|
+
"prompt": /*#__PURE__*/S.optionalWith(BigNumberUnion, {
|
|
1766
|
+
nullable: true
|
|
1767
|
+
}),
|
|
1768
|
+
"completion": /*#__PURE__*/S.optionalWith(BigNumberUnion, {
|
|
1769
|
+
nullable: true
|
|
1770
|
+
}),
|
|
1771
|
+
"image": /*#__PURE__*/S.optionalWith(BigNumberUnion, {
|
|
1772
|
+
nullable: true
|
|
1773
|
+
}),
|
|
1774
|
+
"audio": /*#__PURE__*/S.optionalWith(BigNumberUnion, {
|
|
1775
|
+
nullable: true
|
|
1776
|
+
}),
|
|
1777
|
+
"request": /*#__PURE__*/S.optionalWith(BigNumberUnion, {
|
|
1778
|
+
nullable: true
|
|
1779
|
+
})
|
|
1780
|
+
}), {
|
|
1781
|
+
nullable: true
|
|
1782
|
+
}),
|
|
1783
|
+
/**
|
|
1784
|
+
* Preferred minimum throughput (in tokens per second). Endpoints below this threshold may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.
|
|
1785
|
+
*/
|
|
1786
|
+
"preferred_min_throughput": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
1787
|
+
nullable: true
|
|
1788
|
+
}),
|
|
1789
|
+
/**
|
|
1790
|
+
* Preferred maximum latency (in seconds). Endpoints above this threshold may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.
|
|
1791
|
+
*/
|
|
1792
|
+
"preferred_max_latency": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
1793
|
+
nullable: true
|
|
1794
|
+
}),
|
|
1795
|
+
/**
|
|
1796
|
+
* **DEPRECATED** Use preferred_min_throughput instead. Backwards-compatible alias for preferred_min_throughput.
|
|
1797
|
+
*/
|
|
1798
|
+
"min_throughput": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
1799
|
+
nullable: true
|
|
1800
|
+
}),
|
|
1801
|
+
/**
|
|
1802
|
+
* **DEPRECATED** Use preferred_max_latency instead. Backwards-compatible alias for preferred_max_latency.
|
|
1803
|
+
*/
|
|
1804
|
+
"max_latency": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
1805
|
+
nullable: true
|
|
1806
|
+
})
|
|
1807
|
+
}) {}
|
|
1808
|
+
exports.ProviderPreferences = ProviderPreferences;
|
|
1604
1809
|
class CreateEmbeddingsRequest extends /*#__PURE__*/S.Class("CreateEmbeddingsRequest")({
|
|
1605
1810
|
"input": /*#__PURE__*/S.Union(S.String, /*#__PURE__*/S.Array(S.String), /*#__PURE__*/S.Array(S.Number), /*#__PURE__*/S.Array(/*#__PURE__*/S.Array(S.Number)), /*#__PURE__*/S.Array(/*#__PURE__*/S.Struct({
|
|
1606
1811
|
"content": /*#__PURE__*/S.Array(/*#__PURE__*/S.Union(/*#__PURE__*/S.Struct({
|
|
@@ -1623,86 +1828,7 @@ class CreateEmbeddingsRequest extends /*#__PURE__*/S.Class("CreateEmbeddingsRequ
|
|
|
1623
1828
|
"user": /*#__PURE__*/S.optionalWith(S.String, {
|
|
1624
1829
|
nullable: true
|
|
1625
1830
|
}),
|
|
1626
|
-
"provider": /*#__PURE__*/S.optionalWith(
|
|
1627
|
-
/**
|
|
1628
|
-
* Whether to allow backup providers to serve requests
|
|
1629
|
-
* - true: (default) when the primary provider (or your custom providers in "order") is unavailable, use the next best provider.
|
|
1630
|
-
* - false: use only the primary/custom provider, and return the upstream error if it's unavailable.
|
|
1631
|
-
*/
|
|
1632
|
-
"allow_fallbacks": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
1633
|
-
nullable: true
|
|
1634
|
-
}),
|
|
1635
|
-
/**
|
|
1636
|
-
* Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.
|
|
1637
|
-
*/
|
|
1638
|
-
"require_parameters": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
1639
|
-
nullable: true
|
|
1640
|
-
}),
|
|
1641
|
-
"data_collection": /*#__PURE__*/S.optionalWith(DataCollection, {
|
|
1642
|
-
nullable: true
|
|
1643
|
-
}),
|
|
1644
|
-
/**
|
|
1645
|
-
* Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.
|
|
1646
|
-
*/
|
|
1647
|
-
"zdr": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
1648
|
-
nullable: true
|
|
1649
|
-
}),
|
|
1650
|
-
/**
|
|
1651
|
-
* Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used.
|
|
1652
|
-
*/
|
|
1653
|
-
"enforce_distillable_text": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
1654
|
-
nullable: true
|
|
1655
|
-
}),
|
|
1656
|
-
/**
|
|
1657
|
-
* An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.
|
|
1658
|
-
*/
|
|
1659
|
-
"order": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(ProviderName, S.String)), {
|
|
1660
|
-
nullable: true
|
|
1661
|
-
}),
|
|
1662
|
-
/**
|
|
1663
|
-
* List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.
|
|
1664
|
-
*/
|
|
1665
|
-
"only": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(ProviderName, S.String)), {
|
|
1666
|
-
nullable: true
|
|
1667
|
-
}),
|
|
1668
|
-
/**
|
|
1669
|
-
* List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.
|
|
1670
|
-
*/
|
|
1671
|
-
"ignore": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Union(ProviderName, S.String)), {
|
|
1672
|
-
nullable: true
|
|
1673
|
-
}),
|
|
1674
|
-
/**
|
|
1675
|
-
* A list of quantization levels to filter the provider by.
|
|
1676
|
-
*/
|
|
1677
|
-
"quantizations": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(Quantization), {
|
|
1678
|
-
nullable: true
|
|
1679
|
-
}),
|
|
1680
|
-
"sort": /*#__PURE__*/S.optionalWith(ProviderSort, {
|
|
1681
|
-
nullable: true
|
|
1682
|
-
}),
|
|
1683
|
-
/**
|
|
1684
|
-
* The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
|
|
1685
|
-
*/
|
|
1686
|
-
"max_price": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
|
|
1687
|
-
"prompt": /*#__PURE__*/S.optionalWith(BigNumberUnion, {
|
|
1688
|
-
nullable: true
|
|
1689
|
-
}),
|
|
1690
|
-
"completion": /*#__PURE__*/S.optionalWith(BigNumberUnion, {
|
|
1691
|
-
nullable: true
|
|
1692
|
-
}),
|
|
1693
|
-
"image": /*#__PURE__*/S.optionalWith(BigNumberUnion, {
|
|
1694
|
-
nullable: true
|
|
1695
|
-
}),
|
|
1696
|
-
"audio": /*#__PURE__*/S.optionalWith(BigNumberUnion, {
|
|
1697
|
-
nullable: true
|
|
1698
|
-
}),
|
|
1699
|
-
"request": /*#__PURE__*/S.optionalWith(BigNumberUnion, {
|
|
1700
|
-
nullable: true
|
|
1701
|
-
})
|
|
1702
|
-
}), {
|
|
1703
|
-
nullable: true
|
|
1704
|
-
})
|
|
1705
|
-
}), {
|
|
1831
|
+
"provider": /*#__PURE__*/S.optionalWith(ProviderPreferences, {
|
|
1706
1832
|
nullable: true
|
|
1707
1833
|
}),
|
|
1708
1834
|
"input_type": /*#__PURE__*/S.optionalWith(S.String, {
|
|
@@ -1854,7 +1980,7 @@ class PerRequestLimits extends /*#__PURE__*/S.Class("PerRequestLimits")({
|
|
|
1854
1980
|
"completion_tokens": S.Number
|
|
1855
1981
|
}) {}
|
|
1856
1982
|
exports.PerRequestLimits = PerRequestLimits;
|
|
1857
|
-
class Parameter extends /*#__PURE__*/S.Literal("temperature", "top_p", "top_k", "min_p", "top_a", "frequency_penalty", "presence_penalty", "repetition_penalty", "max_tokens", "logit_bias", "logprobs", "top_logprobs", "seed", "response_format", "structured_outputs", "stop", "tools", "tool_choice", "parallel_tool_calls", "include_reasoning", "reasoning", "web_search_options", "verbosity") {}
|
|
1983
|
+
class Parameter extends /*#__PURE__*/S.Literal("temperature", "top_p", "top_k", "min_p", "top_a", "frequency_penalty", "presence_penalty", "repetition_penalty", "max_tokens", "logit_bias", "logprobs", "top_logprobs", "seed", "response_format", "structured_outputs", "stop", "tools", "tool_choice", "parallel_tool_calls", "include_reasoning", "reasoning", "reasoning_effort", "web_search_options", "verbosity") {}
|
|
1858
1984
|
/**
|
|
1859
1985
|
* Default parameters for this model
|
|
1860
1986
|
*/
|
|
@@ -2228,10 +2354,8 @@ class ListEndpointsZdr200 extends /*#__PURE__*/S.Struct({
|
|
|
2228
2354
|
"data": /*#__PURE__*/S.Array(PublicEndpoint)
|
|
2229
2355
|
}) {}
|
|
2230
2356
|
exports.ListEndpointsZdr200 = ListEndpointsZdr200;
|
|
2231
|
-
class GetParametersParamsProvider extends /*#__PURE__*/S.Literal("AI21", "AionLabs", "Alibaba", "Amazon Bedrock", "Anthropic", "Arcee", "AtlasCloud", "Avian", "Azure", "BaseTen", "Black Forest Labs", "Cerebras", "Chutes", "Cirrascale", "Clarifai", "Cloudflare", "Cohere", "Crusoe", "DeepInfra", "DeepSeek", "Featherless", "Fireworks", "Friendli", "GMICloud", "Google", "Google AI Studio", "Groq", "Hyperbolic", "Inception", "InferenceNet", "Infermatic", "Inflection", "Liquid", "Mancer 2", "Minimax", "ModelRun", "Mistral", "Modular", "Moonshot AI", "Morph", "NCompass", "Nebius", "NextBit", "Novita", "Nvidia", "OpenAI", "OpenInference", "Parasail", "Perplexity", "Phala", "Relace", "SambaNova", "SiliconFlow", "Stealth", "Switchpoint", "Targon", "Together", "Venice", "WandB", "xAI", "Z.AI", "FakeProvider") {}
|
|
2232
|
-
exports.GetParametersParamsProvider = GetParametersParamsProvider;
|
|
2233
2357
|
class GetParametersParams extends /*#__PURE__*/S.Struct({
|
|
2234
|
-
"provider": /*#__PURE__*/S.optionalWith(
|
|
2358
|
+
"provider": /*#__PURE__*/S.optionalWith(ProviderName, {
|
|
2235
2359
|
nullable: true
|
|
2236
2360
|
})
|
|
2237
2361
|
}) {}
|
|
@@ -2248,7 +2372,7 @@ class GetParameters200 extends /*#__PURE__*/S.Struct({
|
|
|
2248
2372
|
/**
|
|
2249
2373
|
* List of parameters supported by this model
|
|
2250
2374
|
*/
|
|
2251
|
-
"supported_parameters": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("temperature", "top_p", "top_k", "min_p", "top_a", "frequency_penalty", "presence_penalty", "repetition_penalty", "max_tokens", "logit_bias", "logprobs", "top_logprobs", "seed", "response_format", "structured_outputs", "stop", "tools", "tool_choice", "parallel_tool_calls", "include_reasoning", "reasoning", "web_search_options", "verbosity"))
|
|
2375
|
+
"supported_parameters": /*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("temperature", "top_p", "top_k", "min_p", "top_a", "frequency_penalty", "presence_penalty", "repetition_penalty", "max_tokens", "logit_bias", "logprobs", "top_logprobs", "seed", "response_format", "structured_outputs", "stop", "tools", "tool_choice", "parallel_tool_calls", "include_reasoning", "reasoning", "reasoning_effort", "web_search_options", "verbosity"))
|
|
2252
2376
|
})
|
|
2253
2377
|
}) {}
|
|
2254
2378
|
exports.GetParameters200 = GetParameters200;
|
|
@@ -2907,9 +3031,31 @@ class CreateAuthKeysCode200 extends /*#__PURE__*/S.Struct({
|
|
|
2907
3031
|
})
|
|
2908
3032
|
}) {}
|
|
2909
3033
|
exports.CreateAuthKeysCode200 = CreateAuthKeysCode200;
|
|
3034
|
+
class ChatGenerationParamsProviderEnumDataCollectionEnum extends /*#__PURE__*/S.Literal("deny", "allow") {}
|
|
3035
|
+
exports.ChatGenerationParamsProviderEnumDataCollectionEnum = ChatGenerationParamsProviderEnumDataCollectionEnum;
|
|
3036
|
+
class Schema0 extends /*#__PURE__*/S.Array(/*#__PURE__*/S.Union(/*#__PURE__*/S.Literal("AI21", "AionLabs", "Alibaba", "Amazon Bedrock", "Amazon Nova", "Anthropic", "Arcee AI", "AtlasCloud", "Avian", "Azure", "BaseTen", "BytePlus", "Black Forest Labs", "Cerebras", "Chutes", "Cirrascale", "Clarifai", "Cloudflare", "Cohere", "Crusoe", "DeepInfra", "DeepSeek", "Featherless", "Fireworks", "Friendli", "GMICloud", "GoPomelo", "Google", "Google AI Studio", "Groq", "Hyperbolic", "Inception", "InferenceNet", "Infermatic", "Inflection", "Liquid", "Mara", "Mancer 2", "Minimax", "ModelRun", "Mistral", "Modular", "Moonshot AI", "Morph", "NCompass", "Nebius", "NextBit", "Novita", "Nvidia", "OpenAI", "OpenInference", "Parasail", "Perplexity", "Phala", "Relace", "SambaNova", "SiliconFlow", "Sourceful", "Stealth", "StreamLake", "Switchpoint", "Targon", "Together", "Venice", "WandB", "Xiaomi", "xAI", "Z.AI", "FakeProvider"), S.String)) {}
|
|
3037
|
+
exports.Schema0 = Schema0;
|
|
3038
|
+
class ProviderSortUnion extends /*#__PURE__*/S.Union(ProviderSort, ProviderSortConfig) {}
|
|
3039
|
+
exports.ProviderSortUnion = ProviderSortUnion;
|
|
3040
|
+
class Schema1 extends /*#__PURE__*/S.Union(S.Number, S.String, S.Number) {}
|
|
3041
|
+
exports.Schema1 = Schema1;
|
|
3042
|
+
class ChatGenerationParamsRouteEnum extends /*#__PURE__*/S.Literal("fallback", "sort") {}
|
|
3043
|
+
exports.ChatGenerationParamsRouteEnum = ChatGenerationParamsRouteEnum;
|
|
3044
|
+
class ChatMessageContentItemCacheControlTtl extends /*#__PURE__*/S.Literal("5m", "1h") {}
|
|
3045
|
+
exports.ChatMessageContentItemCacheControlTtl = ChatMessageContentItemCacheControlTtl;
|
|
3046
|
+
class ChatMessageContentItemCacheControl extends /*#__PURE__*/S.Class("ChatMessageContentItemCacheControl")({
|
|
3047
|
+
"type": /*#__PURE__*/S.Literal("ephemeral"),
|
|
3048
|
+
"ttl": /*#__PURE__*/S.optionalWith(ChatMessageContentItemCacheControlTtl, {
|
|
3049
|
+
nullable: true
|
|
3050
|
+
})
|
|
3051
|
+
}) {}
|
|
3052
|
+
exports.ChatMessageContentItemCacheControl = ChatMessageContentItemCacheControl;
|
|
2910
3053
|
class ChatMessageContentItemText extends /*#__PURE__*/S.Class("ChatMessageContentItemText")({
|
|
2911
3054
|
"type": /*#__PURE__*/S.Literal("text"),
|
|
2912
|
-
"text": S.String
|
|
3055
|
+
"text": S.String,
|
|
3056
|
+
"cache_control": /*#__PURE__*/S.optionalWith(ChatMessageContentItemCacheControl, {
|
|
3057
|
+
nullable: true
|
|
3058
|
+
})
|
|
2913
3059
|
}) {}
|
|
2914
3060
|
exports.ChatMessageContentItemText = ChatMessageContentItemText;
|
|
2915
3061
|
class SystemMessage extends /*#__PURE__*/S.Class("SystemMessage")({
|
|
@@ -2932,38 +3078,19 @@ class ChatMessageContentItemImage extends /*#__PURE__*/S.Class("ChatMessageConte
|
|
|
2932
3078
|
})
|
|
2933
3079
|
}) {}
|
|
2934
3080
|
exports.ChatMessageContentItemImage = ChatMessageContentItemImage;
|
|
2935
|
-
class ChatMessageContentItemAudioInputAudioFormat extends /*#__PURE__*/S.Literal("wav", "mp3", "flac", "m4a", "ogg", "pcm16", "pcm24") {}
|
|
2936
|
-
exports.ChatMessageContentItemAudioInputAudioFormat = ChatMessageContentItemAudioInputAudioFormat;
|
|
2937
3081
|
class ChatMessageContentItemAudio extends /*#__PURE__*/S.Class("ChatMessageContentItemAudio")({
|
|
2938
3082
|
"type": /*#__PURE__*/S.Literal("input_audio"),
|
|
2939
3083
|
"input_audio": /*#__PURE__*/S.Struct({
|
|
2940
3084
|
"data": S.String,
|
|
2941
|
-
"format":
|
|
3085
|
+
"format": S.String
|
|
2942
3086
|
})
|
|
2943
3087
|
}) {}
|
|
2944
3088
|
exports.ChatMessageContentItemAudio = ChatMessageContentItemAudio;
|
|
2945
|
-
class VideoURL extends /*#__PURE__*/S.Class("VideoURL")({
|
|
2946
|
-
"url": S.String
|
|
2947
|
-
}) {}
|
|
2948
|
-
exports.VideoURL = VideoURL;
|
|
2949
3089
|
class ChatMessageContentItemVideo extends /*#__PURE__*/S.Record({
|
|
2950
3090
|
key: S.String,
|
|
2951
3091
|
value: S.Unknown
|
|
2952
3092
|
}) {}
|
|
2953
3093
|
exports.ChatMessageContentItemVideo = ChatMessageContentItemVideo;
|
|
2954
|
-
class ChatMessageContentItemFile extends /*#__PURE__*/S.Class("ChatMessageContentItemFile")({
|
|
2955
|
-
"type": /*#__PURE__*/S.Literal("file"),
|
|
2956
|
-
"file": /*#__PURE__*/S.Struct({
|
|
2957
|
-
"file_data": S.String,
|
|
2958
|
-
"file_id": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2959
|
-
nullable: true
|
|
2960
|
-
}),
|
|
2961
|
-
"filename": /*#__PURE__*/S.optionalWith(S.String, {
|
|
2962
|
-
nullable: true
|
|
2963
|
-
})
|
|
2964
|
-
})
|
|
2965
|
-
}) {}
|
|
2966
|
-
exports.ChatMessageContentItemFile = ChatMessageContentItemFile;
|
|
2967
3094
|
class ChatMessageContentItem extends /*#__PURE__*/S.Record({
|
|
2968
3095
|
key: S.String,
|
|
2969
3096
|
value: S.Unknown
|
|
@@ -3027,7 +3154,7 @@ class Message extends /*#__PURE__*/S.Record({
|
|
|
3027
3154
|
exports.Message = Message;
|
|
3028
3155
|
class ModelName extends S.String {}
|
|
3029
3156
|
exports.ModelName = ModelName;
|
|
3030
|
-
class ChatGenerationParamsReasoningEffortEnum extends /*#__PURE__*/S.Literal("
|
|
3157
|
+
class ChatGenerationParamsReasoningEffortEnum extends /*#__PURE__*/S.Literal("xhigh", "high", "medium", "low", "minimal", "none") {}
|
|
3031
3158
|
exports.ChatGenerationParamsReasoningEffortEnum = ChatGenerationParamsReasoningEffortEnum;
|
|
3032
3159
|
class JSONSchemaConfig extends /*#__PURE__*/S.Class("JSONSchemaConfig")({
|
|
3033
3160
|
"name": /*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(64)),
|
|
@@ -3090,6 +3217,127 @@ class ToolDefinitionJson extends /*#__PURE__*/S.Class("ToolDefinitionJson")({
|
|
|
3090
3217
|
}) {}
|
|
3091
3218
|
exports.ToolDefinitionJson = ToolDefinitionJson;
|
|
3092
3219
|
class ChatGenerationParams extends /*#__PURE__*/S.Class("ChatGenerationParams")({
|
|
3220
|
+
/**
|
|
3221
|
+
* When multiple model providers are available, optionally indicate your routing preference.
|
|
3222
|
+
*/
|
|
3223
|
+
"provider": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
|
|
3224
|
+
/**
|
|
3225
|
+
* Whether to allow backup providers to serve requests
|
|
3226
|
+
* - true: (default) when the primary provider (or your custom providers in "order") is unavailable, use the next best provider.
|
|
3227
|
+
* - false: use only the primary/custom provider, and return the upstream error if it's unavailable.
|
|
3228
|
+
*/
|
|
3229
|
+
"allow_fallbacks": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
3230
|
+
nullable: true
|
|
3231
|
+
}),
|
|
3232
|
+
/**
|
|
3233
|
+
* Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.
|
|
3234
|
+
*/
|
|
3235
|
+
"require_parameters": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
3236
|
+
nullable: true
|
|
3237
|
+
}),
|
|
3238
|
+
/**
|
|
3239
|
+
* Data collection setting. If no available model provider meets the requirement, your request will return an error.
|
|
3240
|
+
* - allow: (default) allow providers which store user data non-transiently and may train on it
|
|
3241
|
+
*
|
|
3242
|
+
* - deny: use only providers which do not collect user data.
|
|
3243
|
+
*/
|
|
3244
|
+
"data_collection": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Literal("deny", "allow"), {
|
|
3245
|
+
nullable: true
|
|
3246
|
+
}),
|
|
3247
|
+
"zdr": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
3248
|
+
nullable: true
|
|
3249
|
+
}),
|
|
3250
|
+
"enforce_distillable_text": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
3251
|
+
nullable: true
|
|
3252
|
+
}),
|
|
3253
|
+
/**
|
|
3254
|
+
* An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.
|
|
3255
|
+
*/
|
|
3256
|
+
"order": /*#__PURE__*/S.optionalWith(Schema0, {
|
|
3257
|
+
nullable: true
|
|
3258
|
+
}),
|
|
3259
|
+
/**
|
|
3260
|
+
* List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.
|
|
3261
|
+
*/
|
|
3262
|
+
"only": /*#__PURE__*/S.optionalWith(Schema0, {
|
|
3263
|
+
nullable: true
|
|
3264
|
+
}),
|
|
3265
|
+
/**
|
|
3266
|
+
* List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.
|
|
3267
|
+
*/
|
|
3268
|
+
"ignore": /*#__PURE__*/S.optionalWith(Schema0, {
|
|
3269
|
+
nullable: true
|
|
3270
|
+
}),
|
|
3271
|
+
/**
|
|
3272
|
+
* A list of quantization levels to filter the provider by.
|
|
3273
|
+
*/
|
|
3274
|
+
"quantizations": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Literal("int4", "int8", "fp4", "fp6", "fp8", "fp16", "bf16", "fp32", "unknown")), {
|
|
3275
|
+
nullable: true
|
|
3276
|
+
}),
|
|
3277
|
+
/**
|
|
3278
|
+
* The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
|
|
3279
|
+
*/
|
|
3280
|
+
"sort": /*#__PURE__*/S.optionalWith(ProviderSortUnion, {
|
|
3281
|
+
nullable: true
|
|
3282
|
+
}),
|
|
3283
|
+
/**
|
|
3284
|
+
* The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
|
|
3285
|
+
*/
|
|
3286
|
+
"max_price": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
|
|
3287
|
+
"prompt": /*#__PURE__*/S.optionalWith(Schema1, {
|
|
3288
|
+
nullable: true
|
|
3289
|
+
}),
|
|
3290
|
+
"completion": /*#__PURE__*/S.optionalWith(Schema1, {
|
|
3291
|
+
nullable: true
|
|
3292
|
+
}),
|
|
3293
|
+
"image": /*#__PURE__*/S.optionalWith(Schema1, {
|
|
3294
|
+
nullable: true
|
|
3295
|
+
}),
|
|
3296
|
+
"audio": /*#__PURE__*/S.optionalWith(Schema1, {
|
|
3297
|
+
nullable: true
|
|
3298
|
+
}),
|
|
3299
|
+
"request": /*#__PURE__*/S.optionalWith(Schema1, {
|
|
3300
|
+
nullable: true
|
|
3301
|
+
})
|
|
3302
|
+
}), {
|
|
3303
|
+
nullable: true
|
|
3304
|
+
}),
|
|
3305
|
+
"preferred_min_throughput": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
3306
|
+
nullable: true
|
|
3307
|
+
}),
|
|
3308
|
+
"preferred_max_latency": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
3309
|
+
nullable: true
|
|
3310
|
+
}),
|
|
3311
|
+
"min_throughput": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
3312
|
+
nullable: true
|
|
3313
|
+
}),
|
|
3314
|
+
"max_latency": /*#__PURE__*/S.optionalWith(S.Number, {
|
|
3315
|
+
nullable: true
|
|
3316
|
+
})
|
|
3317
|
+
}), {
|
|
3318
|
+
nullable: true
|
|
3319
|
+
}),
|
|
3320
|
+
/**
|
|
3321
|
+
* Plugins you want to enable for this request, including their settings.
|
|
3322
|
+
*/
|
|
3323
|
+
"plugins": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(/*#__PURE__*/S.Record({
|
|
3324
|
+
key: S.String,
|
|
3325
|
+
value: S.Unknown
|
|
3326
|
+
})), {
|
|
3327
|
+
nullable: true
|
|
3328
|
+
}),
|
|
3329
|
+
"route": /*#__PURE__*/S.optionalWith(ChatGenerationParamsRouteEnum, {
|
|
3330
|
+
nullable: true
|
|
3331
|
+
}),
|
|
3332
|
+
"user": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3333
|
+
nullable: true
|
|
3334
|
+
}),
|
|
3335
|
+
/**
|
|
3336
|
+
* A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters.
|
|
3337
|
+
*/
|
|
3338
|
+
"session_id": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.String.pipe(/*#__PURE__*/S.maxLength(128)), {
|
|
3339
|
+
nullable: true
|
|
3340
|
+
}),
|
|
3093
3341
|
"messages": /*#__PURE__*/S.NonEmptyArray(Message).pipe(/*#__PURE__*/S.minItems(1)),
|
|
3094
3342
|
"model": /*#__PURE__*/S.optionalWith(ModelName, {
|
|
3095
3343
|
nullable: true
|
|
@@ -3170,15 +3418,32 @@ class ChatGenerationParams extends /*#__PURE__*/S.Class("ChatGenerationParams")(
|
|
|
3170
3418
|
nullable: true,
|
|
3171
3419
|
default: () => 1
|
|
3172
3420
|
}),
|
|
3173
|
-
"
|
|
3421
|
+
"debug": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Struct({
|
|
3422
|
+
"echo_upstream_body": /*#__PURE__*/S.optionalWith(S.Boolean, {
|
|
3423
|
+
nullable: true
|
|
3424
|
+
})
|
|
3425
|
+
}), {
|
|
3174
3426
|
nullable: true
|
|
3175
3427
|
})
|
|
3176
3428
|
}) {}
|
|
3177
3429
|
exports.ChatGenerationParams = ChatGenerationParams;
|
|
3178
|
-
class
|
|
3179
|
-
exports.ChatCompletionFinishReasonEnum = ChatCompletionFinishReasonEnum;
|
|
3180
|
-
class ChatCompletionFinishReason extends /*#__PURE__*/S.Union(ChatCompletionFinishReasonEnum, S.Null) {}
|
|
3430
|
+
class ChatCompletionFinishReason extends /*#__PURE__*/S.Literal("tool_calls", "stop", "length", "content_filter", "error") {}
|
|
3181
3431
|
exports.ChatCompletionFinishReason = ChatCompletionFinishReason;
|
|
3432
|
+
class Schema2 extends /*#__PURE__*/S.Union(ChatCompletionFinishReason, S.Null) {}
|
|
3433
|
+
exports.Schema2 = Schema2;
|
|
3434
|
+
class Schema4 extends /*#__PURE__*/S.Union(S.String, S.Null) {}
|
|
3435
|
+
exports.Schema4 = Schema4;
|
|
3436
|
+
class Schema5Enum extends /*#__PURE__*/S.Literal("unknown", "openai-responses-v1", "xai-responses-v1", "anthropic-claude-v1", "google-gemini-v1") {}
|
|
3437
|
+
exports.Schema5Enum = Schema5Enum;
|
|
3438
|
+
class Schema5 extends /*#__PURE__*/S.Union(Schema5Enum, S.Null) {}
|
|
3439
|
+
exports.Schema5 = Schema5;
|
|
3440
|
+
class Schema6 extends S.Number {}
|
|
3441
|
+
exports.Schema6 = Schema6;
|
|
3442
|
+
class Schema3 extends /*#__PURE__*/S.Record({
|
|
3443
|
+
key: S.String,
|
|
3444
|
+
value: S.Unknown
|
|
3445
|
+
}) {}
|
|
3446
|
+
exports.Schema3 = Schema3;
|
|
3182
3447
|
class ChatMessageTokenLogprob extends /*#__PURE__*/S.Class("ChatMessageTokenLogprob")({
|
|
3183
3448
|
"token": S.String,
|
|
3184
3449
|
"logprob": S.Number,
|
|
@@ -3200,9 +3465,12 @@ class ChatMessageTokenLogprobs extends /*#__PURE__*/S.Class("ChatMessageTokenLog
|
|
|
3200
3465
|
}) {}
|
|
3201
3466
|
exports.ChatMessageTokenLogprobs = ChatMessageTokenLogprobs;
|
|
3202
3467
|
class ChatResponseChoice extends /*#__PURE__*/S.Class("ChatResponseChoice")({
|
|
3203
|
-
"finish_reason": /*#__PURE__*/S.NullOr(
|
|
3468
|
+
"finish_reason": /*#__PURE__*/S.NullOr(ChatCompletionFinishReason),
|
|
3204
3469
|
"index": S.Number,
|
|
3205
3470
|
"message": AssistantMessage,
|
|
3471
|
+
"reasoning_details": /*#__PURE__*/S.optionalWith(/*#__PURE__*/S.Array(Schema3), {
|
|
3472
|
+
nullable: true
|
|
3473
|
+
}),
|
|
3206
3474
|
"logprobs": /*#__PURE__*/S.optionalWith(ChatMessageTokenLogprobs, {
|
|
3207
3475
|
nullable: true
|
|
3208
3476
|
})
|
|
@@ -3379,7 +3647,13 @@ class CompletionChoice extends /*#__PURE__*/S.Class("CompletionChoice")({
|
|
|
3379
3647
|
"text": S.String,
|
|
3380
3648
|
"index": S.Number,
|
|
3381
3649
|
"logprobs": /*#__PURE__*/S.NullOr(CompletionLogprobs),
|
|
3382
|
-
"finish_reason": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Literal("stop", "length", "content_filter"))
|
|
3650
|
+
"finish_reason": /*#__PURE__*/S.NullOr(/*#__PURE__*/S.Literal("stop", "length", "content_filter")),
|
|
3651
|
+
"native_finish_reason": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3652
|
+
nullable: true
|
|
3653
|
+
}),
|
|
3654
|
+
"reasoning": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3655
|
+
nullable: true
|
|
3656
|
+
})
|
|
3383
3657
|
}) {}
|
|
3384
3658
|
exports.CompletionChoice = CompletionChoice;
|
|
3385
3659
|
class CompletionUsage extends /*#__PURE__*/S.Class("CompletionUsage")({
|
|
@@ -3393,6 +3667,9 @@ class CompletionResponse extends /*#__PURE__*/S.Class("CompletionResponse")({
|
|
|
3393
3667
|
"object": /*#__PURE__*/S.Literal("text_completion"),
|
|
3394
3668
|
"created": S.Number,
|
|
3395
3669
|
"model": S.String,
|
|
3670
|
+
"provider": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3671
|
+
nullable: true
|
|
3672
|
+
}),
|
|
3396
3673
|
"system_fingerprint": /*#__PURE__*/S.optionalWith(S.String, {
|
|
3397
3674
|
nullable: true
|
|
3398
3675
|
}),
|