openrouter-provider 1.0.8__py3-none-any.whl → 1.0.9__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.

Potentially problematic release.


This version of openrouter-provider might be problematic. Click here for more details.

openrouter/openrouter.py CHANGED
@@ -58,7 +58,7 @@ class OpenRouterClient:
58
58
 
59
59
  return reply_copy
60
60
 
61
- def execute_tool(self, reply: Message, tool_index: int) -> Message:
61
+ def execute_tool(self, reply: Message, tool_index: int, tools: List[tool_model] = []) -> Message:
62
62
  if not reply.tool_calls:
63
63
  return reply
64
64
 
@@ -71,7 +71,7 @@ class OpenRouterClient:
71
71
  if isinstance(args, str):
72
72
  args = json.loads(args)
73
73
 
74
- all_tools = self.tools
74
+ all_tools = self.tools + tools
75
75
  for tool in all_tools:
76
76
  if tool.name == requested_tool.name:
77
77
  result = tool(**args)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openrouter-provider
3
- Version: 1.0.8
3
+ Version: 1.0.9
4
4
  Summary: This is an unofficial wrapper of OpenRouter.
5
5
  Author-email: Keisuke Miyamto <aichiboyhighschool@gmail.com>
6
6
  Requires-Python: >=3.7
@@ -1,10 +1,10 @@
1
1
  openrouter/__init__.py,sha256=xuIzdm8-l3Tmc-zrNIXTicv05c9HCMxTS9xynKpWK-Q,123
2
2
  openrouter/llms.py,sha256=zmujFW5BmQA0Fm6z8skuO3ipLpaUMy1VBZxYkPE9OcM,3391
3
3
  openrouter/message.py,sha256=ESI4YT6x0TuPZ0AY29ZPlBCv72KrQad1-IeNmrfGD0w,2978
4
- openrouter/openrouter.py,sha256=p6Wa_IgYDZuT5QzNpTIC6Cz-Sb6z3llrejtqNK980FY,8955
4
+ openrouter/openrouter.py,sha256=T1n3Mi26StAMzJ5yNNY5ww6fympiHBfp5M4pzYPmaV8,8993
5
5
  openrouter/openrouter_provider.py,sha256=_Rt85X5pJ1IGbJeITfnzEG0QSp0qTo_PrDWIqtbd0xg,8577
6
6
  openrouter/tool.py,sha256=tUUNLosz1XhzPIwY1zHXWNM3ePs7hcVD1a_W5hWTCWk,1975
7
- openrouter_provider-1.0.8.dist-info/METADATA,sha256=-EKwC71xJK_1YZxPWh0EtSe198HnRAS4sfSygqVHlkU,11503
8
- openrouter_provider-1.0.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- openrouter_provider-1.0.8.dist-info/top_level.txt,sha256=0jnlCcRirGeYZLm5ZbWQRUonIp4tTPl_9mq-ds_1SEo,11
10
- openrouter_provider-1.0.8.dist-info/RECORD,,
7
+ openrouter_provider-1.0.9.dist-info/METADATA,sha256=4HR6qiN7tDmtfGczhobO0oZsFtrYbyNS8pZ9rryZmT8,11503
8
+ openrouter_provider-1.0.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ openrouter_provider-1.0.9.dist-info/top_level.txt,sha256=0jnlCcRirGeYZLm5ZbWQRUonIp4tTPl_9mq-ds_1SEo,11
10
+ openrouter_provider-1.0.9.dist-info/RECORD,,