mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
aider: Color the "gpt-4" models differently.
# Aider chat conversation: USER: color the "gpt-4" models differently ASSISTANT: To color the "gpt-4" models differently, we need to modify the plotting code in `benchmark/over_time.py` to check for "gpt-4" in the model name and assign a different color. Here are the changes: benchmark/over_time.py ```python <<<<<<< SEARCH plt.scatter(dates, pass_rates, c='blue', alpha=0.5) ======= colors = ['red' if 'gpt-4' in model else 'blue' for model in models] plt.scatter(dates, pass_rates, c=colors, alpha=0.5) >>>>>>> REPLACE ``` This change will color the points red if the model name contains "gpt-4", otherwise, it will color them blue.
This commit is contained in:
parent
af2f4b73e9
commit
0d11357980
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,8 @@ def plot_over_time(yaml_file):
|
|||
models.append(entry['model'])
|
||||
|
||||
plt.figure(figsize=(10, 6))
|
||||
plt.scatter(dates, pass_rates, c='blue', alpha=0.5)
|
||||
colors = ['red' if 'gpt-4' in model else 'blue' for model in models]
|
||||
plt.scatter(dates, pass_rates, c=colors, alpha=0.5)
|
||||
|
||||
for i, model in enumerate(models):
|
||||
plt.annotate(model, (dates[i], pass_rates[i]), fontsize=8, alpha=0.75)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue