chat-console 0.4.2__py3-none-any.whl → 0.4.6__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/__init__.py +1 -1
- app/api/ollama.py +1 -1
- app/console_chat.py +816 -0
- app/console_main.py +58 -0
- app/console_utils.py +195 -0
- app/main.py +267 -136
- app/ui/borders.py +154 -0
- app/ui/chat_interface.py +84 -78
- app/ui/model_selector.py +11 -3
- app/ui/styles.py +231 -137
- app/utils.py +22 -3
- {chat_console-0.4.2.dist-info → chat_console-0.4.6.dist-info}/METADATA +2 -2
- chat_console-0.4.6.dist-info/RECORD +28 -0
- {chat_console-0.4.2.dist-info → chat_console-0.4.6.dist-info}/WHEEL +1 -1
- chat_console-0.4.6.dist-info/entry_points.txt +5 -0
- chat_console-0.4.2.dist-info/RECORD +0 -24
- chat_console-0.4.2.dist-info/entry_points.txt +0 -3
- {chat_console-0.4.2.dist-info → chat_console-0.4.6.dist-info}/licenses/LICENSE +0 -0
- {chat_console-0.4.2.dist-info → chat_console-0.4.6.dist-info}/top_level.txt +0 -0
app/__init__.py
CHANGED
app/api/ollama.py
CHANGED
@@ -165,7 +165,7 @@ class OllamaClient(BaseModelClient):
|
|
165
165
|
user_msg = next((msg for msg in messages if msg.get("role") == "user"), None)
|
166
166
|
if user_msg and "content" in user_msg:
|
167
167
|
# Create a direct prompt
|
168
|
-
prompt = "
|
168
|
+
prompt = "You must generate a short, descriptive title (maximum 40 characters) for this conversation. ONLY output the title with no additional text, no quotes, and no explanation. Do not start with phrases like 'Here's a title' or 'Title:'. RESPOND ONLY WITH THE TITLE TEXT for the following message:\n\n" + user_msg["content"]
|
169
169
|
debug_log(f"Created title generation prompt: {prompt[:100]}...")
|
170
170
|
return prompt
|
171
171
|
else:
|