mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-28 00:14:21 +00:00
perf: ruff format & remove stream params in requester
This commit is contained in:
@@ -348,7 +348,9 @@ class DifyServiceAPIRunner(runner.RequestRunner):
|
||||
except AttributeError:
|
||||
is_stream = False
|
||||
|
||||
batch_pending_index = 0
|
||||
_ = is_stream
|
||||
|
||||
# batch_pending_index = 0
|
||||
|
||||
plain_text, image_ids = await self._preprocess_user_message(query)
|
||||
|
||||
|
||||
@@ -63,8 +63,7 @@ class LocalAgentRunner(runner.RequestRunner):
|
||||
id=tool_call.id,
|
||||
type=tool_call.type,
|
||||
function=llm_entities.FunctionCall(
|
||||
name=tool_call.function.name if tool_call.function else '',
|
||||
arguments=''
|
||||
name=tool_call.function.name if tool_call.function else '', arguments=''
|
||||
),
|
||||
)
|
||||
if tool_call.function and tool_call.function.arguments:
|
||||
|
||||
Reference in New Issue
Block a user