local-llm-database/views/index.erb

34 lines
1 KiB
Plaintext

<h2 class="subtitle"><%= @subtitle %></h2>
<% if @assistants.any? %>
<table class="table is-striped is-fullwidth">
<thead>
<tr>
<th>Name</th>
<th>Run Command</th>
<th>Reputation</th>
<th>Context Length</th>
<th>Prompt Rate</th>
<th>Evaluation Rate</th>
<th>Capabilities</th>
<th>Created At</th>
</tr>
</thead>
<tbody>
<% @assistants.each do |assistant| %>
<tr>
<td><%= assistant.name %></td>
<td><%= assistant.run_command %></td>
<td><%= assistant.reputation || 'N/A' %></td>
<td><%= assistant.context_length || 'N/A' %></td>
<td><%= assistant.prompt_rate || 'N/A' %></td>
<td><%= assistant.eval_rate || 'N/A' %></td>
<td><%= assistant.capabilities || 'N/A' %></td>
<td><%= assistant.created_at.strftime('%Y-%m-%d %H:%M') if assistant.created_at %></td>
</tr>
<% end %>
</tbody>
</table>
<% else %>
<p>No assistants found in the database.</p>
<% end %>