@ai-sdk/openai 4.0.10 → 4.0.13

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.
@@ -9,7 +9,7 @@ declare const openaiLanguageModelChatOptions: _ai_sdk_provider_utils.LazySchema<
9
9
  logprobs?: number | boolean | undefined;
10
10
  parallelToolCalls?: boolean | undefined;
11
11
  user?: string | undefined;
12
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
12
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
13
13
  maxCompletionTokens?: number | undefined;
14
14
  store?: boolean | undefined;
15
15
  metadata?: Record<string, string> | undefined;
@@ -18,6 +18,10 @@ declare const openaiLanguageModelChatOptions: _ai_sdk_provider_utils.LazySchema<
18
18
  strictJsonSchema?: boolean | undefined;
19
19
  textVerbosity?: "low" | "medium" | "high" | undefined;
20
20
  promptCacheKey?: string | undefined;
21
+ promptCacheOptions?: {
22
+ mode?: "explicit" | "implicit" | undefined;
23
+ ttl?: "30m" | undefined;
24
+ } | undefined;
21
25
  promptCacheRetention?: "in_memory" | "24h" | undefined;
22
26
  safetyIdentifier?: string | undefined;
23
27
  systemMessageMode?: "remove" | "system" | "developer" | undefined;
@@ -365,6 +369,7 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
365
369
  output_tokens: number;
366
370
  input_tokens_details?: {
367
371
  cached_tokens?: number | null | undefined;
372
+ cache_write_tokens?: number | null | undefined;
368
373
  orchestration_input_tokens?: number | null | undefined;
369
374
  orchestration_input_cached_tokens?: number | null | undefined;
370
375
  } | null | undefined;
@@ -376,6 +381,9 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
376
381
  incomplete_details?: {
377
382
  reason: string;
378
383
  } | null | undefined;
384
+ reasoning?: {
385
+ context?: string | null | undefined;
386
+ } | null | undefined;
379
387
  service_tier?: string | null | undefined;
380
388
  };
381
389
  } | {
@@ -394,6 +402,7 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
394
402
  output_tokens: number;
395
403
  input_tokens_details?: {
396
404
  cached_tokens?: number | null | undefined;
405
+ cache_write_tokens?: number | null | undefined;
397
406
  orchestration_input_tokens?: number | null | undefined;
398
407
  orchestration_input_cached_tokens?: number | null | undefined;
399
408
  } | null | undefined;
@@ -402,6 +411,9 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
402
411
  orchestration_output_tokens?: number | null | undefined;
403
412
  } | null | undefined;
404
413
  } | null | undefined;
414
+ reasoning?: {
415
+ context?: string | null | undefined;
416
+ } | null | undefined;
405
417
  service_tier?: string | null | undefined;
406
418
  };
407
419
  } | {
@@ -810,6 +822,7 @@ type ResponsesProviderMetadata = {
810
822
  responseId: string | null | undefined;
811
823
  logprobs?: Array<OpenAIResponsesLogprobs>;
812
824
  serviceTier?: string;
825
+ reasoningContext?: string;
813
826
  };
814
827
  type ResponsesReasoningProviderMetadata = {
815
828
  itemId: string;