Ver código fonte

feat: bugfix

Dean-YZG 1 ano atrás
pai
commit
a1493bfb4e
2 arquivos alterados com 2 adições e 2 exclusões
  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 {