pygpt-net 2.6.54__py3-none-any.whl → 2.6.55__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.
pygpt_net/CHANGELOG.txt CHANGED
@@ -1,3 +1,8 @@
1
+ 2.6.55 (2025-09-18)
2
+
3
+ - Fixed: Unnecessary context loading from the database.
4
+ - Optimized: Token count in the input field.
5
+
1
6
  2.6.54 (2025-09-18)
2
7
 
3
8
  - Added: Remote tools (like web search) are now also available in the Chat with Files and Agents (LlamaIndex) modes.
pygpt_net/__init__.py CHANGED
@@ -13,7 +13,7 @@ __author__ = "Marcin Szczygliński"
13
13
  __copyright__ = "Copyright 2025, Marcin Szczygliński"
14
14
  __credits__ = ["Marcin Szczygliński"]
15
15
  __license__ = "MIT"
16
- __version__ = "2.6.54"
16
+ __version__ = "2.6.55"
17
17
  __build__ = "2025-09-18"
18
18
  __maintainer__ = "Marcin Szczygliński"
19
19
  __github__ = "https://github.com/szczyglis-dev/py-gpt"
File without changes
pygpt_net/core/ctx/ctx.py CHANGED
@@ -727,9 +727,10 @@ class Ctx:
727
727
  :param id: ctx id
728
728
  :return: ctx meta object
729
729
  """
730
- self.load_tmp_meta(id)
731
730
  if id in self.meta:
732
731
  return self.meta[id]
732
+ else:
733
+ self.load_tmp_meta(id)
733
734
 
734
735
  def get_last(self) -> Optional[CtxItem]:
735
736
  """
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "__meta__": {
3
- "version": "2.6.54",
4
- "app.version": "2.6.54",
3
+ "version": "2.6.55",
4
+ "app.version": "2.6.55",
5
5
  "updated_at": "2025-09-18T00:00:00"
6
6
  },
7
7
  "access.audio.event.speech": false,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "__meta__": {
3
- "version": "2.6.54",
4
- "app.version": "2.6.54",
3
+ "version": "2.6.55",
4
+ "app.version": "2.6.55",
5
5
  "updated_at": "2025-09-18T00:00:00"
6
6
  },
7
7
  "items": {
@@ -106,8 +106,15 @@ class ChatInput(QTextEdit):
106
106
  self._auto_timer.setSingleShot(True)
107
107
  self._auto_timer.timeout.connect(self._auto_resize_tick)
108
108
 
109
- # Trigger auto-resize on text changes (tokens update stays intact)
110
- self.textChanged.connect(self._schedule_auto_resize)
109
+ self._tokens_timer = QTimer(self)
110
+ self._tokens_timer.setSingleShot(True)
111
+ self._tokens_timer.setInterval(500)
112
+ self._tokens_timer.timeout.connect(self.window.controller.ui.update_tokens)
113
+ self.textChanged.connect(self._on_text_changed_tokens)
114
+
115
+ def _on_text_changed_tokens(self):
116
+ """Schedule token count update with debounce."""
117
+ self._tokens_timer.start()
111
118
 
112
119
  def _apply_text_top_padding(self):
113
120
  """Apply extra top padding inside the text area by using viewport margins."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pygpt-net
3
- Version: 2.6.54
3
+ Version: 2.6.55
4
4
  Summary: Desktop AI Assistant powered by: OpenAI GPT-5, GPT-4, o1, o3, Gemini, Claude, Grok, DeepSeek, and other models supported by Llama Index, and Ollama. Chatbot, agents, completion, image generation, vision analysis, speech-to-text, plugins, MCP, internet access, file handling, command execution and more.
5
5
  License: MIT
6
6
  Keywords: ai,api,api key,app,assistant,bielik,chat,chatbot,chatgpt,claude,dall-e,deepseek,desktop,gemini,gpt,gpt-3.5,gpt-4,gpt-4-vision,gpt-4o,gpt-5,gpt-oss,gpt3.5,gpt4,grok,langchain,llama-index,llama3,mistral,o1,o3,ollama,openai,presets,py-gpt,py_gpt,pygpt,pyside,qt,text completion,tts,ui,vision,whisper
@@ -119,7 +119,7 @@ Description-Content-Type: text/markdown
119
119
 
120
120
  [![pygpt](https://snapcraft.io/pygpt/badge.svg)](https://snapcraft.io/pygpt)
121
121
 
122
- Release: **2.6.54** | build: **2025-09-18** | Python: **>=3.10, <3.14**
122
+ Release: **2.6.55** | build: **2025-09-18** | Python: **>=3.10, <3.14**
123
123
 
124
124
  > Official website: https://pygpt.net | Documentation: https://pygpt.readthedocs.io
125
125
  >
@@ -3646,6 +3646,11 @@ may consume additional tokens that are not displayed in the main window.
3646
3646
 
3647
3647
  ## Recent changes:
3648
3648
 
3649
+ **2.6.55 (2025-09-18)**
3650
+
3651
+ - Fixed: Unnecessary context loading from the database.
3652
+ - Optimized: Token count in the input field.
3653
+
3649
3654
  **2.6.54 (2025-09-18)**
3650
3655
 
3651
3656
  - Added: Remote tools (like web search) are now also available in the Chat with Files and Agents (LlamaIndex) modes.
@@ -1,6 +1,6 @@
1
- pygpt_net/CHANGELOG.txt,sha256=tPwc-NzGHVHf4rD1kHYkx2HOCFe-EmvpWuUKP-nfSj8,107533
1
+ pygpt_net/CHANGELOG.txt,sha256=aJ_ypWzqdw70BHyLM2_E1YFhqAm9omG_HLKpdSBh24Y,107656
2
2
  pygpt_net/LICENSE,sha256=dz9sfFgYahvu2NZbx4C1xCsVn9GVer2wXcMkFRBvqzY,1146
3
- pygpt_net/__init__.py,sha256=qPZCOW4Qc194HFhZorIsMeF1Dq-DS-346plWmtcAOOA,1373
3
+ pygpt_net/__init__.py,sha256=nuG6j7HK0OuHVophITf5lDzbQda9QO55rKvobmAEF5c,1373
4
4
  pygpt_net/app.py,sha256=Wo4BiC2j6kovUFaIgc6AF4eC1M58_vYLDuKcdMFEjQc,22236
5
5
  pygpt_net/app_core.py,sha256=PwBOV9wZLtr-O6SxBiazABhYXMHH8kZ6OgbvSv2OiZA,3827
6
6
  pygpt_net/config.py,sha256=SCps_FfwdrynVAgpn37Ci1qTN8BFC05IGl9sYIi9e0w,16720
@@ -224,7 +224,7 @@ pygpt_net/core/command/command.py,sha256=Ix8Y_T8Ayn2a86tZdVGcFJ5VEoSW2IkcU-_Aog5
224
224
  pygpt_net/core/ctx/__init__.py,sha256=hsqzIDxcwIIjF-7Zr5SkkhQV9LLmIYndQ_dohK20bg0,507
225
225
  pygpt_net/core/ctx/bag.py,sha256=j_10HBqkswdz5vW140SuGvJRf7E7J7hQyz6DCVe5D44,1570
226
226
  pygpt_net/core/ctx/container.py,sha256=5nlgM_8laH0igUASILD5zIiK3YhB-BA9pTKI0jVqHeQ,4938
227
- pygpt_net/core/ctx/ctx.py,sha256=nl-xYi8u6bmqRCX51wwd6bXcd2FaOH1pdaSVJcgH9kM,43530
227
+ pygpt_net/core/ctx/ctx.py,sha256=9_23I84VHWEX32ydxKIC5Nb5w_z7Oidf7-0jMDP31KI,43548
228
228
  pygpt_net/core/ctx/idx.py,sha256=3Zi-48OWlU80si-Z7mVjnsc7TYATXK9g1dM0M5sXsV4,8167
229
229
  pygpt_net/core/ctx/output.py,sha256=6llpijYvZPPyn12ibhw0QpNpWaZijDMCB7rAahE2iD4,8928
230
230
  pygpt_net/core/ctx/reply.py,sha256=nm-TzBoIDE9GrYyNjtIT7DvJVf8duAS2fVMeInHNEH4,2324
@@ -396,8 +396,8 @@ pygpt_net/css_rc.py,sha256=PX6g9z5BsD-DXISuR2oq3jHcjiKfcJ4HsgcHez6wGMc,27762
396
396
  pygpt_net/data/audio/click_off.mp3,sha256=aNiRDP1pt-Jy7ija4YKCNFBwvGWbzU460F4pZWZDS90,65201
397
397
  pygpt_net/data/audio/click_on.mp3,sha256=qfdsSnthAEHVXzeyN4LlC0OvXuyW8p7stb7VXtlvZ1k,65201
398
398
  pygpt_net/data/audio/ok.mp3,sha256=LTiV32pEBkpUGBkKkcOdOFB7Eyt_QoP2Nv6c5AaXftk,32256
399
- pygpt_net/data/config/config.json,sha256=25JsVTJEiVo8rVOgAGWrEwoffymstOCGNqXRyEnc6-k,30886
400
- pygpt_net/data/config/models.json,sha256=WNCzYb3SgdiXLUr4BMG665s-6r8n6Q0wwXgE7ymBdSY,118192
399
+ pygpt_net/data/config/config.json,sha256=96MIjPzLdtWnxFjE3gnMCkNEIUzqFik1G91jO5mYoOw,30886
400
+ pygpt_net/data/config/models.json,sha256=M3gL_7bKPqB9lfh7mphfVzKKPhRYq-Mkp_0SVezS_rc,118192
401
401
  pygpt_net/data/config/modes.json,sha256=IpjLOm428_vs6Ma9U-YQTNKJNtZw-qyM1lwhh73xl1w,2111
402
402
  pygpt_net/data/config/presets/agent_code_act.json,sha256=GYHqhxtKFLUCvRI3IJAJ7Qe1k8yD9wGGNwManldWzlI,754
403
403
  pygpt_net/data/config/presets/agent_openai.json,sha256=bpDJgLRey_effQkzFRoOEGd4aHUrmzeODSDdNzrf62I,730
@@ -2577,7 +2577,7 @@ pygpt_net/ui/widget/textarea/create.py,sha256=f4SrAW-2hjkKYIPrwVliSYH-LkgsQP8G13
2577
2577
  pygpt_net/ui/widget/textarea/editor.py,sha256=gmNzsMrCQXGkFyVfl0woc_klmjsyiXuOdcG8Lk2PSR4,5038
2578
2578
  pygpt_net/ui/widget/textarea/find.py,sha256=fQu6t-_LTZGFRNCkezywtMVsL-DocIkGBR_HbRFq61g,1534
2579
2579
  pygpt_net/ui/widget/textarea/html.py,sha256=4DOnUYtHBhN-6X5w13GK-ceAAvTPd8M4mH_N-c3L_h0,12344
2580
- pygpt_net/ui/widget/textarea/input.py,sha256=TNJxS5y2-ih8uzoKR1IZjftByrSGbI0JCFSEH6URO0g,35392
2580
+ pygpt_net/ui/widget/textarea/input.py,sha256=q968EmthyKQ6He9v8WNv3dSReGkbeg_9JbW3fj4_qaE,35668
2581
2581
  pygpt_net/ui/widget/textarea/name.py,sha256=vcyAY_pJWJoS_IJqdJjhIeDSniTL9rfpt8aaobWNFVY,1132
2582
2582
  pygpt_net/ui/widget/textarea/notepad.py,sha256=yGXXUN3pBs5UQgx4ipa8_Xn8JWxbNEoYVsnLg4BvtcY,9718
2583
2583
  pygpt_net/ui/widget/textarea/output.py,sha256=krWta3GHwdlPOqcxLln150bo7iUOtbFL_yJzMucGOFU,6246
@@ -2588,8 +2588,8 @@ pygpt_net/ui/widget/textarea/web.py,sha256=FGS0NGSpzKgtP8AzMwnC-LHDXEOY7baHImmnx
2588
2588
  pygpt_net/ui/widget/vision/__init__.py,sha256=8HT4tQFqQogEEpGYTv2RplKBthlsFKcl5egnv4lzzEw,488
2589
2589
  pygpt_net/ui/widget/vision/camera.py,sha256=v1qEncaZr5pXocO5Cpk_lsgfCMvfFigdJmzsYfzvCl0,1877
2590
2590
  pygpt_net/utils.py,sha256=7lZj_YSzx7ZfvqFtjYThEvRJNSBZzrJyK7ZxDAtYPAQ,9708
2591
- pygpt_net-2.6.54.dist-info/LICENSE,sha256=rbPqNB_xxANH8hKayJyIcTwD4bj4Y2G-Mcm85r1OImM,1126
2592
- pygpt_net-2.6.54.dist-info/METADATA,sha256=cifb0gzX_XZ5yb2RBnnHKLQuePCZDN81LRC2KNjNWaQ,166526
2593
- pygpt_net-2.6.54.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
2594
- pygpt_net-2.6.54.dist-info/entry_points.txt,sha256=qvpII6UHIt8XfokmQWnCYQrTgty8FeJ9hJvOuUFCN-8,43
2595
- pygpt_net-2.6.54.dist-info/RECORD,,
2591
+ pygpt_net-2.6.55.dist-info/LICENSE,sha256=rbPqNB_xxANH8hKayJyIcTwD4bj4Y2G-Mcm85r1OImM,1126
2592
+ pygpt_net-2.6.55.dist-info/METADATA,sha256=bebYG3hfBiryuqZALnfnBXGqiEAPnrD4lX7x47uHo9g,166653
2593
+ pygpt_net-2.6.55.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
2594
+ pygpt_net-2.6.55.dist-info/entry_points.txt,sha256=qvpII6UHIt8XfokmQWnCYQrTgty8FeJ9hJvOuUFCN-8,43
2595
+ pygpt_net-2.6.55.dist-info/RECORD,,