Parcourir la source

独立APIKEY配置文件

李富豪 il y a 1 an
Parent
commit
21d043fead

+ 1 - 0
app/client/config.ts

@@ -0,0 +1 @@
+export const bigModelApiKey = '20480a1ad76c4d9e0a168206a25f9614.bUjEVNXHpgY0H0GH'

+ 2 - 1
app/client/platforms/bigmodel.ts

@@ -13,6 +13,7 @@ import {
 } from "@fortaine/fetch-event-source";
 import { prettyObject } from "@/app/utils/format";
 import { getMessageTextContent } from "@/app/utils";
+import { bigModelApiKey } from "../config";
 
 export class BigModelApi implements LLMApi {
   path(): string {
@@ -64,7 +65,7 @@ export class BigModelApi implements LLMApi {
         headers: {
           'Content-Type': 'application/json',
           // APIKey
-          Authorization: '20480a1ad76c4d9e0a168206a25f9614.bUjEVNXHpgY0H0GH'
+          Authorization: bigModelApiKey
         },
       };
 

+ 2 - 2
app/components/button.module.scss

@@ -67,7 +67,7 @@
 
 @media only screen and (max-width: 600px) {
   .icon-button {
-    padding: 16px;
+    // padding: 16px;
   }
 }
 
@@ -80,4 +80,4 @@
   &:not(:first-child) {
     margin-left: 5px;
   }
-}
+}