Compare commits

...

4 Commits

Author SHA1 Message Date
Yaowei Zou
8123c1797c
Merge 4c0daf40c0 into 80d7fd9b98 2025-07-14 09:29:33 +03:30
RiverRay
80d7fd9b98
Merge pull request #6562 from LePao1/main
Some checks failed
Run Tests / test (push) Has been cancelled
fix: Update the regular expressions to support image upload functionality for multimodal Claude 4 and Gemini 2.5 series.
2025-07-14 13:37:52 +08:00
LePao1
e8a18d0b38 fix: Update the regular expressions to support image upload functionality for multimodal Claude 4 and Gemini 2.5 series. 2025-07-13 21:20:20 +08:00
Yaowei Zou
4c0daf40c0 fix: Fix RTL direction spacing errors and sidebar dragging functionality errors. 2025-02-21 11:51:53 +08:00
3 changed files with 20 additions and 28 deletions

View File

@ -52,13 +52,10 @@
.sidebar-header-bar {
display: flex;
margin-bottom: 20px;
gap: 10px;
.sidebar-bar-button {
flex-grow: 1;
&:not(:last-child) {
margin-right: 10px;
}
}
}
@ -252,13 +249,6 @@
.sidebar-header-bar {
flex-direction: column;
.sidebar-bar-button {
&:not(:last-child) {
margin-right: 0;
margin-bottom: 10px;
}
}
}
.chat-item {
@ -308,15 +298,10 @@
.sidebar-tail {
flex-direction: column-reverse;
align-items: center;
gap: 15px;
.sidebar-actions {
flex-direction: column-reverse;
align-items: center;
.sidebar-action {
margin-right: 0;
margin-top: 15px;
}
display: contents;
}
}
}
@ -329,10 +314,7 @@
.sidebar-actions {
display: inline-flex;
}
.sidebar-action:not(:last-child) {
margin-right: 15px;
gap: 15px;
}
.loading-content {
@ -346,4 +328,9 @@
.rtl-screen {
direction: rtl;
.sidebar-drag {
right: unset;
left: 0;
}
}

View File

@ -13,7 +13,7 @@ import McpIcon from "../icons/mcp.svg";
import DragIcon from "../icons/drag.svg";
import DiscoveryIcon from "../icons/discovery.svg";
import Locale from "../locales";
import Locale, { getLang } from "../locales";
import { useAppConfig, useChatStore } from "../store";
@ -91,7 +91,11 @@ export function useDragSideBar() {
return;
}
lastUpdateTime.current = Date.now();
const d = e.clientX - startX.current;
let d = e.clientX - startX.current;
// If text and other elements go from right to left
if (getLang() === "ar") {
d = -1 * d;
}
const nextWidth = limit(startDragWidth.current + d);
config.update((config) => {
if (nextWidth < MIN_SIDEBAR_WIDTH) {

View File

@ -479,19 +479,20 @@ export const VISION_MODEL_REGEXES = [
/vision/,
/gpt-4o/,
/gpt-4\.1/,
/claude-3/,
/claude.*[34]/,
/gemini-1\.5/,
/gemini-exp/,
/gemini-2\.0/,
/gemini-2\.[05]/,
/learnlm/,
/qwen-vl/,
/qwen2-vl/,
/gpt-4-turbo(?!.*preview)/, // Matches "gpt-4-turbo" but not "gpt-4-turbo-preview"
/^dall-e-3$/, // Matches exactly "dall-e-3"
/gpt-4-turbo(?!.*preview)/,
/^dall-e-3$/,
/glm-4v/,
/vl/i,
/o3/,
/o4-mini/,
/grok-4/i,
];
export const EXCLUDE_VISION_MODEL_REGEXES = [/claude-3-5-haiku-20241022/];