From 271fb96823f9cec9fb08950cde40b1e882476797 Mon Sep 17 00:00:00 2001 From: prawwtocol <142227259+prawwtocol@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:59:35 +0300 Subject: [PATCH] Fix Claude.ai bot not working (#861) * Change Claude (claude.ai) BOT avaliability check and api url * Change Claude (claude.ai) BOT to fix code analysis problems --- src/bots/ClaudeAIBot.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bots/ClaudeAIBot.js b/src/bots/ClaudeAIBot.js index bac43dcefa..97fc5062b6 100644 --- a/src/bots/ClaudeAIBot.js +++ b/src/bots/ClaudeAIBot.js @@ -26,10 +26,10 @@ export default class ClaudeAIBot extends Bot { if (store.state.claudeAi.org) { const currentAcountResponse = await axios.get( - "https://claude.ai/api/auth/current_account", + "https://claude.ai/api/account", ); - if (currentAcountResponse.data.success) { + if (currentAcountResponse.status === 200) { available = true; } } @@ -105,7 +105,6 @@ export default class ClaudeAIBot extends Bot { /** * Should implement this method if the bot supports conversation. * The conversation structure is defined by the subclass. - * @param null * @returns {any} - Conversation structure. null if not supported. */ async createChatContext() {