= (props) => {
},
[EModelEndpoint.openAI]: { icon: , name: props.chatGptLabel || 'ChatGPT' },
[EModelEndpoint.gptPlugins]: { icon: , name: 'Plugins' },
- [EModelEndpoint.google]: { icon: , name: props.modelLabel || 'PaLM2' },
+ [EModelEndpoint.google]: { icon: , name: props.modelLabel || 'Google' },
[EModelEndpoint.anthropic]: {
icon: ,
name: props.modelLabel || 'Claude',
diff --git a/client/src/components/Endpoints/Settings/Google.tsx b/client/src/components/Endpoints/Settings/Google.tsx
index f3512edab..a580f1355 100644
--- a/client/src/components/Endpoints/Settings/Google.tsx
+++ b/client/src/components/Endpoints/Settings/Google.tsx
@@ -1,5 +1,6 @@
import React from 'react';
import TextareaAutosize from 'react-textarea-autosize';
+import { EModelEndpoint, endpointSettings } from 'librechat-data-provider';
import type { TModelSelectProps } from '~/common';
import { ESide } from '~/common';
import {
@@ -31,7 +32,8 @@ export default function Settings({ conversation, setOption, models, readonly }:
const setTopK = setOption('topK');
const setMaxOutputTokens = setOption('maxOutputTokens');
- const codeChat = model?.startsWith('codechat-');
+ const isTextModel = !model?.includes('chat') && /code|text/.test(model ?? '');
+ const google = endpointSettings[EModelEndpoint.google];
return (
@@ -46,45 +48,41 @@ export default function Settings({ conversation, setOption, models, readonly }:
containerClassName="flex w-full resize-none"
/>
- {!codeChat && (
- <>
-
-
- setModelLabel(e.target.value ?? null)}
- placeholder={localize('com_endpoint_google_custom_name_placeholder')}
- className={cn(
- defaultTextProps,
- 'flex h-10 max-h-10 w-full resize-none px-3 py-2',
- removeFocusOutlines,
- )}
- />
-
-
-
- setPromptPrefix(e.target.value ?? null)}
- placeholder={localize('com_endpoint_prompt_prefix_placeholder')}
- className={cn(
- defaultTextProps,
- 'flex max-h-[138px] min-h-[100px] w-full resize-none px-3 py-2 ',
- )}
- />
-
- >
- )}
+
+
+ setModelLabel(e.target.value ?? null)}
+ placeholder={localize('com_endpoint_google_custom_name_placeholder')}
+ className={cn(
+ defaultTextProps,
+ 'flex h-10 max-h-10 w-full resize-none px-3 py-2',
+ removeFocusOutlines,
+ )}
+ />
+
+
+
+ setPromptPrefix(e.target.value ?? null)}
+ placeholder={localize('com_endpoint_prompt_prefix_placeholder')}
+ className={cn(
+ defaultTextProps,
+ 'flex max-h-[138px] min-h-[100px] w-full resize-none px-3 py-2 ',
+ )}
+ />
+