/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 5b70e6a35393
 */
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 FIMCompletionResponse$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 fimCompletionResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => FIMCompletionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FIMCompletionResponse' from JSON`);
}
//# sourceMappingURL=fimcompletionresponse.js.map