pygpt-net 2.7.5__py3-none-any.whl → 2.7.7__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.
Files changed (82) hide show
  1. pygpt_net/CHANGELOG.txt +14 -0
  2. pygpt_net/__init__.py +4 -4
  3. pygpt_net/controller/chat/remote_tools.py +3 -9
  4. pygpt_net/controller/chat/stream.py +2 -2
  5. pygpt_net/controller/chat/{handler/worker.py → stream_worker.py} +20 -64
  6. pygpt_net/controller/debug/fixtures.py +3 -2
  7. pygpt_net/controller/files/files.py +65 -4
  8. pygpt_net/core/debug/models.py +2 -2
  9. pygpt_net/core/filesystem/url.py +4 -1
  10. pygpt_net/core/render/web/body.py +3 -2
  11. pygpt_net/core/types/chunk.py +27 -0
  12. pygpt_net/data/config/config.json +14 -4
  13. pygpt_net/data/config/models.json +192 -4
  14. pygpt_net/data/config/settings.json +126 -36
  15. pygpt_net/data/js/app/template.js +1 -1
  16. pygpt_net/data/js/app.min.js +2 -2
  17. pygpt_net/data/locale/locale.de.ini +5 -0
  18. pygpt_net/data/locale/locale.en.ini +35 -8
  19. pygpt_net/data/locale/locale.es.ini +5 -0
  20. pygpt_net/data/locale/locale.fr.ini +5 -0
  21. pygpt_net/data/locale/locale.it.ini +5 -0
  22. pygpt_net/data/locale/locale.pl.ini +5 -0
  23. pygpt_net/data/locale/locale.uk.ini +5 -0
  24. pygpt_net/data/locale/locale.zh.ini +5 -0
  25. pygpt_net/data/locale/plugin.cmd_mouse_control.en.ini +2 -2
  26. pygpt_net/item/ctx.py +3 -5
  27. pygpt_net/js_rc.py +2449 -2447
  28. pygpt_net/plugin/cmd_mouse_control/config.py +8 -7
  29. pygpt_net/plugin/cmd_mouse_control/plugin.py +3 -4
  30. pygpt_net/plugin/cmd_mouse_control/worker.py +2 -1
  31. pygpt_net/plugin/cmd_mouse_control/worker_sandbox.py +2 -1
  32. pygpt_net/provider/api/anthropic/__init__.py +16 -9
  33. pygpt_net/provider/api/anthropic/chat.py +259 -11
  34. pygpt_net/provider/api/anthropic/computer.py +844 -0
  35. pygpt_net/provider/api/anthropic/remote_tools.py +172 -0
  36. pygpt_net/{controller/chat/handler/anthropic_stream.py → provider/api/anthropic/stream.py} +24 -10
  37. pygpt_net/provider/api/anthropic/tools.py +32 -77
  38. pygpt_net/provider/api/anthropic/utils.py +30 -0
  39. pygpt_net/provider/api/google/__init__.py +6 -5
  40. pygpt_net/provider/api/google/chat.py +3 -8
  41. pygpt_net/{controller/chat/handler/google_stream.py → provider/api/google/stream.py} +1 -1
  42. pygpt_net/provider/api/google/utils.py +185 -0
  43. pygpt_net/{controller/chat/handler → provider/api/langchain}/__init__.py +0 -0
  44. pygpt_net/{controller/chat/handler/langchain_stream.py → provider/api/langchain/stream.py} +1 -1
  45. pygpt_net/provider/api/llama_index/__init__.py +0 -0
  46. pygpt_net/{controller/chat/handler/llamaindex_stream.py → provider/api/llama_index/stream.py} +1 -1
  47. pygpt_net/provider/api/openai/__init__.py +7 -3
  48. pygpt_net/provider/api/openai/image.py +2 -2
  49. pygpt_net/provider/api/openai/responses.py +0 -0
  50. pygpt_net/{controller/chat/handler/openai_stream.py → provider/api/openai/stream.py} +1 -1
  51. pygpt_net/provider/api/openai/utils.py +69 -3
  52. pygpt_net/provider/api/x_ai/__init__.py +117 -17
  53. pygpt_net/provider/api/x_ai/chat.py +272 -102
  54. pygpt_net/provider/api/x_ai/image.py +149 -47
  55. pygpt_net/provider/api/x_ai/{remote.py → remote_tools.py} +165 -70
  56. pygpt_net/provider/api/x_ai/responses.py +507 -0
  57. pygpt_net/provider/api/x_ai/stream.py +715 -0
  58. pygpt_net/provider/api/x_ai/tools.py +59 -8
  59. pygpt_net/{controller/chat/handler → provider/api/x_ai}/utils.py +1 -2
  60. pygpt_net/provider/api/x_ai/vision.py +1 -4
  61. pygpt_net/provider/core/config/patch.py +22 -1
  62. pygpt_net/provider/core/model/patch.py +26 -1
  63. pygpt_net/tools/image_viewer/ui/dialogs.py +300 -13
  64. pygpt_net/tools/text_editor/ui/dialogs.py +3 -2
  65. pygpt_net/tools/text_editor/ui/widgets.py +5 -1
  66. pygpt_net/ui/base/context_menu.py +44 -1
  67. pygpt_net/ui/layout/toolbox/indexes.py +22 -19
  68. pygpt_net/ui/layout/toolbox/model.py +28 -5
  69. pygpt_net/ui/widget/dialog/base.py +16 -5
  70. pygpt_net/ui/widget/image/display.py +25 -8
  71. pygpt_net/ui/widget/tabs/output.py +9 -1
  72. pygpt_net/ui/widget/textarea/editor.py +14 -1
  73. pygpt_net/ui/widget/textarea/input.py +20 -7
  74. pygpt_net/ui/widget/textarea/notepad.py +24 -1
  75. pygpt_net/ui/widget/textarea/output.py +23 -1
  76. pygpt_net/ui/widget/textarea/web.py +16 -1
  77. {pygpt_net-2.7.5.dist-info → pygpt_net-2.7.7.dist-info}/METADATA +16 -2
  78. {pygpt_net-2.7.5.dist-info → pygpt_net-2.7.7.dist-info}/RECORD +80 -73
  79. pygpt_net/controller/chat/handler/xai_stream.py +0 -135
  80. {pygpt_net-2.7.5.dist-info → pygpt_net-2.7.7.dist-info}/LICENSE +0 -0
  81. {pygpt_net-2.7.5.dist-info → pygpt_net-2.7.7.dist-info}/WHEEL +0 -0
  82. {pygpt_net-2.7.5.dist-info → pygpt_net-2.7.7.dist-info}/entry_points.txt +0 -0
@@ -301,6 +301,9 @@ confirm.remote_store.truncate = Cancellare tutte le basi vettoriali in API?
301
301
  context.btn.clear = Pulisci memoria
302
302
  context.items = elementi
303
303
  context.label = Contesto
304
+ context_menu.zoom = Zoom
305
+ context_menu.zoom.in = Ingrandire
306
+ context_menu.zoom.out = Ridurre
304
307
  context.tokens = token
305
308
  ctx.delete.all.confirm = Sei sicuro di voler eliminare TUTTI i contesti della cronologia?
306
309
  ctx.delete.confirm = Sei sicuro di voler eliminare?
@@ -1276,7 +1279,9 @@ settings.ctx.attachment.verbose = Modalità Verbose
1276
1279
  settings.ctx.attachment.verbose.desc = Log utilizzo degli allegati nella console
1277
1280
  settings.ctx.audio = Mostra sempre l'icona audio
1278
1281
  settings.ctx.auto_summary = Riassunto automatico del contesto
1282
+ settings.ctx.auto_summary.desc = Abilita il riassunto automatico del contesto nella lista delle conversazioni a sinistra.
1279
1283
  settings.ctx.auto_summary.model = Modello utilizzato per riassunto automatico
1284
+ settings.ctx.auto_summary.model.desc = Scegli un modello utilizzato per riassumere il contesto e preparare il titolo nella lista delle conversazioni a sinistra.
1280
1285
  settings.ctx.code_interpreter = Mostra l'output dell'interprete del codice
1281
1286
  settings.ctx.code_interpreter.desc = Se abilitato, l'output dell'interprete del codice nell'API dell'Assistente verrà visualizzato in tempo reale (in modalità streaming).
1282
1287
  settings.ctx.convert_lists = Converti liste in paragrafi
@@ -301,6 +301,9 @@ confirm.remote_store.truncate = Usunąć wszystkie bazy wektorowe w API?
301
301
  context.btn.clear = Wyczyść pamięć
302
302
  context.items = elementy
303
303
  context.label = Kontekst
304
+ context_menu.zoom = Powiększenie
305
+ context_menu.zoom.in = Powiększ
306
+ context_menu.zoom.out = Pomniejsz
304
307
  context.tokens = tokeny
305
308
  ctx.delete.all.confirm = Czy na pewno usunąć CAŁĄ historię?
306
309
  ctx.delete.confirm = Czy na pewno usunąć?
@@ -1277,7 +1280,9 @@ settings.ctx.attachment.verbose = Tryb szczegółowy
1277
1280
  settings.ctx.attachment.verbose.desc = Loguj użycie załączników do konsoli
1278
1281
  settings.ctx.audio = Zawsze pokazuj ikonę audio
1279
1282
  settings.ctx.auto_summary = Kontekst: auto-podsumowanie
1283
+ settings.ctx.auto_summary.desc = Włącz automatyczne podsumowywanie kontekstu na liście konwersacji po lewej.
1280
1284
  settings.ctx.auto_summary.model = Model używany do auto-podsumowania
1285
+ settings.ctx.auto_summary.model.desc = Wybierz model używany do podsumowywania kontekstu i przygotowywania tytułu na liście konwersacji po lewej.
1281
1286
  settings.ctx.code_interpreter = Pokaż wyniki interpretacji kodu
1282
1287
  settings.ctx.code_interpreter.desc = Jeśli ta opcja jest włączona, wyniki z interpretacji kodu w API Asystenta będą wyświetlane w czasie rzeczywistym (w trybie strumienia).
1283
1288
  settings.ctx.convert_lists = Konwertuj listy na akapity
@@ -301,6 +301,9 @@ confirm.remote_store.truncate = Видалити всі векторні баз
301
301
  context.btn.clear = Очистити пам'ять
302
302
  context.items = елементи
303
303
  context.label = Контекст
304
+ context_menu.zoom = Масштаб
305
+ context_menu.zoom.in = Збільшити
306
+ context_menu.zoom.out = Зменшити
304
307
  context.tokens = токени
305
308
  ctx.delete.all.confirm = Ви впевнені, що хочете видалити ВСІ контексти історії?
306
309
  ctx.delete.confirm = Ви впевнені, що хочете видалити?
@@ -1276,7 +1279,9 @@ settings.ctx.attachment.verbose = Детальний режим
1276
1279
  settings.ctx.attachment.verbose.desc = Реєструвати використання вкладень у консолі
1277
1280
  settings.ctx.audio = Завжди показувати значок аудіо
1278
1281
  settings.ctx.auto_summary = Автоматичне стиснення контексту
1282
+ settings.ctx.auto_summary.desc = Увімкніть автоматичне підсумовування контексту у списку розмов зліва.
1279
1283
  settings.ctx.auto_summary.model = Модель, що використовується для автоматичного стиснення
1284
+ settings.ctx.auto_summary.model.desc = Виберіть модель, що використовується для підсумовування контексту та підготовки заголовка у списку розмов зліва.
1280
1285
  settings.ctx.code_interpreter = Показати вивід інтерпретатора коду
1281
1286
  settings.ctx.code_interpreter.desc = Якщо включено, результати інтерпретатора коду в API Асистента будуть відображатися в реальному часі (в режимі потоку).
1282
1287
  settings.ctx.convert_lists = Конвертувати списки в абзаци
@@ -301,6 +301,9 @@ confirm.remote_store.truncate = 删除 API 中的所有矢量存储?
301
301
  context.btn.clear = 清除記憶體
302
302
  context.items = 項目
303
303
  context.label = 上下文
304
+ context_menu.zoom = 缩放
305
+ context_menu.zoom.in = 放大
306
+ context_menu.zoom.out = 缩小
304
307
  context.tokens = 令牌
305
308
  ctx.delete.all.confirm = 您確定要刪除所有歷史上下文嗎?
306
309
  ctx.delete.confirm = 您確定要刪除嗎?
@@ -1276,7 +1279,9 @@ settings.ctx.attachment.verbose = 详细模式
1276
1279
  settings.ctx.attachment.verbose.desc = 将附件使用记录到控制台
1277
1280
  settings.ctx.audio = 总是显示音频图标
1278
1281
  settings.ctx.auto_summary = 上下文自動摘要
1282
+ settings.ctx.auto_summary.desc = 启用左侧对话列表中上下文的自动总结。
1279
1283
  settings.ctx.auto_summary.model = 用於自動摘要的模型
1284
+ settings.ctx.auto_summary.model.desc = 选择用于总结上下文并准备左侧对话列表标题的模型。
1280
1285
  settings.ctx.code_interpreter = 显示代码解释器输出
1281
1286
  settings.ctx.code_interpreter.desc = 如果启用,助手 API 中的代码解释器输出将实时显示(以流模式)。
1282
1287
  settings.ctx.convert_lists = 将列表转换为段落
@@ -48,6 +48,6 @@ sandbox_home.label = Home URL
48
48
  sandbox_path.description = Path to Playwright browsers installation - leave empty to use default
49
49
  sandbox_path.label = Browsers directory
50
50
  sandbox_viewport_h.description = Playwright viewport height in pixels
51
- sandbox_viewport_h.label = Viewport height
51
+ sandbox_viewport_h.label = Viewport (height)
52
52
  sandbox_viewport_w.description = Playwright viewport width in pixels
53
- sandbox_viewport_w.label = Viewport width
53
+ sandbox_viewport_w.label = Viewport (width)
pygpt_net/item/ctx.py CHANGED
@@ -6,7 +6,7 @@
6
6
  # GitHub: https://github.com/szczyglis-dev/py-gpt #
7
7
  # MIT License #
8
8
  # Created By : Marcin Szczygliński #
9
- # Updated Date: 2026.01.03 02:10:00 #
9
+ # Updated Date: 2026.01.03 17:00:00 #
10
10
  # ================================================== #
11
11
 
12
12
  import copy
@@ -31,6 +31,7 @@ class CtxItem:
31
31
  audio_id: Optional[object] = None
32
32
  audio_output: Optional[object] = None
33
33
  bag: Optional[object] = None
34
+ chunk_type: Optional[str] = None
34
35
  cmds: list = field(default_factory=list)
35
36
  cmds_before: list = field(default_factory=list)
36
37
  current: bool = False
@@ -87,8 +88,6 @@ class CtxItem:
87
88
  urls: list = field(default_factory=list)
88
89
  urls_before: list = field(default_factory=list)
89
90
  use_agent_final_response: bool = False
90
- use_responses_api: bool = False
91
- use_google_interactions_api : bool = False
92
91
  ai_name: Optional[str] = None
93
92
 
94
93
  def __init__(self, mode: Optional[str] = None):
@@ -107,6 +106,7 @@ class CtxItem:
107
106
  self.audio_id = None
108
107
  self.audio_output = None
109
108
  self.bag = None
109
+ self.chunk_type = None
110
110
  self.cmds = []
111
111
  self.cmds_before = []
112
112
  self.current = False
@@ -164,8 +164,6 @@ class CtxItem:
164
164
  self.urls = []
165
165
  self.urls_before = []
166
166
  self.use_agent_final_response = False # use agent final response
167
- self.use_responses_api = False # use responses API format
168
- self.use_google_interactions_api = False # use Google Interactions API format
169
167
  self.ai_name = None # AI name
170
168
 
171
169
  @property