bugfix: small fixes
This commit is contained in:
1 parent
30afcf2803
commit
d9204d262c
4 files changed
+64
-91
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user