mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-14 02:34:46 +08:00
Fix message validation JSON import (#809)
* Fix message validation JSON import * Update src/utils/context_manager.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Willem Jiang <willem.jiang@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a376b0cb4e
commit
8c59f63d1b
@@ -1,5 +1,6 @@
|
||||
# src/utils/token_manager.py
|
||||
# src/utils/context_manager.py
|
||||
import copy
|
||||
import json
|
||||
import logging
|
||||
from typing import List
|
||||
|
||||
@@ -329,3 +330,4 @@ def validate_message_content(messages: List[BaseMessage], max_content_length: in
|
||||
validated.append(msg)
|
||||
|
||||
return validated
|
||||
|
||||
|
||||
Reference in New Issue
Block a user