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.
@@ -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.20"
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