소스 검색

feat: bugfix

Dean-YZG 1 년 전
부모
커밋
a1493bfb4e
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      app/client/platforms/anthropic.ts
  2. 1 1
      app/components/chat.tsx

+ 1 - 1
app/client/platforms/anthropic.ts

@@ -164,7 +164,7 @@ export class ClaudeApi implements LLMApi {
     if (prompt[0]?.role === "assistant") {
       prompt.unshift({
         role: "user",
-        content: "",
+        content: ";",
       });
     }
 

+ 1 - 1
app/components/chat.tsx

@@ -1088,7 +1088,7 @@ function _Chat() {
             if (payload.url) {
               accessStore.update((access) => (access.openaiUrl = payload.url!));
             }
-            accessStore.useCustomConfig = true;
+            accessStore.update((access) => (access.useCustomConfig = true));
           });
         }
       } catch {