/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 3ddafcafb9e0
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
import { EmbeddingResponseData$inboundSchema, } from "./embeddingresponsedata.js";
import { UsageInfo$inboundSchema } from "./usageinfo.js";
/** @internal */
export const EmbeddingResponse$inboundSchema = z.object({
    id: z.string(),
    object: z.string(),
    model: z.string(),
    usage: UsageInfo$inboundSchema,
    data: z.array(EmbeddingResponseData$inboundSchema),
});
export function embeddingResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => EmbeddingResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EmbeddingResponse' from JSON`);
}
//# sourceMappingURL=embeddingresponse.js.map