syntaxmatrix 2.6.4.2__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.
syntaxmatrix/core.py CHANGED
@@ -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": [
@@ -175,7 +175,7 @@ MODEL_DESCRIPTIONS = {
175
175
  # - Summarizer
176
176
  # """,
177
177
 
178
- #1.4 OpenAI
178
+ #1.3 OpenAI
179
179
  "gpt-4.1":"""
180
180
  Model: GPT 4.1
181
181
  Cost:
@@ -199,7 +199,7 @@ MODEL_DESCRIPTIONS = {
199
199
  - Coder
200
200
  """,
201
201
 
202
- #1.5 OpenAI
202
+ #1.4 OpenAI
203
203
  "gpt-4.1-nano":"""
204
204
  Model: GPT 4.1 Nano
205
205
  Cost:
@@ -226,7 +226,7 @@ MODEL_DESCRIPTIONS = {
226
226
  - ImageTexter
227
227
  """,
228
228
 
229
- #1.6 OpenAI
229
+ #1.5 OpenAI
230
230
  "gpt-4.1-mini":"""
231
231
  Model: GPT 4.1 Mini
232
232
  Cost:
@@ -254,7 +254,7 @@ MODEL_DESCRIPTIONS = {
254
254
  - ImageTexter
255
255
  """,
256
256
 
257
- #1.7 OpenAI
257
+ #1.6 OpenAI
258
258
  "gpt-5":"""
259
259
  Model: GPT 5
260
260
  Cost:
@@ -279,7 +279,7 @@ MODEL_DESCRIPTIONS = {
279
279
  - Coder
280
280
  """,
281
281
 
282
- #1.8 OpenAI
282
+ #1.7 OpenAI
283
283
  "gpt-5-nano":"""
284
284
  Model: GPT 5 Nano
285
285
  Cost:
@@ -307,7 +307,7 @@ MODEL_DESCRIPTIONS = {
307
307
  - ImageTexter
308
308
  """,
309
309
 
310
- #1.9 OpenAI
310
+ #1.8 OpenAI
311
311
  "gpt-5-mini":"""
312
312
  Model: GPT 5 Mini
313
313
  Cost:
@@ -342,7 +342,7 @@ MODEL_DESCRIPTIONS = {
342
342
 
343
343
  #1.8 OpenAI
344
344
 
345
- #1.10 OpenAI
345
+ #1.9 OpenAI
346
346
  "gpt-5-pro":"""
347
347
  Model: GPT 5 Pro
348
348
  Cost:
@@ -367,7 +367,7 @@ MODEL_DESCRIPTIONS = {
367
367
  - Coder
368
368
  """,
369
369
 
370
- #1.11 OpenAI
370
+ #1.10 OpenAI
371
371
  "gpt-5.1":"""
372
372
  Model: GPT 5.1
373
373
  Cost:
@@ -393,7 +393,7 @@ MODEL_DESCRIPTIONS = {
393
393
  - Coder
394
394
  """,
395
395
 
396
- #1.12 OpenAI
396
+ #1.11 OpenAI
397
397
  "gpt-5.1-chat-latest":"""
398
398
  Model: GPT 5.1 Chat
399
399
  Cost:
@@ -419,7 +419,7 @@ MODEL_DESCRIPTIONS = {
419
419
  - Chat
420
420
  """,
421
421
 
422
- #1.13 OpenAI
422
+ #1.12 OpenAI
423
423
  "gpt-5.1-codex-mini":"""
424
424
  Model: GPT 5.1 Codex Mini
425
425
  Cost:
@@ -444,7 +444,7 @@ MODEL_DESCRIPTIONS = {
444
444
  - Coder
445
445
  """,
446
446
 
447
- #1.14 OpenAI
447
+ #1.13 OpenAI
448
448
  "gpt-5.1-codex-max":"""
449
449
  Model: GPT 5.1 Codex Max
450
450
  Cost:
@@ -469,7 +469,7 @@ MODEL_DESCRIPTIONS = {
469
469
  - Coder
470
470
  """,
471
471
 
472
- #1.15 OpenAI
472
+ #1.14 OpenAI
473
473
  "gpt-5.2":"""
474
474
  Model: GPT 5.2
475
475
  Cost:
@@ -494,7 +494,7 @@ MODEL_DESCRIPTIONS = {
494
494
  - Coder
495
495
  """,
496
496
 
497
- #1.16 OpenAI
497
+ #1.15 OpenAI
498
498
  "gpt-5.2-chat-latest":"""
499
499
  Model: GPT 5.2 Chat
500
500
  Cost:
@@ -519,7 +519,7 @@ MODEL_DESCRIPTIONS = {
519
519
  - Admin
520
520
  """,
521
521
 
522
- #1.17 OpenAI
522
+ #1.16 OpenAI
523
523
  "gpt-5.2-pro":"""
524
524
  Model: GPT 5.2 Pro
525
525
  Cost:
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: syntaxmatrix
3
- Version: 2.6.4.2
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=q1TbQx0gf_jBGDkQKdFGPEByuER0PEZnFqwaWSbOmco,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
@@ -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=Sh84M4ZeKCSYNwgTS9u00-bWjD_8tMW_WVBEEyV8yLY,26712
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.2.dist-info/licenses/LICENSE.txt,sha256=j1P8naTdy1JMxTC80XYQjbyAQnuOlpDusCUhncrvpy8,1083
82
- syntaxmatrix-2.6.4.2.dist-info/METADATA,sha256=Lfr4JXJYE44Ezkm909Yfp6RYLT7GziLSNk70_qSBcg8,18221
83
- syntaxmatrix-2.6.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
- syntaxmatrix-2.6.4.2.dist-info/top_level.txt,sha256=HKP_zkl4V_nt7osC15DlacoBZktHrbZYOqf_pPkF3T8,13
85
- syntaxmatrix-2.6.4.2.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,,