mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-26 06:16:09 +00:00
feat:add dingtalk stream
fix:adapter is_stream_output_supported bug fix:stream message reply chunk in message_id
This commit is contained in:
@@ -96,7 +96,7 @@ class DifyServiceAPIRunner(runner.RequestRunner):
|
||||
query.variables['conversation_id'] = cov_id
|
||||
|
||||
try:
|
||||
is_stream = query.adapter.is_stream
|
||||
is_stream = await query.adapter.is_stream_output_supported()
|
||||
except AttributeError:
|
||||
is_stream = False
|
||||
|
||||
@@ -209,7 +209,7 @@ class DifyServiceAPIRunner(runner.RequestRunner):
|
||||
query.variables['conversation_id'] = cov_id
|
||||
|
||||
try:
|
||||
is_stream = query.adapter.is_stream
|
||||
is_stream = await query.adapter.is_stream_output_supported()
|
||||
except AttributeError:
|
||||
is_stream = False
|
||||
|
||||
@@ -346,7 +346,7 @@ class DifyServiceAPIRunner(runner.RequestRunner):
|
||||
query.variables['conversation_id'] = query.session.using_conversation.uuid
|
||||
|
||||
try:
|
||||
is_stream = query.adapter.is_stream
|
||||
is_stream = await query.adapter.is_stream_output_supported()
|
||||
except AttributeError:
|
||||
is_stream = False
|
||||
|
||||
|
||||
@@ -89,7 +89,9 @@ class LocalAgentRunner(runner.RequestRunner):
|
||||
|
||||
is_stream = query.adapter.is_stream_output_supported()
|
||||
try:
|
||||
is_stream = query.adapter.is_stream
|
||||
# print(await query.adapter.is_stream_output_supported())
|
||||
is_stream = await query.adapter.is_stream_output_supported()
|
||||
|
||||
except AttributeError:
|
||||
is_stream = False
|
||||
# while True:
|
||||
|
||||
Reference in New Issue
Block a user