EdgeAIG's picture
download
raw
511 Bytes
import * as JsonSchema from "../../../JsonSchema.ts"
import * as Schema from "../../../Schema.ts"
import type { CodecTransformer } from "../LanguageModel.ts"
/** @internal */
export const defaultCodecTransformer: CodecTransformer = (codec) => {
const document = JsonSchema.resolveTopLevel$ref(Schema.toJsonSchemaDocument(codec))
const jsonSchema = { ...document.schema }
if (Object.keys(document.definitions).length > 0) {
jsonSchema.$defs = document.definitions
}
return { codec, jsonSchema }
}

Xet Storage Details

Size:
511 Bytes
·
Xet hash:
d47729c6f2af1d6d60e9b4f1ae06a5045f8eca6e5e02d4e98ef170ec0e1d22cc

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.