feat: Add color and legend support for Gemini Pro models

This commit is contained in:
Paul Gauthier (aider) 2024-11-21 14:02:27 -08:00
parent 9eab021a50
commit a7fc0f9d2e

View file

@ -17,6 +17,8 @@ class ModelData:
@property
def color(self) -> str:
model = self.name.lower()
if "gemini" in model and "pro" in model:
return "magenta"
if "qwen" in model:
return "darkblue"
if "mistral" in model:
@ -38,6 +40,8 @@ class ModelData:
@property
def legend_label(self) -> str:
model = self.name.lower()
if "gemini" in model and "pro" in model:
return "Gemini Pro"
if "claude-3-sonnet" in model:
return "Sonnet"
if "o1-preview" in model: