chat-console 0.1.6.dev1__py3-none-any.whl → 0.1.7.dev1__py3-none-any.whl
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.
- app/main.py +7 -3
- app/ui/chat_interface.py +17 -12
- {chat_console-0.1.6.dev1.dist-info → chat_console-0.1.7.dev1.dist-info}/METADATA +1 -1
- {chat_console-0.1.6.dev1.dist-info → chat_console-0.1.7.dev1.dist-info}/RECORD +8 -8
- {chat_console-0.1.6.dev1.dist-info → chat_console-0.1.7.dev1.dist-info}/LICENSE +0 -0
- {chat_console-0.1.6.dev1.dist-info → chat_console-0.1.7.dev1.dist-info}/WHEEL +0 -0
- {chat_console-0.1.6.dev1.dist-info → chat_console-0.1.7.dev1.dist-info}/entry_points.txt +0 -0
- {chat_console-0.1.6.dev1.dist-info → chat_console-0.1.7.dev1.dist-info}/top_level.txt +0 -0
app/main.py
CHANGED
@@ -262,12 +262,14 @@ class SimpleChatApp(App):
|
|
262
262
|
width: auto;
|
263
263
|
min-width: 8;
|
264
264
|
height: 2;
|
265
|
-
color:
|
265
|
+
color: #FFFFFF !important;
|
266
266
|
background: $primary;
|
267
267
|
border: solid $primary;
|
268
268
|
content-align: center middle;
|
269
|
+
text-style: bold; /* Add this line */
|
269
270
|
}
|
270
271
|
|
272
|
+
|
271
273
|
#button-row {
|
272
274
|
width: 100%;
|
273
275
|
height: auto;
|
@@ -278,21 +280,23 @@ class SimpleChatApp(App):
|
|
278
280
|
width: auto;
|
279
281
|
min-width: 8;
|
280
282
|
height: 2;
|
281
|
-
color:
|
283
|
+
color: #FFFFFF !important; /* Force white text */
|
282
284
|
background: $success;
|
283
285
|
border: solid $success-lighten-1;
|
284
286
|
content-align: center middle;
|
287
|
+
text-style: bold;
|
285
288
|
}
|
286
289
|
|
287
290
|
#view-history-button, #settings-button {
|
288
291
|
width: auto;
|
289
292
|
min-width: 8;
|
290
293
|
height: 2;
|
291
|
-
color:
|
294
|
+
color: #FFFFFF !important; /* Force white text */
|
292
295
|
background: $primary-darken-1;
|
293
296
|
border: solid $primary;
|
294
297
|
margin-right: 1;
|
295
298
|
content-align: center middle;
|
299
|
+
text-style: bold;
|
296
300
|
}
|
297
301
|
"""
|
298
302
|
|
app/ui/chat_interface.py
CHANGED
@@ -151,9 +151,19 @@ class ChatInterface(Container):
|
|
151
151
|
}
|
152
152
|
|
153
153
|
#send-button {
|
154
|
-
|
154
|
+
background: $warning;
|
155
|
+
color: $text;
|
156
|
+
border: none;
|
155
157
|
min-width: 8;
|
156
|
-
height:
|
158
|
+
height: 3;
|
159
|
+
margin: 0 1;
|
160
|
+
content-align: center middle;
|
161
|
+
text-style: bold;
|
162
|
+
text-opacity: 100%;
|
163
|
+
}
|
164
|
+
|
165
|
+
#send-button:hover {
|
166
|
+
background: $warning-lighten-1;
|
157
167
|
}
|
158
168
|
|
159
169
|
#loading-indicator {
|
@@ -192,23 +202,19 @@ class ChatInterface(Container):
|
|
192
202
|
self.messages = conversation.messages
|
193
203
|
|
194
204
|
def compose(self) -> ComposeResult:
|
195
|
-
"""Compose the chat interface"""
|
196
|
-
# Messages area
|
197
205
|
with ScrollableContainer(id="messages-container"):
|
198
206
|
for message in self.messages:
|
199
207
|
yield MessageDisplay(message, highlight_code=CONFIG["highlight_code"])
|
200
|
-
|
201
|
-
# Input area with loading indicator and controls
|
202
208
|
with Container(id="input-area"):
|
203
209
|
yield Container(
|
204
210
|
Label("Generating response...", id="loading-text"),
|
205
211
|
id="loading-indicator"
|
206
212
|
)
|
207
|
-
|
208
|
-
InputWithFocus(placeholder="Type your message here...", id="message-input")
|
209
|
-
Button("
|
210
|
-
|
211
|
-
|
213
|
+
with Container(id="controls"):
|
214
|
+
yield InputWithFocus(placeholder="Type your message here...", id="message-input")
|
215
|
+
yield Button("[on yellow black]SEND[/]", id="send-button", markup=True)
|
216
|
+
|
217
|
+
|
212
218
|
|
213
219
|
def on_mount(self) -> None:
|
214
220
|
"""Initialize on mount"""
|
@@ -229,7 +235,6 @@ class ChatInterface(Container):
|
|
229
235
|
async def on_button_pressed(self, event: Button.Pressed) -> None:
|
230
236
|
"""Handle button presses"""
|
231
237
|
button_id = event.button.id
|
232
|
-
|
233
238
|
if button_id == "send-button":
|
234
239
|
await self.send_message()
|
235
240
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: chat-console
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.7.dev1
|
4
4
|
Summary: A command-line interface for chatting with LLMs, storing chats and (future) rag interactions
|
5
5
|
Home-page: https://github.com/wazacraftrfid/chat-console
|
6
6
|
Author: Johnathan Greenaway
|
@@ -1,7 +1,7 @@
|
|
1
1
|
app/__init__.py,sha256=u5X4kPcpqZ12ZLnhwwOCScNvftaknDTrb0DMXqR_iLc,130
|
2
2
|
app/config.py,sha256=7C09kn2bmda9frTPfZ7f1JhagqHAZjGM5BYqZmhegYM,5190
|
3
3
|
app/database.py,sha256=nt8CVuDpy6zw8mOYqDcfUmNw611t7Ln7pz22M0b6-MI,9967
|
4
|
-
app/main.py,sha256=
|
4
|
+
app/main.py,sha256=zhseBNDgQhKTKbyiJn9eUyUuS4Y7OCqlZGYfpU2iE3A,24366
|
5
5
|
app/models.py,sha256=4-y9Lytay2exWPFi0FDlVeRL3K2-I7E-jBqNzTfokqY,2644
|
6
6
|
app/utils.py,sha256=zK8aTPdadXomyG2Kgpi7WuC5XYwfShJj74bXWSLtyW0,4309
|
7
7
|
app/api/__init__.py,sha256=A8UL84ldYlv8l7O-yKzraVFcfww86SgWfpl4p7R03-w,62
|
@@ -10,14 +10,14 @@ app/api/base.py,sha256=-6RSxSpqe-OMwkaq1wVWbu3pVkte-ZYy8rmdvt-Qh48,3953
|
|
10
10
|
app/api/ollama.py,sha256=zFZ3g2sYncvMgcvx92jTCLkigIaDvTuhILcLiCrwisc,11640
|
11
11
|
app/api/openai.py,sha256=1fYgFXXL6yj_7lQ893Yj28RYG4M8d6gt_q1gzhhjcig,3641
|
12
12
|
app/ui/__init__.py,sha256=RndfbQ1Tv47qdSiuQzvWP96lPS547SDaGE-BgOtiP_w,55
|
13
|
-
app/ui/chat_interface.py,sha256=
|
13
|
+
app/ui/chat_interface.py,sha256=KVnNLtXophoOh4pkCc8lAZKJG_zljbM79d8OT5eWgSs,12236
|
14
14
|
app/ui/chat_list.py,sha256=WQTYVNSSXlx_gQal3YqILZZKL9UiTjmNMIDX2I9pAMM,11205
|
15
15
|
app/ui/model_selector.py,sha256=xCuaohgYvebgP0Eel6-XzUn-7Y0SrJUArdTr-CDBZXc,12840
|
16
16
|
app/ui/search.py,sha256=b-m14kG3ovqW1-i0qDQ8KnAqFJbi5b1FLM9dOnbTyIs,9763
|
17
17
|
app/ui/styles.py,sha256=04AhPuLrOd2yenfRySFRestPeuTPeMLzhmMB67NdGvw,5615
|
18
|
-
chat_console-0.1.
|
19
|
-
chat_console-0.1.
|
20
|
-
chat_console-0.1.
|
21
|
-
chat_console-0.1.
|
22
|
-
chat_console-0.1.
|
23
|
-
chat_console-0.1.
|
18
|
+
chat_console-0.1.7.dev1.dist-info/LICENSE,sha256=srHZ3fvcAuZY1LHxE7P6XWju2njRCHyK6h_ftEbzxSE,1057
|
19
|
+
chat_console-0.1.7.dev1.dist-info/METADATA,sha256=dxq5wCprEtW-Padybfsb343koM3Mh-RIsIkhnwuz7sw,2904
|
20
|
+
chat_console-0.1.7.dev1.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
21
|
+
chat_console-0.1.7.dev1.dist-info/entry_points.txt,sha256=kkVdEc22U9PAi2AeruoKklfkng_a_aHAP6VRVwrAD7c,67
|
22
|
+
chat_console-0.1.7.dev1.dist-info/top_level.txt,sha256=io9g7LCbfmTG1SFKgEOGXmCFB9uMP2H5lerm0HiHWQE,4
|
23
|
+
chat_console-0.1.7.dev1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|