S0025136190 hai 1 ano
pai
achega
444064e448
Modificáronse 2 ficheiros con 7 adicións e 1 borrados
  1. 2 1
      app/components/Record.tsx
  2. 5 0
      app/constant.ts

+ 2 - 1
app/components/Record.tsx

@@ -4,6 +4,7 @@ import { IconButton } from './button';
 import ReturnIcon from "../icons/return.svg";
 import Excel from 'js-export-excel';
 import dayjs from 'dayjs';
+import {  ApiPath } from "@/app/constant";
 
 const RecordApp: React.FC = () => {
     const [account, setAccount] = React.useState('');
@@ -13,7 +14,7 @@ const RecordApp: React.FC = () => {
     const onClickExport = async (data: { account: string, password: string }) => {
         if (data.account && data.password) {
             if (data.account === 'root' && password === 'root@2024') {
-                const res = await fetch('/api/bigModel');
+                const res = await fetch(ApiPath.BigModel);
                 const body = await res.json();
                 const list: {
                     id: string;

+ 5 - 0
app/constant.ts

@@ -57,6 +57,7 @@ export enum ApiPath {
   Iflytek = "/api/iflytek",
   Stability = "/api/stability",
   Artifacts = "/api/artifacts",
+  BigModel = "/api/bigModel",
 }
 
 export enum SlotID {
@@ -73,6 +74,10 @@ export enum Plugin {
   Artifacts = "artifacts",
 }
 
+export enum Plugin {
+  BigModel = "bigModel",
+}
+
 export enum StoreKey {
   Chat = "chat-next-web-store",
   Access = "access-control",