llms-py 2.0.1__tar.gz → 2.0.2__tar.gz

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 (39) hide show
  1. {llms_py-2.0.1/llms_py.egg-info → llms_py-2.0.2}/PKG-INFO +1 -1
  2. {llms_py-2.0.1 → llms_py-2.0.2}/llms.py +11 -4
  3. {llms_py-2.0.1 → llms_py-2.0.2/llms_py.egg-info}/PKG-INFO +1 -1
  4. {llms_py-2.0.1 → llms_py-2.0.2}/pyproject.toml +2 -2
  5. {llms_py-2.0.1 → llms_py-2.0.2}/setup.py +1 -1
  6. {llms_py-2.0.1 → llms_py-2.0.2}/LICENSE +0 -0
  7. {llms_py-2.0.1 → llms_py-2.0.2}/MANIFEST.in +0 -0
  8. {llms_py-2.0.1 → llms_py-2.0.2}/README.md +0 -0
  9. {llms_py-2.0.1 → llms_py-2.0.2}/index.html +0 -0
  10. {llms_py-2.0.1 → llms_py-2.0.2}/llms.json +0 -0
  11. {llms_py-2.0.1 → llms_py-2.0.2}/llms_py.egg-info/SOURCES.txt +0 -0
  12. {llms_py-2.0.1 → llms_py-2.0.2}/llms_py.egg-info/dependency_links.txt +0 -0
  13. {llms_py-2.0.1 → llms_py-2.0.2}/llms_py.egg-info/entry_points.txt +0 -0
  14. {llms_py-2.0.1 → llms_py-2.0.2}/llms_py.egg-info/not-zip-safe +0 -0
  15. {llms_py-2.0.1 → llms_py-2.0.2}/llms_py.egg-info/requires.txt +0 -0
  16. {llms_py-2.0.1 → llms_py-2.0.2}/llms_py.egg-info/top_level.txt +0 -0
  17. {llms_py-2.0.1 → llms_py-2.0.2}/requirements.txt +0 -0
  18. {llms_py-2.0.1 → llms_py-2.0.2}/setup.cfg +0 -0
  19. {llms_py-2.0.1 → llms_py-2.0.2}/ui/App.mjs +0 -0
  20. {llms_py-2.0.1 → llms_py-2.0.2}/ui/ChatPrompt.mjs +0 -0
  21. {llms_py-2.0.1 → llms_py-2.0.2}/ui/Main.mjs +0 -0
  22. {llms_py-2.0.1 → llms_py-2.0.2}/ui/Recents.mjs +0 -0
  23. {llms_py-2.0.1 → llms_py-2.0.2}/ui/Sidebar.mjs +0 -0
  24. {llms_py-2.0.1 → llms_py-2.0.2}/ui/app.css +0 -0
  25. {llms_py-2.0.1 → llms_py-2.0.2}/ui/fav.svg +0 -0
  26. {llms_py-2.0.1 → llms_py-2.0.2}/ui/lib/highlight.min.mjs +0 -0
  27. {llms_py-2.0.1 → llms_py-2.0.2}/ui/lib/idb.min.mjs +0 -0
  28. {llms_py-2.0.1 → llms_py-2.0.2}/ui/lib/marked.min.mjs +0 -0
  29. {llms_py-2.0.1 → llms_py-2.0.2}/ui/lib/servicestack-client.min.mjs +0 -0
  30. {llms_py-2.0.1 → llms_py-2.0.2}/ui/lib/servicestack-vue.min.mjs +0 -0
  31. {llms_py-2.0.1 → llms_py-2.0.2}/ui/lib/vue-router.min.mjs +0 -0
  32. {llms_py-2.0.1 → llms_py-2.0.2}/ui/lib/vue.min.mjs +0 -0
  33. {llms_py-2.0.1 → llms_py-2.0.2}/ui/lib/vue.mjs +0 -0
  34. {llms_py-2.0.1 → llms_py-2.0.2}/ui/markdown.mjs +0 -0
  35. {llms_py-2.0.1 → llms_py-2.0.2}/ui/tailwind.input.css +0 -0
  36. {llms_py-2.0.1 → llms_py-2.0.2}/ui/threadStore.mjs +0 -0
  37. {llms_py-2.0.1 → llms_py-2.0.2}/ui/typography.css +0 -0
  38. {llms_py-2.0.1 → llms_py-2.0.2}/ui/utils.mjs +0 -0
  39. {llms_py-2.0.1 → llms_py-2.0.2}/ui.json +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llms-py
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: A lightweight CLI tool and OpenAI-compatible server for querying multiple Large Language Model (LLM) providers
5
5
  Home-page: https://github.com/ServiceStack/llms
6
6
  Author: ServiceStack
@@ -19,7 +19,7 @@ from aiohttp import web
19
19
  from pathlib import Path
20
20
  from importlib import resources # Py≥3.9 (pip install importlib_resources for 3.7/3.8)
21
21
 
22
- VERSION = "2.0.1"
22
+ VERSION = "2.0.2"
23
23
  g_config_path = None
24
24
  g_ui_path = None
25
25
  g_config = None
@@ -810,6 +810,7 @@ def main():
810
810
 
811
811
  parser.add_argument('--init', action='store_true', help='Create a default llms.json')
812
812
 
813
+ parser.add_argument('--root', default=None, help='Change root directory for UI files', metavar='PATH')
813
814
  parser.add_argument('--logprefix', default="", help='Prefix used in log messages', metavar='PREFIX')
814
815
  parser.add_argument('--verbose', action='store_true', help='Verbose output')
815
816
  parser.add_argument('--update', action='store_true', help='Update to latest version')
@@ -828,11 +829,17 @@ def main():
828
829
 
829
830
  try:
830
831
  from importlib.resources import files
831
- _ROOT = files("llms-py")
832
- except ModuleNotFoundError: # package not installed
832
+ _ROOT = files("llms")
833
+ _log(f"RESOURCE ROOT: {_ROOT}")
834
+ except ModuleNotFoundError:
835
+ # package not installed
833
836
  # __file__ is *this* module; climb two levels to repo root
834
837
  _ROOT = Path(__file__).resolve().parent.parent / "llms"
835
- _log(f"ROOT: {_ROOT}")
838
+ _log(f"__file__: {Path(__file__).resolve()}")
839
+ _log(f"PATH ROOT: {_ROOT}")
840
+
841
+ if cli_args.root:
842
+ _ROOT = Path(cli_args.root)
836
843
 
837
844
  g_config_path = os.path.join(os.path.dirname(__file__), cli_args.config) if cli_args.config else get_config_path()
838
845
  g_ui_path = get_ui_path()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llms-py
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: A lightweight CLI tool and OpenAI-compatible server for querying multiple Large Language Model (LLM) providers
5
5
  Home-page: https://github.com/ServiceStack/llms
6
6
  Author: ServiceStack
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "llms-py"
7
- version = "2.0.1"
7
+ version = "2.0.2"
8
8
  description = "A lightweight CLI tool and OpenAI-compatible server for querying multiple Large Language Model (LLM) providers"
9
9
  readme = "README.md"
10
10
  license = "BSD-3-Clause"
@@ -53,4 +53,4 @@ llms = "llms:main"
53
53
  py-modules = ["llms"]
54
54
 
55
55
  [tool.setuptools.package-data]
56
- "*" = ["llms.json", "README.md", "LICENSE", "requirements.txt"]
56
+ "*" = ["llms.json", "README.md", "LICENSE", "requirements.txt", "index.html", "ui/**/*"]
@@ -16,7 +16,7 @@ with open(os.path.join(this_directory, "requirements.txt"), encoding="utf-8") as
16
16
 
17
17
  setup(
18
18
  name="llms-py",
19
- version="2.0.1",
19
+ version="2.0.2",
20
20
  author="ServiceStack",
21
21
  author_email="team@servicestack.net",
22
22
  description="A lightweight CLI tool and OpenAI-compatible server for querying multiple Large Language Model (LLM) providers",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes