bugfix: small fixes

This commit is contained in:
Shivering Ocelot committed 2026-09-04 00:14:51 -05:00
1 parent 30afcf2803
commit d9204d262c
4 files changed
+64 -91

No files matched your search

+1
View File
@@ -38,6 +38,7 @@ class ExpertAgent(Agent):
# Inject remotes as tools
if 'remotes' in run.input:
tools += self.app.getRemoteTools(self.user_id, run.input['remotes'])
using_agent_tools = True
print("Final tool object: " + repr(tools))
if tools: run.input['tools'] = tools
-2
View File
@@ -350,8 +350,6 @@ async def openrouter_chat_completion(app, messages, model, tools=[], opts={}, ag
if formatted_tools:
kwargs['tools'] = formatted_tools
print("all kwargs: " + repr(kwargs))
stream_response = await app.openrouter_client.chat.send_async(**kwargs)
# OpenAI format streams tool calls in parts