From c3218bf4f422c4dfb41349da61a53ed6c23a2590 Mon Sep 17 00:00:00 2001
From: Clivia <132346501+Yanyutin753@users.noreply.github.com>
Date: Mon, 19 Feb 2024 23:34:07 +0800
Subject: [PATCH] fix chat.tsx
---
app/components/chat.tsx | 56 ++++++++++++++++++++---------------------
1 file changed, 28 insertions(+), 28 deletions(-)
diff --git a/app/components/chat.tsx b/app/components/chat.tsx
index fe962db..5ff0cd0 100644
--- a/app/components/chat.tsx
+++ b/app/components/chat.tsx
@@ -373,17 +373,17 @@ function ChatAction(props: {
style={
props.icon && !props.loding
? ({
- "--icon-width": `${width.icon}px`,
- "--full-width": `${width.full}px`,
- ...props.style,
- } as React.CSSProperties)
+ "--icon-width": `${width.icon}px`,
+ "--full-width": `${width.full}px`,
+ ...props.style,
+ } as React.CSSProperties)
: props.loding
- ? ({
+ ? ({
"--icon-width": `30px`,
"--full-width": `30px`,
...props.style,
} as React.CSSProperties)
- : props.style
+ : props.style
}
>
{props.icon ? (
@@ -609,7 +609,7 @@ export function ChatActions(props: {
{config.pluginConfig.enable &&
/^gpt(?!.*03\d{2}$).*$/.test(currentModel) &&
- !currentModel.includes("vision") && (
+ currentModel != "gpt-4-vision-preview" && (