fix(catalog): omit reasoningEffortMap on no-dial xAI rows
The clamp map is only used when reasoning.effort is sent. Drop it from catalog rows that set omitReasoningEffort so the exported snapshot does not advertise a dead mapping.
This commit is contained in:
@@ -354,7 +354,7 @@ export function applyOllamaCloudOutputCap(models: ModelSpec<Api>[]): void {
|
||||
}
|
||||
|
||||
function applyGeneratedModelPolicy(model: ModelSpec<Api>): void {
|
||||
if (model.provider === "xai" && model.api === "openai-responses") {
|
||||
if ((model.provider === "xai" || model.provider === "xai-oauth") && model.api === "openai-responses") {
|
||||
const updated = applyXaiResponsesThinkingPolicy(model as ModelSpec<"openai-responses">);
|
||||
model.compat = updated.compat;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user