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:
parent
ca20c4d84e
commit
c979cb3808
|
|
@ -1,5 +1,6 @@
|
||||||
# src/utils/token_manager.py
|
# src/utils/context_manager.py
|
||||||
import copy
|
import copy
|
||||||
|
import json
|
||||||
import logging
|
import logging
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
|
|
@ -329,3 +330,4 @@ def validate_message_content(messages: List[BaseMessage], max_content_length: in
|
||||||
validated.append(msg)
|
validated.append(msg)
|
||||||
|
|
||||||
return validated
|
return validated
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue