diff --git a/app/components/chat.module.scss b/app/components/chat.module.scss index e7619e92b89..10265fc4d27 100644 --- a/app/components/chat.module.scss +++ b/app/components/chat.module.scss @@ -87,6 +87,14 @@ } } + &[data-expanded="true"] { + width: var(--full-width) !important; /* 始终保持展开状态 */ + .text { + opacity: 1; + transform: translate(0); + } + } + .text, .icon { display: flex; @@ -458,7 +466,7 @@ width: $calc-image-width; height: $calc-image-width; } - + .chat-message-item-image { max-width: calc(100vw/3*2); } @@ -624,4 +632,4 @@ .chat-input-send { bottom: 30px; } -} \ No newline at end of file +} diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 06119250465..130ba4d0044 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -341,6 +341,7 @@ function ChatAction(props: { text: string; icon: JSX.Element; onClick: () => void; + isExpanded?: boolean; }) { const iconRef = useRef(null); const textRef = useRef(null); @@ -360,6 +361,9 @@ function ChatAction(props: { }); } + useEffect(() => { + updateWidth(); + }, [props.icon, props.text]); return (
{props.icon} @@ -520,21 +525,21 @@ export function ChatActions(props: { icon={props.uploading ? : } /> )} - - {theme === Theme.Auto ? ( - - ) : theme === Theme.Light ? ( - - ) : theme === Theme.Dark ? ( - - ) : null} - - } - /> + {/**/} + {/* {theme === Theme.Auto ? (*/} + {/* */} + {/* ) : theme === Theme.Light ? (*/} + {/* */} + {/* ) : theme === Theme.Dark ? (*/} + {/* */} + {/* ) : null}*/} + {/* */} + {/* }*/} + {/*/>*/} } - onClick={() => { - chatStore.updateCurrentSession((session) => { - if (session.clearContextIndex === session.messages.length) { - session.clearContextIndex = undefined; - } else { - session.clearContextIndex = session.messages.length; - session.memoryPrompt = ""; // will clear memory - } - }); - }} - /> - - setShowModelSelector(true)} text={currentModel} icon={} /> +
+ } + onClick={() => { + chatStore.updateCurrentSession((session) => { + if (session.clearContextIndex === session.messages.length) { + session.clearContextIndex = undefined; + } else { + session.clearContextIndex = session.messages.length; + session.memoryPrompt = ""; // will clear memory + } + }); + }} + /> +
{showModelSelector && (
- Build your own AI assistant. + Build your own AI assistant. (by chenzhen)
diff --git a/app/constant.ts b/app/constant.ts index 1ccb1aeb272..e2ca4f81fcd 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -1,4 +1,4 @@ -export const OWNER = "Yidadaa"; +export const OWNER = "imaiya"; export const REPO = "ChatGPT-Next-Web"; export const REPO_URL = `https://github.com/${OWNER}/${REPO}`; export const ISSUE_URL = `https://github.com/${OWNER}/${REPO}/issues`; diff --git a/app/store/config.ts b/app/store/config.ts index 94cfcd8ecaa..d79a10fd889 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -34,13 +34,13 @@ export const DEFAULT_CONFIG = { fontSize: 14, theme: Theme.Auto as Theme, tightBorder: !!config?.isApp, - sendPreviewBubble: true, + sendPreviewBubble: false, enableAutoGenerateTitle: true, sidebarWidth: DEFAULT_SIDEBAR_WIDTH, disablePromptHint: false, - dontShowMaskSplashScreen: false, // dont show splash screen when create chat + dontShowMaskSplashScreen: true, // dont show splash screen when create chat hideBuiltinMasks: false, // dont add builtin masks customModels: "", diff --git a/app/utils/model.ts b/app/utils/model.ts index 056fff2e98d..8267816649b 100644 --- a/app/utils/model.ts +++ b/app/utils/model.ts @@ -2,7 +2,7 @@ import { LLMModel } from "../client/api"; const customProvider = (modelName: string) => ({ id: modelName, - providerName: "", + providerName: "*OpenAI", providerType: "custom", }); @@ -49,7 +49,7 @@ export function collectModelTable( name, displayName: displayName || name, available, - provider: modelTable[name]?.provider ?? customProvider(name), // Use optional chaining + provider: customProvider(name), // Use optional chaining }; } });