mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-13 04:33:42 +08:00
feat: support close model provider display
This commit is contained in:
@@ -570,6 +570,11 @@ export function ChatActions(props: {
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
[],
|
||||
);
|
||||
const isDisableModelProviderDisplay = useMemo(
|
||||
() => accessStore.isDisableModelProviderDisplay(),
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
[],
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
const show = isVisionModel(currentModel);
|
||||
@@ -690,7 +695,7 @@ export function ChatActions(props: {
|
||||
defaultSelectedValue={`${currentModel}@${currentProviderName}`}
|
||||
items={models.map((m) => ({
|
||||
title: `${m.displayName}${
|
||||
m?.provider?.providerName
|
||||
m?.provider?.providerName && !isDisableModelProviderDisplay
|
||||
? "(" + m?.provider?.providerName + ")"
|
||||
: ""
|
||||
}`,
|
||||
|
||||
Reference in New Issue
Block a user