Variable openAIChatPartToAnthropicConst
openAIChatPartToAnthropic: ZodPipe<
ZodDiscriminatedUnion<
[
ZodObject<{ text: ZodString; type: ZodLiteral<"text"> }, $strip>,
ZodObject<
{
image_url: ZodObject<{ url: ZodString }, $strip>;
type: ZodLiteral<"image_url">;
},
$strip,
>,
],
"type",
>,
ZodTransform<
| { source?: undefined; text: string; type: "text" }
| {
source: {
data: string;
media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
type: "base64";
};
text?: undefined;
type: "image";
}
| null,
| { text: string; type: "text" }
| { image_url: { url: string }; type: "image_url" },
>,
> = ...