mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-14 06:30:57 +00:00
perf: increase timeout for calling runtime apis
This commit is contained in:
@@ -536,7 +536,7 @@ class RuntimeConnectionHandler(handler.Handler):
|
|||||||
{
|
{
|
||||||
'event_context': event_context,
|
'event_context': event_context,
|
||||||
},
|
},
|
||||||
timeout=30,
|
timeout=60,
|
||||||
)
|
)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
@@ -546,7 +546,7 @@ class RuntimeConnectionHandler(handler.Handler):
|
|||||||
result = await self.call_action(
|
result = await self.call_action(
|
||||||
LangBotToRuntimeAction.LIST_TOOLS,
|
LangBotToRuntimeAction.LIST_TOOLS,
|
||||||
{},
|
{},
|
||||||
timeout=10,
|
timeout=20,
|
||||||
)
|
)
|
||||||
|
|
||||||
return result['tools']
|
return result['tools']
|
||||||
@@ -581,7 +581,7 @@ class RuntimeConnectionHandler(handler.Handler):
|
|||||||
'tool_name': tool_name,
|
'tool_name': tool_name,
|
||||||
'tool_parameters': parameters,
|
'tool_parameters': parameters,
|
||||||
},
|
},
|
||||||
timeout=30,
|
timeout=60,
|
||||||
)
|
)
|
||||||
|
|
||||||
return result['tool_response']
|
return result['tool_response']
|
||||||
@@ -602,7 +602,7 @@ class RuntimeConnectionHandler(handler.Handler):
|
|||||||
{
|
{
|
||||||
'command_context': command_context,
|
'command_context': command_context,
|
||||||
},
|
},
|
||||||
timeout=30,
|
timeout=60,
|
||||||
)
|
)
|
||||||
|
|
||||||
async for ret in gen:
|
async for ret in gen:
|
||||||
|
|||||||
Reference in New Issue
Block a user