normalize zai provider to opencode in model listing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-26 19:00:39 +00:00
co-authored by Claude Opus 4.6
parent e806f66edb
commit b8b71e78d9
+2 -1
View File
@@ -78,10 +78,11 @@ export async function listPiModels(): Promise<ModelInfo[]> {
const thinking = extractCol(line, 4);
const images = extractCol(line, 5);
const normalizedProvider = provider === 'zai' ? 'opencode' : provider;
models.push({
id: `${provider}/${model}`,
name: model,
provider,
provider: normalizedProvider,
contextWindow: parseSize(context),
maxTokens: parseSize(maxOut),
reasoning: thinking === 'yes',