@effect/ai-openrouter 4.0.0-beta.4 → 4.0.0-beta.40

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/Generated.js CHANGED
@@ -398,7 +398,7 @@ export const OpenAIResponsesIncludable = /*#__PURE__*/Schema.Literals(["file_sea
398
398
  export const DataCollection = /*#__PURE__*/Schema.Literals(["deny", "allow"]).annotate({
399
399
  "description": "Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data."
400
400
  });
401
- export const ProviderName = /*#__PURE__*/Schema.Literals(["AI21", "AionLabs", "Alibaba", "Ambient", "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", "Google", "Google AI Studio", "Groq", "Hyperbolic", "Inception", "Inceptron", "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", "Seed", "SiliconFlow", "Sourceful", "StepFun", "Stealth", "StreamLake", "Switchpoint", "Together", "Upstage", "Venice", "WandB", "Xiaomi", "xAI", "Z.AI", "FakeProvider"]);
401
+ export const ProviderName = /*#__PURE__*/Schema.Literals(["AI21", "AionLabs", "Alibaba", "Ambient", "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", "Google", "Google AI Studio", "Groq", "Hyperbolic", "Inception", "Inceptron", "InferenceNet", "Infermatic", "Io Net", "Inflection", "Liquid", "Mara", "Mancer 2", "Minimax", "ModelRun", "Mistral", "Modular", "Moonshot AI", "Morph", "NCompass", "Nebius", "NextBit", "Novita", "Nvidia", "OpenAI", "OpenInference", "Parasail", "Perplexity", "Phala", "Relace", "SambaNova", "Seed", "SiliconFlow", "Sourceful", "StepFun", "Stealth", "StreamLake", "Switchpoint", "Together", "Upstage", "Venice", "WandB", "Xiaomi", "xAI", "Z.AI", "FakeProvider"]);
402
402
  export const Quantization = /*#__PURE__*/Schema.Literals(["int4", "int8", "fp4", "fp6", "fp8", "fp16", "bf16", "fp32", "unknown"]);
403
403
  export const ProviderSort = /*#__PURE__*/Schema.Literals(["price", "throughput", "latency"]);
404
404
  export const BigNumberUnion = /*#__PURE__*/Schema.String.annotate({
@@ -1313,11 +1313,11 @@ export const PercentileStats = /*#__PURE__*/Schema.Struct({
1313
1313
  }).annotate({
1314
1314
  "description": "Latency percentiles in milliseconds over the last 30 minutes. Latency measures time to first token. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests."
1315
1315
  });
1316
- export const __schema5 = /*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Literals(["AI21", "AionLabs", "Alibaba", "Ambient", "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", "Google", "Google AI Studio", "Groq", "Hyperbolic", "Inception", "Inceptron", "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", "Seed", "SiliconFlow", "Sourceful", "StepFun", "Stealth", "StreamLake", "Switchpoint", "Together", "Upstage", "Venice", "WandB", "Xiaomi", "xAI", "Z.AI", "FakeProvider"]), Schema.String]));
1316
+ export const __schema5 = /*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Literals(["AI21", "AionLabs", "Alibaba", "Ambient", "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", "Google", "Google AI Studio", "Groq", "Hyperbolic", "Inception", "Inceptron", "InferenceNet", "Infermatic", "Io Net", "Inflection", "Liquid", "Mara", "Mancer 2", "Minimax", "ModelRun", "Mistral", "Modular", "Moonshot AI", "Morph", "NCompass", "Nebius", "NextBit", "Novita", "Nvidia", "OpenAI", "OpenInference", "Parasail", "Perplexity", "Phala", "Relace", "SambaNova", "Seed", "SiliconFlow", "Sourceful", "StepFun", "Stealth", "StreamLake", "Switchpoint", "Together", "Upstage", "Venice", "WandB", "Xiaomi", "xAI", "Z.AI", "FakeProvider"]), Schema.String]));
1317
1317
  export const __schema11 = /*#__PURE__*/Schema.Number.check(/*#__PURE__*/Schema.isFinite());
1318
1318
  export const __schema13 = Schema.Unknown;
1319
- export const __schema20 = /*#__PURE__*/Schema.Union([Schema.String, Schema.Null]);
1320
- export const __schema21 = /*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Literals(["unknown", "openai-responses-v1", "azure-openai-responses-v1", "xai-responses-v1", "anthropic-claude-v1", "google-gemini-v1"]), Schema.Null]);
1319
+ export const __schema21 = /*#__PURE__*/Schema.Union([Schema.String, Schema.Null]);
1320
+ export const __schema22 = /*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Literals(["unknown", "openai-responses-v1", "azure-openai-responses-v1", "xai-responses-v1", "anthropic-claude-v1", "google-gemini-v1"]), Schema.Null]);
1321
1321
  export const ModelName = Schema.String;
1322
1322
  export const ChatMessageContentItemImage = /*#__PURE__*/Schema.Struct({
1323
1323
  "type": /*#__PURE__*/Schema.Literal("image_url"),
@@ -1396,15 +1396,6 @@ export const ChatMessageContentItemCacheControl = /*#__PURE__*/Schema.Struct({
1396
1396
  "type": /*#__PURE__*/Schema.Literal("ephemeral"),
1397
1397
  "ttl": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Literals(["5m", "1h"]))
1398
1398
  });
1399
- export const ToolDefinitionJson = /*#__PURE__*/Schema.Struct({
1400
- "type": /*#__PURE__*/Schema.Literal("function"),
1401
- "function": /*#__PURE__*/Schema.Struct({
1402
- "name": /*#__PURE__*/Schema.String.check(/*#__PURE__*/Schema.isMaxLength(64)),
1403
- "description": /*#__PURE__*/Schema.optionalKey(Schema.String),
1404
- "parameters": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Struct({}).check(/*#__PURE__*/Schema.isPropertyNames(Schema.String))),
1405
- "strict": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([Schema.Boolean, Schema.Null]))
1406
- })
1407
- });
1408
1399
  export const NamedToolChoice = /*#__PURE__*/Schema.Struct({
1409
1400
  "type": /*#__PURE__*/Schema.Literal("function"),
1410
1401
  "function": /*#__PURE__*/Schema.Struct({
@@ -1416,10 +1407,10 @@ export const ChatStreamOptions = /*#__PURE__*/Schema.Struct({
1416
1407
  });
1417
1408
  export const ChatStreamingMessageToolCall = /*#__PURE__*/Schema.Struct({
1418
1409
  "index": /*#__PURE__*/Schema.Number.check(/*#__PURE__*/Schema.isFinite()),
1419
- "id": /*#__PURE__*/Schema.optionalKey(Schema.String),
1420
- "type": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Literal("function")),
1410
+ "id": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([Schema.String, Schema.Null])),
1411
+ "type": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Literal("function"), Schema.Null])),
1421
1412
  "function": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Struct({
1422
- "name": /*#__PURE__*/Schema.optionalKey(Schema.String),
1413
+ "name": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([Schema.String, Schema.Null])),
1423
1414
  "arguments": /*#__PURE__*/Schema.optionalKey(Schema.String)
1424
1415
  }))
1425
1416
  });
@@ -1818,24 +1809,24 @@ export const PublicEndpoint = /*#__PURE__*/Schema.Struct({
1818
1809
  }).annotate({
1819
1810
  "description": "Information about a specific model endpoint"
1820
1811
  });
1821
- export const __schema19 = /*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Struct({
1812
+ export const __schema20 = /*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Struct({
1822
1813
  "type": /*#__PURE__*/Schema.Literal("reasoning.summary"),
1823
1814
  "summary": Schema.String,
1824
- "id": /*#__PURE__*/Schema.optionalKey(__schema20),
1825
- "format": /*#__PURE__*/Schema.optionalKey(__schema21),
1815
+ "id": /*#__PURE__*/Schema.optionalKey(__schema21),
1816
+ "format": /*#__PURE__*/Schema.optionalKey(__schema22),
1826
1817
  "index": /*#__PURE__*/Schema.optionalKey(__schema11)
1827
1818
  }), /*#__PURE__*/Schema.Struct({
1828
1819
  "type": /*#__PURE__*/Schema.Literal("reasoning.encrypted"),
1829
1820
  "data": Schema.String,
1830
- "id": /*#__PURE__*/Schema.optionalKey(__schema20),
1831
- "format": /*#__PURE__*/Schema.optionalKey(__schema21),
1821
+ "id": /*#__PURE__*/Schema.optionalKey(__schema21),
1822
+ "format": /*#__PURE__*/Schema.optionalKey(__schema22),
1832
1823
  "index": /*#__PURE__*/Schema.optionalKey(__schema11)
1833
1824
  }), /*#__PURE__*/Schema.Struct({
1834
1825
  "type": /*#__PURE__*/Schema.Literal("reasoning.text"),
1835
1826
  "text": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([Schema.String, Schema.Null])),
1836
1827
  "signature": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([Schema.String, Schema.Null])),
1837
- "id": /*#__PURE__*/Schema.optionalKey(__schema20),
1838
- "format": /*#__PURE__*/Schema.optionalKey(__schema21),
1828
+ "id": /*#__PURE__*/Schema.optionalKey(__schema21),
1829
+ "format": /*#__PURE__*/Schema.optionalKey(__schema22),
1839
1830
  "index": /*#__PURE__*/Schema.optionalKey(__schema11)
1840
1831
  })], {
1841
1832
  mode: "oneOf"
@@ -1845,7 +1836,7 @@ export const ChatMessageTokenLogprobs = /*#__PURE__*/Schema.Struct({
1845
1836
  "content": /*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Array(ChatMessageTokenLogprob), Schema.Null]),
1846
1837
  "refusal": /*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Array(ChatMessageTokenLogprob), Schema.Null])
1847
1838
  });
1848
- export const __schema25 = /*#__PURE__*/Schema.Union([ChatCompletionFinishReason, Schema.Null]);
1839
+ export const __schema26 = /*#__PURE__*/Schema.Union([ChatCompletionFinishReason, Schema.Null]);
1849
1840
  export const ResponseFormatJSONSchema = /*#__PURE__*/Schema.Struct({
1850
1841
  "type": /*#__PURE__*/Schema.Literal("json_schema"),
1851
1842
  "json_schema": JSONSchemaConfig
@@ -1855,6 +1846,16 @@ export const ChatMessageContentItemText = /*#__PURE__*/Schema.Struct({
1855
1846
  "text": Schema.String,
1856
1847
  "cache_control": /*#__PURE__*/Schema.optionalKey(ChatMessageContentItemCacheControl)
1857
1848
  });
1849
+ export const ToolDefinitionJson = /*#__PURE__*/Schema.Struct({
1850
+ "type": /*#__PURE__*/Schema.Literal("function"),
1851
+ "function": /*#__PURE__*/Schema.Struct({
1852
+ "name": /*#__PURE__*/Schema.String.check(/*#__PURE__*/Schema.isMaxLength(64)),
1853
+ "description": /*#__PURE__*/Schema.optionalKey(Schema.String),
1854
+ "parameters": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Struct({}).check(/*#__PURE__*/Schema.isPropertyNames(Schema.String))),
1855
+ "strict": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([Schema.Boolean, Schema.Null]))
1856
+ }),
1857
+ "cache_control": /*#__PURE__*/Schema.optionalKey(ChatMessageContentItemCacheControl)
1858
+ });
1858
1859
  export const ToolChoiceOption = /*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Literal("none"), /*#__PURE__*/Schema.Literal("auto"), /*#__PURE__*/Schema.Literal("required"), NamedToolChoice]);
1859
1860
  export const ResponseOutputText = /*#__PURE__*/Schema.Struct({
1860
1861
  "type": /*#__PURE__*/Schema.Literal("output_text"),
@@ -2201,6 +2202,15 @@ export const AnthropicMessagesRequest = /*#__PURE__*/Schema.Struct({
2201
2202
  "session_id": Schema.optionalKey(Schema.String.annotate({
2202
2203
  "description": "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."
2203
2204
  }).check(Schema.isMaxLength(128))),
2205
+ "trace": Schema.optionalKey(Schema.Struct({
2206
+ "trace_id": Schema.optionalKey(Schema.String),
2207
+ "trace_name": Schema.optionalKey(Schema.String),
2208
+ "span_name": Schema.optionalKey(Schema.String),
2209
+ "generation_name": Schema.optionalKey(Schema.String),
2210
+ "parent_span_id": Schema.optionalKey(Schema.String)
2211
+ }).annotate({
2212
+ "description": "Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations."
2213
+ })),
2204
2214
  "models": Schema.optionalKey(Schema.Array(Schema.String)),
2205
2215
  "output_config": Schema.optionalKey(AnthropicOutputConfig)
2206
2216
  }).annotate({
@@ -2368,7 +2378,7 @@ export const ChatStreamingMessageChunk = /*#__PURE__*/Schema.Struct({
2368
2378
  "reasoning": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([Schema.String, Schema.Null])),
2369
2379
  "refusal": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([Schema.String, Schema.Null])),
2370
2380
  "tool_calls": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Array(ChatStreamingMessageToolCall)),
2371
- "reasoning_details": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Array(__schema19)),
2381
+ "reasoning_details": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Array(__schema20)),
2372
2382
  "images": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.Struct({
2373
2383
  "type": /*#__PURE__*/Schema.Literal("image_url"),
2374
2384
  "image_url": /*#__PURE__*/Schema.Struct({
@@ -2458,7 +2468,7 @@ export const ModelsListResponseData = /*#__PURE__*/Schema.Array(Model).annotate(
2458
2468
  });
2459
2469
  export const ChatStreamingChoice = /*#__PURE__*/Schema.Struct({
2460
2470
  "delta": ChatStreamingMessageChunk,
2461
- "finish_reason": __schema25,
2471
+ "finish_reason": /*#__PURE__*/Schema.optionalKey(__schema26),
2462
2472
  "index": /*#__PURE__*/Schema.Number.check(/*#__PURE__*/Schema.isFinite()),
2463
2473
  "logprobs": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([ChatMessageTokenLogprobs, Schema.Null]))
2464
2474
  });
@@ -2474,7 +2484,7 @@ export const AssistantMessage = /*#__PURE__*/Schema.Struct({
2474
2484
  "tool_calls": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Array(ChatMessageToolCall)),
2475
2485
  "refusal": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([Schema.String, Schema.Null])),
2476
2486
  "reasoning": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([Schema.String, Schema.Null])),
2477
- "reasoning_details": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Array(__schema19)),
2487
+ "reasoning_details": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Array(__schema20)),
2478
2488
  "images": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Array(/*#__PURE__*/Schema.Struct({
2479
2489
  "type": /*#__PURE__*/Schema.Literal("image_url"),
2480
2490
  "image_url": /*#__PURE__*/Schema.Struct({
@@ -2586,7 +2596,7 @@ export const ChatStreamingResponseChunk = /*#__PURE__*/Schema.Struct({
2586
2596
  })
2587
2597
  });
2588
2598
  export const ChatResponseChoice = /*#__PURE__*/Schema.Struct({
2589
- "finish_reason": __schema25,
2599
+ "finish_reason": __schema26,
2590
2600
  "index": /*#__PURE__*/Schema.Number.check(/*#__PURE__*/Schema.isFinite()),
2591
2601
  "message": AssistantMessage,
2592
2602
  "logprobs": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([ChatMessageTokenLogprobs, Schema.Null]))
@@ -3323,7 +3333,16 @@ export const OpenResponsesRequest = /*#__PURE__*/Schema.Struct({
3323
3333
  }).check(Schema.isMaxLength(128))),
3324
3334
  "session_id": Schema.optionalKey(Schema.String.annotate({
3325
3335
  "description": "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."
3326
- }).check(Schema.isMaxLength(128)))
3336
+ }).check(Schema.isMaxLength(128))),
3337
+ "trace": Schema.optionalKey(Schema.Struct({
3338
+ "trace_id": Schema.optionalKey(Schema.String),
3339
+ "trace_name": Schema.optionalKey(Schema.String),
3340
+ "span_name": Schema.optionalKey(Schema.String),
3341
+ "generation_name": Schema.optionalKey(Schema.String),
3342
+ "parent_span_id": Schema.optionalKey(Schema.String)
3343
+ }).annotate({
3344
+ "description": "Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations."
3345
+ }))
3327
3346
  }).annotate({
3328
3347
  "description": "Request schema for Responses endpoint"
3329
3348
  });
@@ -3414,6 +3433,15 @@ export const ChatGenerationParams = /*#__PURE__*/Schema.Struct({
3414
3433
  "session_id": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.String.annotate({
3415
3434
  "description": "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."
3416
3435
  }).check(/*#__PURE__*/Schema.isMaxLength(128))),
3436
+ "trace": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Struct({
3437
+ "trace_id": Schema.optionalKey(Schema.String),
3438
+ "trace_name": Schema.optionalKey(Schema.String),
3439
+ "span_name": Schema.optionalKey(Schema.String),
3440
+ "generation_name": Schema.optionalKey(Schema.String),
3441
+ "parent_span_id": Schema.optionalKey(Schema.String)
3442
+ }).annotate({
3443
+ "description": "Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations."
3444
+ })),
3417
3445
  "messages": /*#__PURE__*/Schema.Array(Message).check(/*#__PURE__*/Schema.isMinLength(1)),
3418
3446
  "model": /*#__PURE__*/Schema.optionalKey(ModelName),
3419
3447
  "models": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Array(ModelName)),
@@ -3443,6 +3471,7 @@ export const ChatGenerationParams = /*#__PURE__*/Schema.Struct({
3443
3471
  "stream": /*#__PURE__*/Schema.optionalKey(Schema.Boolean),
3444
3472
  "stream_options": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([ChatStreamOptions, Schema.Null])),
3445
3473
  "temperature": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Number.check(Schema.isFinite()).check(Schema.isGreaterThanOrEqualTo(0)).check(/*#__PURE__*/Schema.isLessThanOrEqualTo(2)), Schema.Null])),
3474
+ "parallel_tool_calls": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([Schema.Boolean, Schema.Null])),
3446
3475
  "tool_choice": /*#__PURE__*/Schema.optionalKey(ToolChoiceOption),
3447
3476
  "tools": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Array(ToolDefinitionJson)),
3448
3477
  "top_p": /*#__PURE__*/Schema.optionalKey(/*#__PURE__*/Schema.Union([/*#__PURE__*/Schema.Number.check(Schema.isFinite()).check(Schema.isGreaterThanOrEqualTo(0)).check(/*#__PURE__*/Schema.isLessThanOrEqualTo(1)), Schema.Null])),
@@ -3792,7 +3821,7 @@ export const GetGeneration200 = /*#__PURE__*/Schema.Struct({
3792
3821
  "id": Schema.optionalKey(Schema.String),
3793
3822
  "endpoint_id": Schema.optionalKey(Schema.String),
3794
3823
  "model_permaslug": Schema.optionalKey(Schema.String),
3795
- "provider_name": Schema.optionalKey(Schema.Literals(["AnyScale", "Atoma", "Cent-ML", "CrofAI", "Enfer", "GoPomelo", "HuggingFace", "Hyperbolic 2", "InoCloud", "Kluster", "Lambda", "Lepton", "Lynn 2", "Lynn", "Mancer", "Meta", "Modal", "Nineteen", "OctoAI", "Recursal", "Reflection", "Replicate", "SambaNova 2", "SF Compute", "Targon", "Together 2", "Ubicloud", "01.AI", "AI21", "AionLabs", "Alibaba", "Ambient", "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", "Google", "Google AI Studio", "Groq", "Hyperbolic", "Inception", "Inceptron", "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", "Seed", "SiliconFlow", "Sourceful", "StepFun", "Stealth", "StreamLake", "Switchpoint", "Together", "Upstage", "Venice", "WandB", "Xiaomi", "xAI", "Z.AI", "FakeProvider"])),
3824
+ "provider_name": Schema.optionalKey(Schema.Literals(["AnyScale", "Atoma", "Cent-ML", "CrofAI", "Enfer", "GoPomelo", "HuggingFace", "Hyperbolic 2", "InoCloud", "Kluster", "Lambda", "Lepton", "Lynn 2", "Lynn", "Mancer", "Meta", "Modal", "Nineteen", "OctoAI", "Recursal", "Reflection", "Replicate", "SambaNova 2", "SF Compute", "Targon", "Together 2", "Ubicloud", "01.AI", "AI21", "AionLabs", "Alibaba", "Ambient", "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", "Google", "Google AI Studio", "Groq", "Hyperbolic", "Inception", "Inceptron", "InferenceNet", "Infermatic", "Io Net", "Inflection", "Liquid", "Mara", "Mancer 2", "Minimax", "ModelRun", "Mistral", "Modular", "Moonshot AI", "Morph", "NCompass", "Nebius", "NextBit", "Novita", "Nvidia", "OpenAI", "OpenInference", "Parasail", "Perplexity", "Phala", "Relace", "SambaNova", "Seed", "SiliconFlow", "Sourceful", "StepFun", "Stealth", "StreamLake", "Switchpoint", "Together", "Upstage", "Venice", "WandB", "Xiaomi", "xAI", "Z.AI", "FakeProvider"])),
3796
3825
  "status": Schema.Number.check(Schema.isFinite()),
3797
3826
  "latency": Schema.optionalKey(Schema.Number.check(Schema.isFinite())),
3798
3827
  "is_byok": Schema.optionalKey(Schema.Boolean)
@@ -4949,7 +4978,7 @@ export const make = (httpClient, options = {}) => {
4949
4978
  "500": decodeError("GetKey500", GetKey500),
4950
4979
  orElse: unexpectedStatus
4951
4980
  }))),
4952
- "deleteKeys": (hash, options) => HttpClientRequest.del(`/keys/${hash}`).pipe(withResponse(options?.config)(HttpClientResponse.matchStatus({
4981
+ "deleteKeys": (hash, options) => HttpClientRequest.delete(`/keys/${hash}`).pipe(withResponse(options?.config)(HttpClientResponse.matchStatus({
4953
4982
  "2xx": decodeSuccess(DeleteKeys200),
4954
4983
  "401": decodeError("DeleteKeys401", DeleteKeys401),
4955
4984
  "404": decodeError("DeleteKeys404", DeleteKeys404),
@@ -4989,7 +5018,7 @@ export const make = (httpClient, options = {}) => {
4989
5018
  "500": decodeError("GetGuardrail500", GetGuardrail500),
4990
5019
  orElse: unexpectedStatus
4991
5020
  }))),
4992
- "deleteGuardrail": (id, options) => HttpClientRequest.del(`/guardrails/${id}`).pipe(withResponse(options?.config)(HttpClientResponse.matchStatus({
5021
+ "deleteGuardrail": (id, options) => HttpClientRequest.delete(`/guardrails/${id}`).pipe(withResponse(options?.config)(HttpClientResponse.matchStatus({
4993
5022
  "2xx": decodeSuccess(DeleteGuardrail200),
4994
5023
  "401": decodeError("DeleteGuardrail401", DeleteGuardrail401),
4995
5024
  "404": decodeError("DeleteGuardrail404", DeleteGuardrail404),