Variable openAIChatPartToAnthropicConst
openAIChatPartToAnthropic: ZodEffects<
ZodDiscriminatedUnion<
"type",
[
ZodObject<
{ text: ZodString; type: ZodLiteral<"text"> },
"strip",
ZodTypeAny,
{ text: string; type: "text" },
{ text: string; type: "text" },
>,
ZodObject<
{
image_url: ZodObject<
{ url: ZodString },
"strip",
ZodTypeAny,
{ url: string },
{ url: string },
>;
type: ZodLiteral<"image_url">;
},
"strip",
ZodTypeAny,
{ image_url: { url: string }; type: "image_url" },
{ image_url: { url: string }; type: "image_url" },
>,
],
>,
| null
| { 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";
},
| { text: string; type: "text" }
| { image_url: { url: string }; type: "image_url" },
> = ...