Skip to content

Commit af1a8bf

Browse files
committed
feat(ui): improve index
- Redirect to the chat view when clicking on a model Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent b9b5a63 commit af1a8bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/http/views/chat.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
<div class="flex items-center justify-between">
4646

47-
<h1 class="text-lg font-semibold"> <i class="fa-solid fa-comments"></i> Chat with {{.Model}} <a href="https://localai.io/features/text-generation/" target="_blank" >
47+
<h1 class="text-lg font-semibold"> <i class="fa-solid fa-comments"></i> Chat with {{.Model}} <a href="browse?term={{.Model}}" ><i class="fas fa-brain pr-2"></i></a> <a href="https://localai.io/features/text-generation/" target="_blank" >
4848
<i class="fas fa-circle-info pr-2"></i>
4949
</a></h1>
5050
<div x-show="component === 'menu'" id="menu">

core/http/views/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h2 class="text-center text-3xl font-semibold text-gray-100">{{$modelsN}} Instal
4141
<thead class="text-xs text-gray-400 uppercase bg-gray-700">
4242
<tr>
4343
<th class="px-4 py-2"></th>
44-
<th class="px-4 py-2">Model Name</th>
44+
<th class="px-4 py-2"><i class="fas fa-brain pr-2"></i>Model Name</th>
4545
<th class="px-4 py-2">Backend</th>
4646
<th class="px-4 py-2 float-right">Actions</th>
4747
</tr>
@@ -66,7 +66,7 @@ <h2 class="text-center text-3xl font-semibold text-gray-100">{{$modelsN}} Instal
6666
{{ end }}
6767
</td>
6868
<td class="px-4 py-3 font-bold">
69-
<p class="font-bold text-white flex items-center"><i class="fas fa-brain pr-2"></i><a href="browse?term={{.Name}}">{{.Name}}</a></p>
69+
<p class="font-bold text-white flex items-center"><a href="chat/{{.Name}}">{{.Name}}</a></p>
7070
</td>
7171
<td class="px-4 py-3 font-bold">
7272
{{ if .Backend }}

0 commit comments

Comments
 (0)