Ver Fonte

添加标题

sunsheng há 1 mês atrás
pai
commit
3509fbda48
3 ficheiros alterados com 7 adições e 4 exclusões
  1. 2 2
      app/client/platforms/deepSeek.ts
  2. 4 1
      app/components/chat.tsx
  3. 1 1
      app/components/home.tsx

+ 2 - 2
app/client/platforms/deepSeek.ts

@@ -22,8 +22,8 @@ export class DeepSeekApi implements LLMApi {
   constructor() {
     // this.baseURL = 'http://192.168.3.209:18078';
     this.baseURL = '/deepseek-api';
-    // this.apiPath = this.baseURL + '/vllm/ai/chat';//线上地址
-    this.apiPath = this.baseURL + '/vllm/chat'; // 测试地址 
+    this.apiPath = this.baseURL + '/vllm/ai/chat';//线上地址
+    // this.apiPath = this.baseURL + '/vllm/chat'; // 测试地址 
   }
 
   async chat(options: ChatOptions) {

+ 4 - 1
app/components/chat.tsx

@@ -1856,7 +1856,7 @@ function _Chat() {
     <div className={styles.chat} key={session.id}>
       {
         <div className="window-header" data-tauri-drag-region>
-          <div style={{ display: 'flex', alignItems: 'center' }}
+          <div style={{ display: 'flex', alignItems: 'center' ,justifyContent: 'space-between',width:'auto' }}
             className={`window-header-title ${styles["chat-body-title"]}`}>
             {
               <div style={{ marginRight: 10 }}>
@@ -1920,6 +1920,9 @@ function _Chat() {
               </div>
             }
           </div>
+          <h3 style={{ color: '#111111',margin:0,padding:0 }}>
+                {messages.length>1 ? getAppName():''}
+          </h3>
           <div className="window-actions">
             <div className="window-action-button">
               <Popover

+ 1 - 1
app/components/home.tsx

@@ -368,7 +368,7 @@ export function Home() {
   }
 
   const toUninLogin = async (originUrl: string, fullUrl: string) => {
-    return
+    // return
     //测试环境
     //const loginUrl = 'https://esctest.sribs.com.cn/esc-sso/oauth2.0/authorize?client_id=e97f94cf93761f4d69e8&response_type=code';
     //生产环境