Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Willy/sidebar #1779

Merged
merged 8 commits into from
Jan 23, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
fix: ruff
  • Loading branch information
willydouhard committed Jan 23, 2025
commit 920787eadec15dceb22045b681c7079e09ee7c7d
2 changes: 1 addition & 1 deletion backend/chainlit/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def from_dict(cls, e_dict: ElementDict):
return CustomElement(props=e_dict.get("props", {}), **common_params) # type: ignore[arg-type]
else:
# Default to File for any other type
return File(**common_params) # type: ignore[arg-type]
return File(**common_params) # type: ignore[arg-type]

@classmethod
def infer_type_from_mime(cls, mime_type: str):
dokterbob marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
Loading