feat(ChatExcel): Better Chat Excel (#2423)

This commit is contained in:
Fangyin Cheng
2025-03-10 11:37:32 +08:00
committed by GitHub
parent 75c1454938
commit 93eb3a786c
202 changed files with 1862 additions and 751 deletions

View File

@@ -1,4 +1,5 @@
import { apiInterceptors, postChatModeParamsFileLoad } from '@/client/api';
import { ChatContentContext } from '@/pages/chat';
import { dbMapper } from '@/utils';
import { FolderAddOutlined, LoadingOutlined, SwapOutlined } from '@ant-design/icons';
import { useRequest } from 'ahooks';
@@ -12,6 +13,7 @@ const Resource: React.FC = () => {
const { appInfo, resourceList, scene, model, conv_uid, getChatHistoryRun, setResource, resource } =
useContext(MobileChatContext);
const { temperatureValue, maxNewTokensValue } = useContext(ChatContentContext);
const [selectedVal, setSelectedVal] = useState<any>(null);
// 资源类型
@@ -51,6 +53,8 @@ const Resource: React.FC = () => {
chatMode: scene,
data: formData,
model,
temperatureValue,
maxNewTokensValue,
config: {
timeout: 1000 * 60 * 60,
},