/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 6e93495032d1
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { ModelCapabilities$inboundSchema, } from "./modelcapabilities.js";
/** @internal */
export const BaseModelCard$inboundSchema = z
    .object({
    id: z.string(),
    object: z.string().default("model"),
    created: z.int().optional(),
    owned_by: z.string().default("mistralai"),
    capabilities: ModelCapabilities$inboundSchema,
    name: z.nullable(z.string()).optional(),
    description: z.nullable(z.string()).optional(),
    max_context_length: z.int().default(32768),
    aliases: z.array(z.string()).optional(),
    deprecation: z.nullable(z.iso.datetime({ offset: true }).transform(v => new Date(v))).optional(),
    deprecation_replacement_model: z.nullable(z.string()).optional(),
    default_model_temperature: z.nullable(z.number()).optional(),
    type: z.literal("base"),
}).transform((v) => {
    return remap$(v, {
        "owned_by": "ownedBy",
        "max_context_length": "maxContextLength",
        "deprecation_replacement_model": "deprecationReplacementModel",
        "default_model_temperature": "defaultModelTemperature",
    });
});
export function baseModelCardFromJSON(jsonString) {
    return safeParse(jsonString, (x) => BaseModelCard$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BaseModelCard' from JSON`);
}
//# sourceMappingURL=basemodelcard.js.map