mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
feat: Conditionally add redacted model note to script
This commit is contained in:
parent
edc602c33a
commit
c8894bcead
2 changed files with 11 additions and 5 deletions
|
@ -246,10 +246,6 @@ tr:hover { background-color: #f5f5f5; }
|
|||
</table>
|
||||
<!--[[[end]]]-->
|
||||
|
||||
{: .note :}
|
||||
Some models show as REDACTED, because they are new or unpopular models.
|
||||
Aider's analytics only records the names of "well known" LLMs.
|
||||
|
||||
## How are the "aider wrote xx% of code" stats computed?
|
||||
|
||||
[Aider is tightly integrated with git](/docs/git.html) so all
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue