mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Mark definite image generation models
This commit is contained in:
1 file changed
+5
-6
@@ -43,7 +43,7 @@ export class ViewAvailableModelsTool implements Tool<Record<string, never>> {
|
||||
|
||||
// Add note about current image model if configured
|
||||
if (this.currentImageModel) {
|
||||
output += `**Current Image Model**: ${this.currentImageModel} ⭐\n\n`;
|
||||
output += `**Current Image Model**: ${this.currentImageModel}\n\n`;
|
||||
} else {
|
||||
output += '**Current Image Model**: Not configured\n\n';
|
||||
}
|
||||
@@ -60,16 +60,15 @@ export class ViewAvailableModelsTool implements Tool<Record<string, never>> {
|
||||
output += `### ${provider} (${providerModels.length} models)\n\n`;
|
||||
|
||||
for (const model of providerModels) {
|
||||
const isCurrentModel = this.currentImageModel === model.fullId;
|
||||
const marker = isCurrentModel ? ' ⭐' : '';
|
||||
// Mark models that are DEFINITE image models with a star
|
||||
const isImageModel = model.type === 'image' || model.modalities?.includes('image');
|
||||
const marker = isImageModel ? ' ⭐' : '';
|
||||
output += `- ${model.fullId}${marker}\n`;
|
||||
}
|
||||
output += '\n';
|
||||
}
|
||||
|
||||
if (this.currentImageModel) {
|
||||
output += `Current selection (⭐) indicates user preference for this provider/model family.\n`;
|
||||
}
|
||||
output += `Models marked with ⭐ are definite image generation models.\n`;
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user