llms-py 3.0.20__py3-none-any.whl → 3.0.21__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.
- llms/extensions/providers/openrouter.py +1 -1
- llms/main.py +3 -3
- llms/providers.json +1 -1
- llms/ui/ai.mjs +1 -1
- {llms_py-3.0.20.dist-info → llms_py-3.0.21.dist-info}/METADATA +1 -1
- {llms_py-3.0.20.dist-info → llms_py-3.0.21.dist-info}/RECORD +10 -10
- {llms_py-3.0.20.dist-info → llms_py-3.0.21.dist-info}/WHEEL +0 -0
- {llms_py-3.0.20.dist-info → llms_py-3.0.21.dist-info}/entry_points.txt +0 -0
- {llms_py-3.0.20.dist-info → llms_py-3.0.21.dist-info}/licenses/LICENSE +0 -0
- {llms_py-3.0.20.dist-info → llms_py-3.0.21.dist-info}/top_level.txt +0 -0
|
@@ -14,7 +14,7 @@ def install_openrouter(ctx):
|
|
|
14
14
|
def __init__(self, **kwargs):
|
|
15
15
|
super().__init__(**kwargs)
|
|
16
16
|
|
|
17
|
-
def to_response(self, response, chat, started_at):
|
|
17
|
+
def to_response(self, response, chat, started_at, context=None):
|
|
18
18
|
# go through all image responses and save them to cache
|
|
19
19
|
cost = None
|
|
20
20
|
if "usage" in response and "cost" in response["usage"]:
|
llms/main.py
CHANGED
|
@@ -57,7 +57,7 @@ try:
|
|
|
57
57
|
except ImportError:
|
|
58
58
|
HAS_PIL = False
|
|
59
59
|
|
|
60
|
-
VERSION = "3.0.
|
|
60
|
+
VERSION = "3.0.21"
|
|
61
61
|
_ROOT = None
|
|
62
62
|
DEBUG = os.getenv("DEBUG") == "1"
|
|
63
63
|
MOCK = os.getenv("MOCK") == "1"
|
|
@@ -3880,9 +3880,9 @@ def cli_exec(cli_args, extra_args):
|
|
|
3880
3880
|
asyncio.run(update_extensions(cli_args.update))
|
|
3881
3881
|
return ExitCode.SUCCESS
|
|
3882
3882
|
|
|
3883
|
-
g_app.add_allowed_directory(tempfile.gettempdir()) # add temp directory
|
|
3884
|
-
g_app.add_allowed_directory(home_llms_path(".agent")) # info for agents, e.g: skills
|
|
3885
3883
|
g_app.add_allowed_directory(os.getcwd()) # add current directory
|
|
3884
|
+
g_app.add_allowed_directory(home_llms_path(".agent")) # info for agents, e.g: skills
|
|
3885
|
+
g_app.add_allowed_directory(tempfile.gettempdir()) # add temp directory
|
|
3886
3886
|
|
|
3887
3887
|
g_app.extensions = install_extensions()
|
|
3888
3888
|
|