@effect/ai-openai 0.35.0 → 0.37.0

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.
@@ -479,7 +479,11 @@ export class ResponseContentPartAddedEvent extends Schema.Class<ResponseContentP
479
479
  /**
480
480
  * The content part that was added.
481
481
  */
482
- part: Generated.OutputContent
482
+ part: Schema.Union(
483
+ Generated.OutputTextContent,
484
+ Generated.RefusalContent,
485
+ Generated.ReasoningTextContent
486
+ )
483
487
  }) {}
484
488
 
485
489
  /**
@@ -514,7 +518,11 @@ export class ResponseContentPartDoneEvent extends Schema.Class<ResponseContentPa
514
518
  /**
515
519
  * The content part that was added.
516
520
  */
517
- part: Generated.OutputContent
521
+ part: Schema.Union(
522
+ Generated.OutputTextContent,
523
+ Generated.RefusalContent,
524
+ Generated.ReasoningTextContent
525
+ )
518
526
  }) {}
519
527
 
520
528
  /**
@@ -107,7 +107,7 @@ declare module "@effect/ai/Prompt" {
107
107
  /**
108
108
  * The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
109
109
  */
110
- readonly imageDetail?: typeof Generated.InputImageContentDetail.Encoded | undefined
110
+ readonly imageDetail?: typeof Generated.ImageDetail.Encoded | undefined
111
111
  } | undefined
112
112
  }
113
113
 
@@ -1390,14 +1390,14 @@ const getItemId = (
1390
1390
  | Prompt.ToolCallPart
1391
1391
  ): string | undefined => part.options.openai?.itemId
1392
1392
 
1393
- const getImageDetail = (part: Prompt.FilePart): typeof Generated.InputImageContentDetail.Encoded =>
1393
+ const getImageDetail = (part: Prompt.FilePart): typeof Generated.ImageDetail.Encoded =>
1394
1394
  part.options.openai?.imageDetail ?? "auto"
1395
1395
 
1396
1396
  const prepareInclude = (
1397
1397
  options: LanguageModel.ProviderOptions,
1398
1398
  config: Config.Service
1399
- ): ReadonlyArray<typeof Generated.Includable.Encoded> => {
1400
- const include: Set<typeof Generated.Includable.Encoded> = new Set(config.include ?? [])
1399
+ ): ReadonlyArray<typeof Generated.IncludeEnum.Encoded> => {
1400
+ const include: Set<typeof Generated.IncludeEnum.Encoded> = new Set(config.include ?? [])
1401
1401
 
1402
1402
  const codeInterpreterTool = options.tools.find((tool) =>
1403
1403
  Tool.isProviderDefined(tool) &&