feat: Conditionally add redacted model note to script

This commit is contained in:
Paul Gauthier (aider) 2024-12-13 13:22:55 -08:00
parent edc602c33a
commit c8894bcead
2 changed files with 11 additions and 5 deletions

View file

@ -74,7 +74,17 @@ def format_html_table(model_stats):
f"<td class='right'>{percentage:.1f}%</td></tr>"
)
html.extend(["</table>"])
html.append("</table>")
# Add note about redacted models if any are present
if any("REDACTED" in model for model in model_stats.keys()):
html.extend([
"",
"{: .note :}",
"Some models show as REDACTED, because they are new or unpopular models.",
"Aider's analytics only records the names of \"well known\" LLMs."
])
return "\n".join(html)