Skip to content

Commit

Permalink
Fix Claude.ai bot not working (#861)
Browse files Browse the repository at this point in the history
* Change Claude (claude.ai) BOT avaliability check and api url

* Change Claude (claude.ai) BOT to fix code analysis problems
  • Loading branch information
prawwtocol committed Jul 3, 2024
1 parent ec2adc9 commit 271fb96
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bots/ClaudeAIBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 271fb96

Please sign in to comment.