/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: ae125693ab3a
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
import { ChatCompletionChoice$inboundSchema, } from "./chatcompletionchoice.js";
import { UsageInfo$inboundSchema } from "./usageinfo.js";
/** @internal */
export const ChatCompletionResponse$inboundSchema = z.object({
    id: z.string(),
    object: z.string(),
    model: z.string(),
    usage: UsageInfo$inboundSchema,
    created: z.int(),
    choices: z.array(ChatCompletionChoice$inboundSchema),
});
export function chatCompletionResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ChatCompletionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatCompletionResponse' from JSON`);
}
//# sourceMappingURL=chatcompletionresponse.js.map