Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/multimodal_chatwithtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

async def resolve_message_content(nc: AsyncNextcloudApp, content: Any, modalities: list[str]) -> str | list[dict[str, Any]]:
"""Resolve history content: strings pass through; file parts are fetched."""
if isinstance(content, str):
return content
if not isinstance(content, list):
raise ValueError("Invalid message history content")
resolved: list[dict[str, Any]] = []
Expand Down
Loading