Kaynağa Gözat

添加注释信息

李富豪 9 ay önce
ebeveyn
işleme
d04615ceca

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

@@ -24,8 +24,10 @@ export class BigModelApi implements LLMApi {
   constructor() {
   constructor() {
     this.baseURL = '/bigmodel-api';
     this.baseURL = '/bigmodel-api';
     this.apiPath = this.baseURL + '/bigmodel/api/model-api/sse-invoke';
     this.apiPath = this.baseURL + '/bigmodel/api/model-api/sse-invoke';
+    // 切换deepSeek模型请求地址
     this.deepSeekApiPath = 'http://192.168.3.209:8000/chat';
     this.deepSeekApiPath = 'http://192.168.3.209:8000/chat';
-    this.apiType = 'bigModel';
+    // 切换api请求类型
+    this.apiType = 'deepSeek';
   }
   }
 
 
   async chat(options: ChatOptions) {
   async chat(options: ChatOptions) {

+ 3 - 1
app/components/DeekSeek.tsx

@@ -21,7 +21,9 @@ const DeekSeek: React.FC = () => {
                         上海建科
                         上海建科
                     </div>
                     </div>
                 </div>
                 </div>
-                <div style={{ marginRight: 20, color: '#98b4fa' }}>
+                <div style={{ marginRight: 20, color: '#98b4fa', cursor: 'pointer' }} onClick={() => {
+                    window.open('http://xia0miduo.gicp.net:3002/', '_blank');
+                }}>
                     问答广场
                     问答广场
                 </div>
                 </div>
                 <div style={{ marginRight: 20, color: '#98b4fa' }}>
                 <div style={{ marginRight: 20, color: '#98b4fa' }}>

+ 3 - 3
app/components/DeepSeekChat.tsx

@@ -1471,11 +1471,11 @@ function _Chat() {
                         )}
                         )}
                       </div>
                       </div>
                     </div>
                     </div>
-                    {showTyping && (
+                    {/* {showTyping && (
                       <div className={styles["chat-message-status"]}>
                       <div className={styles["chat-message-status"]}>
-                        {Locale.Chat.Typing}
+                        正在输入…
                       </div>
                       </div>
-                    )}
+                    )} */}
                     <div className={styles["chat-message-item"]} style={{ marginTop: 20 }}>
                     <div className={styles["chat-message-item"]} style={{ marginTop: 20 }}>
                       <Markdown
                       <Markdown
                         key={message.streaming ? "loading" : "done"}
                         key={message.streaming ? "loading" : "done"}