mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +01:00
feat: feat: new endpoint-style submit
This commit is contained in:
parent
089ca5f120
commit
adcc021c9e
22 changed files with 566 additions and 478 deletions
|
|
@ -27,10 +27,7 @@ const getIcon = props => {
|
|||
else if (!isCreatedByUser) {
|
||||
const { endpoint, error } = props;
|
||||
|
||||
let icon = <GPTIcon size={size * 0.7} />;
|
||||
let bg = 'grey';
|
||||
let name = 'UNKNOWN';
|
||||
|
||||
let icon, bg, name;
|
||||
if (endpoint === 'azureOpenAI') {
|
||||
const { chatGptLabel } = props;
|
||||
|
||||
|
|
@ -59,6 +56,10 @@ const getIcon = props => {
|
|||
icon = <GPTIcon size={size * 0.7} />;
|
||||
bg = `grey`;
|
||||
name = 'N/A';
|
||||
} else {
|
||||
icon = <GPTIcon size={size * 0.7} />;
|
||||
bg = `grey`;
|
||||
name = 'UNKNOWN';
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue