Skip to content

Commit d1b35cb

Browse files
fix: comprehensive websocket and LLM model validation
- Fix original websocket format error - Add robust model validation for all agent types - Prevent empty model strings in LiteLLM calls - Update Pydantic V2 compatibility (dict() -> model_dump()) - Improve error handling in workflow agents - Add comprehensive logging and validation Resolves issue with empty model strings causing LiteLLM failures Improves agent type validation and error handling
1 parent 473cf63 commit d1b35cb

File tree

5 files changed

+866
-317
lines changed

5 files changed

+866
-317
lines changed

src/api/session_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async def get_agent_messages(
158158

159159
processed_events = []
160160
for event in events:
161-
event_dict = event.dict()
161+
event_dict = event.model_dump()
162162

163163
def process_dict(d):
164164
if isinstance(d, dict):

0 commit comments

Comments
 (0)