fix: update zai processing logic (#2855)

* feat: add new models and update zai processing logic

* chore(ai): removed overrides, simplify provider pick

---------

Co-authored-by: Mario Zechner <badlogicgames@gmail.com>
This commit is contained in:
Vladyslav Tkachenko
2026-04-06 00:44:17 +03:00
committed by GitHub
parent 52d16d5a31
commit a9bd8045d6
2 changed files with 43 additions and 24 deletions

View File

@@ -376,8 +376,8 @@ async function loadModelsDevData(): Promise<Model<any>[]> {
}
// Process zAi models
if (data.zai?.models) {
for (const [modelId, model] of Object.entries(data.zai.models)) {
if (data["zai-coding-plan"]?.models) {
for (const [modelId, model] of Object.entries(data["zai-coding-plan"].models)) {
const m = model as ModelsDevModel;
if (m.tool_call !== true) continue;
const supportsImage = m.modalities?.input?.includes("image");
@@ -714,6 +714,7 @@ async function generateModels() {
candidate.cost.output = 1.9;
candidate.cost.cacheRead = 0.119;
}
}