Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions backend/chainlit/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ class ChatProfile(DataClassJsonMixin):
name: str
markdown_description: str
icon: Optional[str] = None
display_name: Optional[str] = None
default: bool = False
starters: Optional[List[Starter]] = None
config_overrides: Any = None
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/header/ChatProfiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ export default function ChatProfiles({ navigate }: Props) {
{icon && (
<img
src={icon}
alt={profile.name}
alt={profile.display_name || profile.name}
className="w-6 h-6 rounded-md object-cover"
/>
)}
<span>{profile.name}</span>
<span>{profile.display_name || profile.name}</span>
</div>
</SelectItem>
</HoverCardTrigger>
Expand Down
1 change: 1 addition & 0 deletions libs/react-client/src/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface ChatProfile {
default: boolean;
icon?: string;
name: string;
display_name?: string;
markdown_description: string;
starters?: IStarter[];
}
Expand Down
Loading