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:
committed by
GitHub
parent
52d16d5a31
commit
a9bd8045d6
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user