chat-console 0.3.94__py3-none-any.whl → 0.3.95__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 CHANGED
@@ -3,4 +3,4 @@ Chat CLI
3
3
  A command-line interface for chatting with various LLM providers like ChatGPT and Claude.
4
4
  """
5
5
 
6
- __version__ = "0.3.94"
6
+ __version__ = "0.3.95"
app/ui/chat_interface.py CHANGED
@@ -136,7 +136,7 @@ class MessageDisplay(Static): # Inherit from Static instead of RichLog
136
136
  # Force a complete replacement
137
137
  self.message.content = content
138
138
  formatted_content = self._format_content(content)
139
- self.update(formatted_content, refresh=True)
139
+ self.update(formatted_content)
140
140
 
141
141
  # Force app-level refresh
142
142
  try:
@@ -153,9 +153,10 @@ class MessageDisplay(Static): # Inherit from Static instead of RichLog
153
153
  # For all other updates - ALWAYS update
154
154
  self.message.content = content
155
155
  formatted_content = self._format_content(content)
156
- self.update(formatted_content, refresh=True)
156
+ # Ensure the update call doesn't have refresh=True
157
+ self.update(formatted_content)
157
158
 
158
- # Force refresh
159
+ # Force refresh using app.refresh() instead of passing to update()
159
160
  try:
160
161
  if self.app:
161
162
  self.app.refresh(layout=True)
app/utils.py CHANGED
@@ -753,7 +753,9 @@ def resolve_model_id(model_id_or_name: str) -> str:
753
753
  "04-turbo": "gpt-4-turbo",
754
754
  "035": "gpt-3.5-turbo",
755
755
  "35-turbo": "gpt-3.5-turbo",
756
- "35": "gpt-3.5-turbo"
756
+ "35": "gpt-3.5-turbo",
757
+ "4.1-mini": "gpt-4.1-mini", # Add support for gpt-4.1-mini
758
+ "4.1": "gpt-4.1" # Add support for gpt-4.1
757
759
  }
758
760
 
759
761
  if input_lower in openai_model_aliases:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chat-console
3
- Version: 0.3.94
3
+ Version: 0.3.95
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,24 +1,24 @@
1
- app/__init__.py,sha256=TW6khejFFoiUQaPE4GrBSNhjPphu3d8_DnTATL6tl9c,131
1
+ app/__init__.py,sha256=8Y_-BF1_VRcDOSqGO8CR8u53RZRpt8E6zlGMF6GmQFk,131
2
2
  app/config.py,sha256=xeRGXcKbNvAdQGkaJJBipM4yHZJTM1y4ZFoW764APOU,7661
3
3
  app/database.py,sha256=nt8CVuDpy6zw8mOYqDcfUmNw611t7Ln7pz22M0b6-MI,9967
4
4
  app/main.py,sha256=RmQtbIKtgo92Y5Ue0NbozNP_9BsswLee1rw2la9yEH8,78953
5
5
  app/models.py,sha256=4-y9Lytay2exWPFi0FDlVeRL3K2-I7E-jBqNzTfokqY,2644
6
- app/utils.py,sha256=9bi7mYkt4fp7w8m5CgXJrecozugfqdPD4vYkJZvCQ-c,38703
6
+ app/utils.py,sha256=eGHv4VRjP_qSaYTdLanVffWZXoCh2h3SI0gf2Y6ljes,38824
7
7
  app/api/__init__.py,sha256=A8UL84ldYlv8l7O-yKzraVFcfww86SgWfpl4p7R03-w,62
8
8
  app/api/anthropic.py,sha256=uInwNvGLJ_iPUs4BjdwaqXTU6NfmK1SzX7498Pt44fI,10667
9
9
  app/api/base.py,sha256=zvlHHfIcaObefkJ3w4er9ZSX7YGZ_MM0H-wrzD8CGAM,7629
10
10
  app/api/ollama.py,sha256=eFG24nI2MlF57z9EHiA97v02NgFJ0kxaPUX26xAXFsg,66154
11
11
  app/api/openai.py,sha256=hLPr955tUx_2vwRuLP8Zrl3vu7kQZgUETi4cJuaYnFE,10810
12
12
  app/ui/__init__.py,sha256=RndfbQ1Tv47qdSiuQzvWP96lPS547SDaGE-BgOtiP_w,55
13
- app/ui/chat_interface.py,sha256=e_BJMIRtH9YX85-bwNOixz3St9fRn4C_eHhZtvz35D0,18180
13
+ app/ui/chat_interface.py,sha256=oSDZi0Jgj_L8WnBh1RuJpIeIcN-RQ38CNejwsXiWTVg,18267
14
14
  app/ui/chat_list.py,sha256=WQTYVNSSXlx_gQal3YqILZZKL9UiTjmNMIDX2I9pAMM,11205
15
15
  app/ui/model_browser.py,sha256=pdblLVkdyVF0_Bo02bqbErGAtieyH-y6IfhMOPEqIso,71124
16
16
  app/ui/model_selector.py,sha256=9fIPpAiqb568idt9pdROAYaxpoqY9czMF-bGdOl4nYk,18861
17
17
  app/ui/search.py,sha256=b-m14kG3ovqW1-i0qDQ8KnAqFJbi5b1FLM9dOnbTyIs,9763
18
18
  app/ui/styles.py,sha256=04AhPuLrOd2yenfRySFRestPeuTPeMLzhmMB67NdGvw,5615
19
- chat_console-0.3.94.dist-info/licenses/LICENSE,sha256=srHZ3fvcAuZY1LHxE7P6XWju2njRCHyK6h_ftEbzxSE,1057
20
- chat_console-0.3.94.dist-info/METADATA,sha256=9KzoIz0DiVXSzjkis3eRQtcCJRhyCLJe2L9Kx3olp8A,2922
21
- chat_console-0.3.94.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
22
- chat_console-0.3.94.dist-info/entry_points.txt,sha256=kkVdEc22U9PAi2AeruoKklfkng_a_aHAP6VRVwrAD7c,67
23
- chat_console-0.3.94.dist-info/top_level.txt,sha256=io9g7LCbfmTG1SFKgEOGXmCFB9uMP2H5lerm0HiHWQE,4
24
- chat_console-0.3.94.dist-info/RECORD,,
19
+ chat_console-0.3.95.dist-info/licenses/LICENSE,sha256=srHZ3fvcAuZY1LHxE7P6XWju2njRCHyK6h_ftEbzxSE,1057
20
+ chat_console-0.3.95.dist-info/METADATA,sha256=EqxOX-Bugw7Iu2PKQS63pnUYP64UzjkvrNnv2X-Z4fg,2922
21
+ chat_console-0.3.95.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
22
+ chat_console-0.3.95.dist-info/entry_points.txt,sha256=kkVdEc22U9PAi2AeruoKklfkng_a_aHAP6VRVwrAD7c,67
23
+ chat_console-0.3.95.dist-info/top_level.txt,sha256=io9g7LCbfmTG1SFKgEOGXmCFB9uMP2H5lerm0HiHWQE,4
24
+ chat_console-0.3.95.dist-info/RECORD,,