Fix incomplete tool call capture issue in streaming response of DeepSeek-V3 when enable MTP (#7562)
This commit is contained in:
@@ -113,7 +113,7 @@ class DeepSeekV3Detector(BaseFormatDetector):
|
||||
calls: list[ToolCallItem] = []
|
||||
try:
|
||||
partial_match = re.search(
|
||||
pattern=r"<|tool▁call▁begin|>(.*)<|tool▁sep|>(.*)\n```json\n(.*)",
|
||||
pattern=r"<|tool▁call▁begin|>(.*)<|tool▁sep|>(.*)\n```json\n(.*)\n```.*",
|
||||
string=current_text,
|
||||
flags=re.DOTALL,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user