mirror of
https://github.com/Yanyutin753/ChatGPT-Next-Web-LangChain-Gpt-4-All.git
synced 2025-10-15 07:31:39 +00:00
fix chat.tsx
This commit is contained in:
@@ -609,7 +609,7 @@ export function ChatActions(props: {
|
|||||||
|
|
||||||
{config.pluginConfig.enable &&
|
{config.pluginConfig.enable &&
|
||||||
/^gpt(?!.*03\d{2}$).*$/.test(currentModel) &&
|
/^gpt(?!.*03\d{2}$).*$/.test(currentModel) &&
|
||||||
!currentModel.includes("vision") && (
|
currentModel != "gpt-4-vision-preview" && (
|
||||||
<ChatAction
|
<ChatAction
|
||||||
onClick={switchUsePlugins}
|
onClick={switchUsePlugins}
|
||||||
text={
|
text={
|
||||||
@@ -623,13 +623,13 @@ export function ChatActions(props: {
|
|||||||
{currentModel.includes("vision") && (
|
{currentModel.includes("vision") && (
|
||||||
<ChatAction
|
<ChatAction
|
||||||
onClick={selectImage}
|
onClick={selectImage}
|
||||||
text="选择文档"
|
text="选择图片"
|
||||||
loding={uploadLoading}
|
loding={uploadLoading}
|
||||||
icon={<UploadIcon />}
|
icon={<UploadIcon />}
|
||||||
innerNode={
|
innerNode={
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
accept="*/*"
|
accept=".png,.jpg,.webp,.jpeg"
|
||||||
id="chat-image-file-select-upload"
|
id="chat-image-file-select-upload"
|
||||||
style={{ display: "none" }}
|
style={{ display: "none" }}
|
||||||
onChange={onImageSelected}
|
onChange={onImageSelected}
|
||||||
@@ -1412,7 +1412,7 @@ function _Chat() {
|
|||||||
defaultShow={i >= messages.length - 6}
|
defaultShow={i >= messages.length - 6}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{!isUser && message?.model?.includes("vision") && (
|
{!isUser && message.model?.includes("vision") && (
|
||||||
<div
|
<div
|
||||||
className={[
|
className={[
|
||||||
styles["chat-message-actions"],
|
styles["chat-message-actions"],
|
||||||
|
Reference in New Issue
Block a user