llm_logs 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71e4dcee0febd77db39e2966ffb5ed3e1e8f5e66dd5b9ff6d12812e44a58db8f
4
- data.tar.gz: 37409caad632015780f85f625a97bb0ee45e37e4c0f38a25bde8b8e50ce88af8
3
+ metadata.gz: 8982c29ec3f53e2271e24f78065472f3f71b15828449dd51cda1154122cb8d6f
4
+ data.tar.gz: 2a2026e3441b16b61c36497689a7d468f09987bfb0c85c95aebb641ba3ee9d94
5
5
  SHA512:
6
- metadata.gz: 4039c5a3f448495da3a0c6b72cd56082fa37a1e13bf803ecf863a3720f77a764d91104f22b796382f9526e8a97b29458ee5adfc4b868701c7ba7224649ffccc7
7
- data.tar.gz: ccfb679fc19b675a27de5f2aa4b52c20597aba015ff9462e2d0f11b9890b33b3ecd9d62b06360ce20573cc92ec0c905e98d4777273cbcc667fade3db5df9a3c3
6
+ metadata.gz: d3d62b8c8d71bb12639ef74895d53e2974aba1eca3e4d219bce6387f790cb7712ac2ca46ea24e72c7940bb2970ecc04af976802d7a7d1c2f758bc507a392e3aa
7
+ data.tar.gz: 9dfdbe34061fe8b748fda1ca4ad75f8646e57030c264549b91da0cd0b0314577b42b4b0fef8bfa87b336cbac9c2b95bf5d10bf92686c5548780539751b14402b
@@ -20,12 +20,14 @@
20
20
  <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase"><%= sort_link "Name", "name" %></th>
21
21
  <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase"><%= sort_link "Slug", "slug" %></th>
22
22
  <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase">Tags</th>
23
+ <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase">Model</th>
23
24
  <th class="px-4 py-3 text-right text-xs font-medium text-gray-500 uppercase">Version</th>
24
25
  <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase"><%= sort_link "Updated", "updated" %></th>
25
26
  </tr>
26
27
  </thead>
27
28
  <tbody class="divide-y divide-gray-200">
28
29
  <% @prompts.each do |prompt| %>
30
+ <% latest = prompt.versions.max_by(&:version_number) %>
29
31
  <tr class="hover:bg-gray-50">
30
32
  <td class="px-4 py-3 text-sm">
31
33
  <%= link_to prompt.name, prompt_path(prompt), class: "text-indigo-600 hover:text-indigo-900 font-medium" %>
@@ -36,9 +38,17 @@
36
38
  <span class="inline-block bg-gray-100 text-gray-700 text-xs px-1.5 py-0.5 rounded mr-1"><%= tag %></span>
37
39
  <% end %>
38
40
  </td>
41
+ <td class="px-4 py-3 text-sm text-gray-500 font-mono">
42
+ <% if latest&.model.present? %>
43
+ <%= latest.model %>
44
+ <% if latest.reasoning_effort.present? %>
45
+ <span class="inline-block bg-gray-100 text-gray-700 text-xs px-1.5 py-0.5 rounded ml-1 font-sans"><%= latest.reasoning_effort %></span>
46
+ <% end %>
47
+ <% else %>—<% end %>
48
+ </td>
39
49
  <td class="px-4 py-3 text-sm text-right">
40
- <% if prompt.versions.any? %>
41
- <%= link_to "v#{prompt.versions.maximum(:version_number)}", prompt_versions_path(prompt), class: "text-indigo-600 hover:text-indigo-900" %>
50
+ <% if latest %>
51
+ <%= link_to "v#{latest.version_number}", prompt_versions_path(prompt), class: "text-indigo-600 hover:text-indigo-900" %>
42
52
  <% else %>—<% end %>
43
53
  </td>
44
54
  <td class="px-4 py-3 text-sm text-gray-500"><%= prompt.updated_at.strftime('%b %d %H:%M') %></td>
@@ -47,7 +57,7 @@
47
57
 
48
58
  <% if @prompts.empty? %>
49
59
  <tr>
50
- <td colspan="5" class="px-4 py-8 text-center text-sm text-gray-500">
60
+ <td colspan="6" class="px-4 py-8 text-center text-sm text-gray-500">
51
61
  No prompts yet. <%= link_to "Create one", new_prompt_path, class: "text-indigo-600 hover:text-indigo-900" %>.
52
62
  </td>
53
63
  </tr>
@@ -1,3 +1,3 @@
1
1
  module LlmLogs
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llm_logs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton