forked from Shinonome/dots-hyprland
ai chat: make it work with online models
This commit is contained in:
@@ -93,8 +93,8 @@ Rectangle {
|
||||
font.weight: Font.DemiBold
|
||||
color: Appearance.m3colors.m3onSecondaryContainer
|
||||
text: messageData.role == 'assistant' ? Ai.models[messageData.model].name :
|
||||
messageData.role == 'user' ? (SystemInfo.username ?? "User") :
|
||||
"System"
|
||||
(messageData.role == 'user' && SystemInfo.username) ? SystemInfo.username :
|
||||
Ai.models[messageData.role].name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user