mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-07 02:51:50 +00:00
fix(wecom): set SUPPORTS_MESSAGE_EDITING=False to prevent broken streaming
This commit is contained in:
parent
d2ea959fe9
commit
a45bd28598
2 changed files with 6 additions and 0 deletions
|
|
@ -142,6 +142,7 @@ class WeComAdapter(BasePlatformAdapter):
|
||||||
"""WeCom AI Bot adapter backed by a persistent WebSocket connection."""
|
"""WeCom AI Bot adapter backed by a persistent WebSocket connection."""
|
||||||
|
|
||||||
MAX_MESSAGE_LENGTH = MAX_MESSAGE_LENGTH
|
MAX_MESSAGE_LENGTH = MAX_MESSAGE_LENGTH
|
||||||
|
SUPPORTS_MESSAGE_EDITING = False
|
||||||
# Threshold for detecting WeCom client-side message splits.
|
# Threshold for detecting WeCom client-side message splits.
|
||||||
# When a chunk is near the 4000-char limit, a continuation is almost certain.
|
# When a chunk is near the 4000-char limit, a continuation is almost certain.
|
||||||
_SPLIT_THRESHOLD = 3900
|
_SPLIT_THRESHOLD = 3900
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,11 @@ class TestWeComRequirements:
|
||||||
|
|
||||||
|
|
||||||
class TestWeComAdapterInit:
|
class TestWeComAdapterInit:
|
||||||
|
def test_declares_non_editable_message_capability(self):
|
||||||
|
from gateway.platforms.wecom import WeComAdapter
|
||||||
|
|
||||||
|
assert WeComAdapter.SUPPORTS_MESSAGE_EDITING is False
|
||||||
|
|
||||||
def test_reads_config_from_extra(self):
|
def test_reads_config_from_extra(self):
|
||||||
from gateway.platforms.wecom import WeComAdapter
|
from gateway.platforms.wecom import WeComAdapter
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue