mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-23 20:00:15 +01:00
feat: new endpoint-style icon
This commit is contained in:
parent
7e8b31cd09
commit
089ca5f120
5 changed files with 91 additions and 86 deletions
|
|
@ -6,7 +6,7 @@ import { DialogTrigger } from '../../ui/Dialog.tsx';
|
|||
import RenameButton from '../../Conversations/RenameButton';
|
||||
import TrashIcon from '../../svg/TrashIcon';
|
||||
import manualSWR from '~/utils/fetchers';
|
||||
import { getIconOfModel } from '~/utils';
|
||||
import getIcon from '~/utils/getIcon';
|
||||
|
||||
import store from '~/store';
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ export default function ModelItem({ model: _model, value, onSelect }) {
|
|||
setCustomGPTModels(fetchedModels);
|
||||
});
|
||||
|
||||
const icon = getIconOfModel({
|
||||
const icon = getIcon({
|
||||
size: 20,
|
||||
sender: chatGptLabel || model,
|
||||
isCreatedByUser: false,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import axios from 'axios';
|
|||
import ModelDialog from './ModelDialog';
|
||||
import MenuItems from './MenuItems';
|
||||
import { swr } from '~/utils/fetchers';
|
||||
import { getIconOfModel } from '~/utils';
|
||||
import getIcon from '~/utils/getIcon';
|
||||
|
||||
import { Button } from '../../ui/Button.tsx';
|
||||
import {
|
||||
|
|
@ -145,7 +145,7 @@ export default function ModelMenu() {
|
|||
];
|
||||
|
||||
const colorProps = model === 'chatgpt' ? chatgptColorProps : defaultColorProps;
|
||||
const icon = getIconOfModel({
|
||||
const icon = getIcon({
|
||||
size: 32,
|
||||
sender: chatGptLabel || model,
|
||||
isCreatedByUser: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue