syntaxmatrix 2.6.4.1__py3-none-any.whl → 2.6.4.3__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.
@@ -413,7 +413,8 @@ def context_compatibility(question: str, dataset_context: str | None = None) ->
413
413
  def classify_ml_job_agent(refined_question, dataset_profile):
414
414
  import ast
415
415
 
416
- _profile = _prof.get_profile('classifier') or _prof.get_profile('admin')
416
+ _profile = _prof.get_profile('classifier') or _prof.get_profile('summarizer') or _prof.get_profile('chat') or _prof.get_profile('admin')
417
+
417
418
  _profile['client'] = _prof.get_client(_profile)
418
419
  _client = _profile['client']
419
420
  _provider = _profile["provider"].lower()
syntaxmatrix/core.py CHANGED
@@ -682,7 +682,7 @@ class SyntaxMUI:
682
682
  def classify_query_intent(self, query: str) -> str:
683
683
 
684
684
  if not self.classifier_profile:
685
- classifier_profile = _prof.get_profile('classifier') or _prof.get_profile('chat') or _prof.get_profile('summarizer') or _prof.get_profile('admin')
685
+ classifier_profile = _prof.get_profile('classifier') or _prof.get_profile('summarizer') or _prof.get_profile('chat') or _prof.get_profile('admin')
686
686
  if not classifier_profile:
687
687
  return "Error: Set a profile for Classification"
688
688
  self.classifier_profile = classifier_profile
@@ -887,7 +887,12 @@ class SyntaxMUI:
887
887
  if not self.chat_profile:
888
888
  chat_profile = _prof.get_profile("chat") or _prof.get_profile("admin")
889
889
  if not chat_profile:
890
- yield """<p style='color:red;'>Error: Chat profile is not configured. Add a chat profile inside the admin panel or contact your administrator.</p>
890
+ yield """
891
+ <p style='color:red;'>
892
+ Error!<br>
893
+ Chat profile is not configured. Add a chat profile inside the admin panel.
894
+ To do that, you must login first or contact your administrator.
895
+ </p>
891
896
  """
892
897
  return None
893
898
  self.chat_profile = chat_profile
@@ -967,14 +972,20 @@ class SyntaxMUI:
967
972
  except Exception as e:
968
973
  yield f"Error during streaming: {type(e).__name__}: {e}"
969
974
 
975
+
970
976
  def process_query(self, query, context, history, stream=False):
971
977
 
972
978
  if not self.chat_profile:
973
979
  chat_profile = _prof.get_profile("chat") or _prof.get_profile("admin")
974
980
  if not chat_profile:
975
- return """<p style='color:red;'>Error: Chat profile is not configured. Add a chat profile inside the admin panel or contact your administrator.</p>
981
+ yield """
982
+ <p style='color:red;'>
983
+ Error!<br>
984
+ Chat profile is not configured. Add a chat profile inside the admin panel.
985
+ To do that, you must login first or contact your administrator.
986
+ </p>
976
987
  """
977
- return
988
+ return None
978
989
 
979
990
  self.chat_profile = chat_profile
980
991
  self.chat_profile['client'] = _prof.get_client(chat_profile)
syntaxmatrix/routes.py CHANGED
@@ -7964,7 +7964,6 @@ def setup_routes(smx):
7964
7964
  nav = _generate_nav()
7965
7965
  footer = footer_html()
7966
7966
 
7967
- # now use render_template_string so we can drop the same head/nav/footer
7968
7967
  return render_template_string(f"""
7969
7968
  {head}
7970
7969
  <body>
@@ -7982,17 +7981,17 @@ def setup_routes(smx):
7982
7981
  <pre style="background:#f4f4f4;padding:1rem;
7983
7982
  border-radius:4px;text-align:left;
7984
7983
  overflow-x:auto;max-height:200px;">
7985
- {{{{ error_message }}}}
7984
+ {{ error_message }}
7986
7985
  </pre>
7987
7986
  <p>
7988
- <a href="{{{{ url_for('home') }}}}"
7987
+ <a href="{{ url_for('home') }}"
7989
7988
  style="display:inline-block;
7990
- margin-top:2rem;
7991
- padding:0.75rem 1.25rem;
7992
- background:#007acc;
7993
- color:#fff;
7994
- text-decoration:none;
7995
- border-radius:4px;">
7989
+ margin-top:2rem;
7990
+ padding:0.75rem 1.25rem;
7991
+ background:#007acc;
7992
+ color:#fff;
7993
+ text-decoration:none;
7994
+ border-radius:4px;">
7996
7995
  ← Back to Home
7997
7996
  </a>
7998
7997
  </p>
@@ -5,23 +5,23 @@ import os
5
5
  PROVIDERS_MODELS = {
6
6
  #1
7
7
  "OpenAI": [
8
- "gpt-5.2", # $1.75 $0.175 $14.00
9
- "gpt-5.2-chat-latest", # $1.75 $0.175 $14.00
10
- "gpt-5.2-pro", # $21.00 - $168.00
11
- "gpt-5.1", # $1.25 $0.125 $10.00
12
- "gpt-5.1-chat-latest", # $1.25 $0.125 $10.00
8
+ "gpt-5.2",
9
+ "gpt-5.2-chat-latest",
10
+ "gpt-5.2-pro",
11
+ "gpt-5.1",
12
+ "gpt-5.1-chat-latest",
13
13
  "gpt-5.1-codex-mini",
14
- "gpt-5.1-codex-max", # $1.25 $0.125 $10.00
15
- "gpt-5", # $1.25 $0.125 $10.00
16
- "gpt-5-nano", # $0.05 $0.005 $0.40
17
- "gpt-5-mini", # $0.25 $0.025 $2.00
18
- "gpt-5-pro", # $15.00 - $120.00
19
- "gpt-4.1", # $2.00 $0.50 $8.00
20
- "gpt-4.1-nano", # $0.10 $0.025 $0.40
21
- "gpt-4.1-mini", # $0.40 $0.10 $1.60
22
- "gpt-4o", # $2.50 $1.25 $10.00
23
- "gpt-4o-mini", # $0.15 $0.075 $0.60
24
- # "gpt-4o-mini-search-preview", # $0.15 - $0.60
14
+ "gpt-5.1-codex-max",
15
+ "gpt-5",
16
+ "gpt-5-nano",
17
+ "gpt-5-mini",
18
+ "gpt-5-pro",
19
+ "gpt-4.1",
20
+ "gpt-4.1-nano",
21
+ "gpt-4.1-mini",
22
+ "gpt-4o",
23
+ "gpt-4o-mini",
24
+ # "gpt-4o-mini-search-preview",
25
25
  ],
26
26
  #2
27
27
  "Google": [
@@ -149,6 +149,32 @@ MODEL_DESCRIPTIONS = {
149
149
  - ImageTexter
150
150
  """,
151
151
 
152
+ # #1.3 OpenAI
153
+ # "gpt-4o-mini-search-preview":"""
154
+ # Model: GPT 4o Mini
155
+ # Cost:
156
+ # Input = $0.15 <= 1M tokens
157
+ # Output = $0.60 <= 1M tokens
158
+
159
+ # Data Type:
160
+ # Input = Text
161
+ # Output = Text
162
+
163
+ # Context Length:
164
+ # Input = 128,000 tokens
165
+ # Output = 16,384 tokens
166
+
167
+ # Speed, Intelligence, and Training:
168
+ # 4x Fast
169
+ # 2x Clever
170
+ # Cut-off: 01/10/2023
171
+
172
+ # Agency:
173
+ # - Chat
174
+ # - Classifier
175
+ # - Summarizer
176
+ # """,
177
+
152
178
  #1.3 OpenAI
153
179
  "gpt-4.1":"""
154
180
  Model: GPT 4.1
@@ -367,7 +393,7 @@ MODEL_DESCRIPTIONS = {
367
393
  - Coder
368
394
  """,
369
395
 
370
- #1.10 OpenAI
396
+ #1.11 OpenAI
371
397
  "gpt-5.1-chat-latest":"""
372
398
  Model: GPT 5.1 Chat
373
399
  Cost:
@@ -393,7 +419,7 @@ MODEL_DESCRIPTIONS = {
393
419
  - Chat
394
420
  """,
395
421
 
396
- #1.10 OpenAI
422
+ #1.12 OpenAI
397
423
  "gpt-5.1-codex-mini":"""
398
424
  Model: GPT 5.1 Codex Mini
399
425
  Cost:
@@ -418,7 +444,7 @@ MODEL_DESCRIPTIONS = {
418
444
  - Coder
419
445
  """,
420
446
 
421
- #1.11 OpenAI
447
+ #1.13 OpenAI
422
448
  "gpt-5.1-codex-max":"""
423
449
  Model: GPT 5.1 Codex Max
424
450
  Cost:
@@ -443,7 +469,7 @@ MODEL_DESCRIPTIONS = {
443
469
  - Coder
444
470
  """,
445
471
 
446
- #1.12 OpenAI
472
+ #1.14 OpenAI
447
473
  "gpt-5.2":"""
448
474
  Model: GPT 5.2
449
475
  Cost:
@@ -467,8 +493,33 @@ MODEL_DESCRIPTIONS = {
467
493
  Agency:
468
494
  - Coder
469
495
  """,
496
+
497
+ #1.15 OpenAI
498
+ "gpt-5.2-chat-latest":"""
499
+ Model: GPT 5.2 Chat
500
+ Cost:
501
+ Input = $1.74 <= 1M tokens
502
+ Output = $14.00 <= 1M tokens
470
503
 
471
- #1.13 OpenAI
504
+ Data Type:
505
+ Input = (Text, Image)
506
+ Output = Text
507
+
508
+ Context Length:
509
+ Input = 128,000 tokens
510
+ Output = 16,384 tokens
511
+
512
+ Misc:
513
+ 3x Fast
514
+ 3x Clever
515
+ Thinking: No
516
+ Knowledge: 31/08/2025
517
+
518
+ Agency:
519
+ - Admin
520
+ """,
521
+
522
+ #1.16 OpenAI
472
523
  "gpt-5.2-pro":"""
473
524
  Model: GPT 5.2 Pro
474
525
  Cost:
@@ -493,6 +544,9 @@ MODEL_DESCRIPTIONS = {
493
544
  - Coder
494
545
  """,
495
546
 
547
+ # =========================
548
+ #2 GOOGLE
549
+ # =========================
496
550
  #2.1 Google
497
551
  "gemini-3-pro-preview": """
498
552
  Model: Gemini 3 Pro
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: syntaxmatrix
3
- Version: 2.6.4.1
3
+ Version: 2.6.4.3
4
4
  Summary: SyntaxMUI: A customizable framework for Python AI Assistant Projects.
5
5
  Author: Bob Nti
6
6
  Author-email: bob.nti@syntaxmatrix.net
7
+ License: MIT
7
8
  Classifier: Programming Language :: Python :: 3.9
8
- Classifier: License :: OSI Approved :: MIT License
9
9
  Classifier: Operating System :: OS Independent
10
10
  Requires-Python: >=3.9
11
11
  Description-Content-Type: text/markdown
@@ -48,6 +48,7 @@ Dynamic: author-email
48
48
  Dynamic: classifier
49
49
  Dynamic: description
50
50
  Dynamic: description-content-type
51
+ Dynamic: license
51
52
  Dynamic: license-file
52
53
  Dynamic: requires-dist
53
54
  Dynamic: requires-python
@@ -2,7 +2,7 @@ syntaxmatrix/__init__.py,sha256=_LnTrYAW2tbYA37Y233Vv4OMOk8NUnoJi-1yzFyHxEI,2573
2
2
  syntaxmatrix/auth.py,sha256=SCD6uWojXjj9yjUTKzgV5kBYe6ZkXASEG2VopLFkEtM,18140
3
3
  syntaxmatrix/bootstrap.py,sha256=Y7ZNg-Z3ecrr1iYem5EMzPmGstXnEKmO9kqKVoOoljo,817
4
4
  syntaxmatrix/commentary.py,sha256=3c8qBAKJI2IcYd9PBZrFEwmv-c4_tfa3ebEoPa5vW7U,12428
5
- syntaxmatrix/core.py,sha256=07bIGI10-kr9lcloM4eq69-XeiRfsOlAJ7EiTQ-_3l0,66592
5
+ syntaxmatrix/core.py,sha256=iJdgfxhmtFTArbaKz2akv_y0ma20DlcevSuDFGz027M,66872
6
6
  syntaxmatrix/dataset_preprocessing.py,sha256=wtV4MWzkyfOsBHTsS0H1gqHho77ZQHGDI9skJryyZWA,8732
7
7
  syntaxmatrix/db.py,sha256=MLpNs-Ue3xjEwaOJOMgFuPEz_gP9Fr3b1__BA3A3RDg,20801
8
8
  syntaxmatrix/display_html.py,sha256=tBeeHcRbmAOKqRTXY0hUehThFspCDsvjW4myi2zj0iU,3568
@@ -21,7 +21,7 @@ syntaxmatrix/plottings.py,sha256=MjHQ9T1_oC5oyr4_wkM2GJDrpjp0sbvudbs2lGaMyzk,610
21
21
  syntaxmatrix/preface.py,sha256=tCm0C0BhY_SOntQT5I7cOJr6TB5mVDAeL9i8UmHLu5g,21237
22
22
  syntaxmatrix/profiles.py,sha256=hPg27IQjl8-Tpo3BanQQsByeAgcizqIA2I_IKKNZ0TI,2900
23
23
  syntaxmatrix/project_root.py,sha256=1ckvbFVV1szHtHsfSCoGcImHkRwbfszmPG1kGh9ZZlE,2227
24
- syntaxmatrix/routes.py,sha256=EwjA9Q3r1dHXkuzF_93DdOY2q3AikQmpxCLC3nATVTc,357004
24
+ syntaxmatrix/routes.py,sha256=3LMXyZPTI82ON7cT8wFmm7lbEnnBiFoy-I3FnM_FJj8,356892
25
25
  syntaxmatrix/selftest_page_templates.py,sha256=JY1i2xu7FBkN0TIPiAXhEk_iIjdOBmfc1g9aX98iqhw,14833
26
26
  syntaxmatrix/session.py,sha256=v0qgxnVM_LEaNvZQJSa-13Q2eiwc3RDnjd2SahNnHQk,599
27
27
  syntaxmatrix/smiv.py,sha256=1lSN3UYpXvYoVNd6VrkY5iZuF_nDxD6xxvLnTn9wcbQ,1405
@@ -34,7 +34,7 @@ syntaxmatrix/vectorizer.py,sha256=5w_UQiUIirm_W-Q9TcaEI8LTcTYIuDBdKfz79T1aZ8g,13
34
34
  syntaxmatrix/workspace_db.py,sha256=Xu9OlW8wo3iaH5Y88ZMdLOf-fiZxF1NBb5rAw3KcbfY,4715
35
35
  syntaxmatrix/agentic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  syntaxmatrix/agentic/agent_tools.py,sha256=yQwavONP23ziMxNQf3j2Y4TVo_LxEsiAWecKuBK8WDg,866
37
- syntaxmatrix/agentic/agents.py,sha256=rlbCnNTx9tmL2JbzP9TGXQWnsmU2-VzoZ6iHtFmuLbs,74570
37
+ syntaxmatrix/agentic/agents.py,sha256=IVqF2VLl-80nx75FW0-RK2-2nfhbQjVwyGgplgVOeaA,74640
38
38
  syntaxmatrix/agentic/agents_orchestrer.py,sha256=NMC0Mr1zRxxWBr-KRZxu1iLMBJowqesNIkuNwY1AlQA,14681
39
39
  syntaxmatrix/agentic/code_tools_registry.py,sha256=rV0sA1qf_a9A4mmJXGuLnPD6qzAtTBjVgViYpwykfRU,1489
40
40
  syntaxmatrix/agentic/model_templates.py,sha256=A3ROE3BHkvnU9cxqSGjlCBIw9U15zRaTKgK-WxcZtUI,76033
@@ -44,7 +44,7 @@ syntaxmatrix/settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
44
44
  syntaxmatrix/settings/client_items.py,sha256=jtJ2k5r_Roq42Pumor_VEsYVTIdbFVP2l61MOeMAPUc,868
45
45
  syntaxmatrix/settings/default.yaml,sha256=BznvF1D06VMPbT6UX3MQ4zUkXxTXLnAA53aUu8G4O38,569
46
46
  syntaxmatrix/settings/logging.py,sha256=U8iTDFv0H1ECdIzH9He2CtOVlK1x5KHCk126Zn5Vi7M,1362
47
- syntaxmatrix/settings/model_map.py,sha256=6rkZJjjZWjD8o_AcV66iMwMys8vi89D2qVnzLxDAo8c,25370
47
+ syntaxmatrix/settings/model_map.py,sha256=P3RsBGkq36ozADjZOY_p8bjvLgaleiZynMgl4HP1qR8,26385
48
48
  syntaxmatrix/settings/prompts.py,sha256=Gni--SPxFfqbQXPJqkK0tdViBtAMtUBp185i5WdYux4,25888
49
49
  syntaxmatrix/settings/string_navbar.py,sha256=NqgTzo3J9rRI4c278VG6kpoViFfmi2FKmL6sO0R-bus,83
50
50
  syntaxmatrix/static/docs.md,sha256=rWlKjNcpS2cs5DElGNYuaA-XXdGZnRGMXx62nACvDwE,11105
@@ -78,8 +78,8 @@ syntaxmatrix/vectordb/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
78
78
  syntaxmatrix/vectordb/adapters/milvus_adapter.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
79
79
  syntaxmatrix/vectordb/adapters/pgvector_adapter.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
80
80
  syntaxmatrix/vectordb/adapters/sqlite_adapter.py,sha256=L8M2qHfwZRAFVxWeurUVdHaJXz6F5xTUSWh3uy6TSUs,6035
81
- syntaxmatrix-2.6.4.1.dist-info/licenses/LICENSE.txt,sha256=j1P8naTdy1JMxTC80XYQjbyAQnuOlpDusCUhncrvpy8,1083
82
- syntaxmatrix-2.6.4.1.dist-info/METADATA,sha256=DLW32eVJSsZaUlVM_wr4QMIydeL97YEVBqkO-KxDxEs,18221
83
- syntaxmatrix-2.6.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
- syntaxmatrix-2.6.4.1.dist-info/top_level.txt,sha256=HKP_zkl4V_nt7osC15DlacoBZktHrbZYOqf_pPkF3T8,13
85
- syntaxmatrix-2.6.4.1.dist-info/RECORD,,
81
+ syntaxmatrix-2.6.4.3.dist-info/licenses/LICENSE.txt,sha256=j1P8naTdy1JMxTC80XYQjbyAQnuOlpDusCUhncrvpy8,1083
82
+ syntaxmatrix-2.6.4.3.dist-info/METADATA,sha256=hWnucD9cQKs7xEYoQSz2f_C-1OQOBTBs5INkfAE1stg,18201
83
+ syntaxmatrix-2.6.4.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
+ syntaxmatrix-2.6.4.3.dist-info/top_level.txt,sha256=HKP_zkl4V_nt7osC15DlacoBZktHrbZYOqf_pPkF3T8,13
85
+ syntaxmatrix-2.6.4.3.dist-info/RECORD,,