mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Gemini: improve the chat message labels
This commit is contained in:
@@ -344,6 +344,14 @@ export function prettyShortChatModelName(model: string | undefined): string {
|
||||
// [Anthropic]
|
||||
const prettyAnthropic = _prettyAnthropicModelName(model);
|
||||
if (prettyAnthropic) return prettyAnthropic;
|
||||
// [Gemini]
|
||||
if (model.includes('gemini-')) {
|
||||
return model.replaceAll('-', ' ')
|
||||
.replace('gemini', 'Gemini')
|
||||
.replace('pro', 'Pro')
|
||||
.replace('flash', 'Flash')
|
||||
.replace('thinking', 'Thinking');
|
||||
}
|
||||
// [Deepseek]
|
||||
if (model.includes('deepseek-chat')) return 'Deepseek Chat';
|
||||
if (model.includes('deepseek-coder')) return 'Deepseek Coder';
|
||||
|
||||
Reference in New Issue
Block a user