16 lines
332 B
Python
16 lines
332 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
|
||
|
|
class DingTalkStreamingAdapter:
|
||
|
|
@property
|
||
|
|
def streaming_mode(self) -> str:
|
||
|
|
return "block"
|
||
|
|
|
||
|
|
@property
|
||
|
|
def block_streaming_config(self) -> dict:
|
||
|
|
return {
|
||
|
|
"chunk_size": 1024,
|
||
|
|
"max_chunks": 20,
|
||
|
|
"flush_interval_ms": 2000,
|
||
|
|
}
|