Commit ed4336de5ea9

Vincent Demeester <vincent@sbr.pm>
2026-02-16 13:57:34
Fix: Use model.name instead of model.label in Pi config
The Model interface has 'name' property, not 'label'.
Changed files (1)
src/pi/config.ts
@@ -132,7 +132,7 @@ export function getAllModelsFormatted(): string {
       if (models.length > 0) {
         lines.push(`\n${provider}:`);
         for (const model of models) {
-          lines.push(`  - ${model.id}${model.label ? ` (${model.label})` : ""}`);
+          lines.push(`  - ${model.id}${model.name ? ` (${model.name})` : ""}`);
         }
       }
     } catch (error) {