openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
19 lines (18 loc) • 838 B
JavaScript
import { t as applyModelCompatPatch } from "./provider-model-compat-BNXu5bti.js";
import "./provider-model-shared-fX-Ywqb3.js";
//#region extensions/xai/model-compat.ts
const XAI_TOOL_SCHEMA_PROFILE = "xai";
const HTML_ENTITY_TOOL_CALL_ARGUMENTS_ENCODING = "html-entities";
const XAI_UNSUPPORTED_SCHEMA_KEYWORDS = /* @__PURE__ */ new Set(["minContains", "maxContains"]);
function resolveXaiModelCompatPatch() {
return {
toolSchemaProfile: "xai",
unsupportedToolSchemaKeywords: Array.from(XAI_UNSUPPORTED_SCHEMA_KEYWORDS),
toolCallArgumentsEncoding: HTML_ENTITY_TOOL_CALL_ARGUMENTS_ENCODING
};
}
function applyXaiModelCompat(model) {
return applyModelCompatPatch(model, resolveXaiModelCompatPatch());
}
//#endregion
export { XAI_TOOL_SCHEMA_PROFILE as n, applyXaiModelCompat as r, HTML_ENTITY_TOOL_CALL_ARGUMENTS_ENCODING as t };