Skip to content

Commit

Permalink
Add links to model names
Browse files Browse the repository at this point in the history
  • Loading branch information
jvrck committed Oct 8, 2024
1 parent ce0155d commit 058a887
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ <h1>Openrouter Model Pricing</h1>
} else {
rowHtml += "<td>Invalid Date</td>"; // Handle invalid timestamps
}
} else if (columnName === "name") {
// Add hyperlink to the Model Name field
rowHtml += `<td><a href="https://openrouter.ai/models/${currentId}" target="_blank">${cleanedValue}</a></td>`;
} else {
rowHtml += "<td>" + cleanedValue + "</td>";
}
Expand All @@ -157,4 +160,4 @@ <h1>Openrouter Model Pricing</h1>
</script>

</body>
</html>
</html>

0 comments on commit 058a887

Please sign in to comment.