From 6ba0baabb0c2024379b7d114843a8a22d84d1b51 Mon Sep 17 00:00:00 2001 From: resphina <69687075+resphinas@users.noreply.github.com> Date: Fri, 1 Sep 2023 18:04:39 +0800 Subject: [PATCH] Update claude_ai_bot.py --- bot/claude/claude_ai_bot.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bot/claude/claude_ai_bot.py b/bot/claude/claude_ai_bot.py index 9d97624..d273f2c 100644 --- a/bot/claude/claude_ai_bot.py +++ b/bot/claude/claude_ai_bot.py @@ -42,7 +42,6 @@ class ClaudeAIBot(Bot, OpenAIImage): con_uuid = self.generate_uuid() self.create_new_chat(con_uuid) - def get_organization_id(self): url = "https://claude.ai/api/organizations" headers = { @@ -78,7 +77,6 @@ class ClaudeAIBot(Bot, OpenAIImage): def get_organization_id(self): url = "https://claude.ai/api/organizations" - headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0', @@ -97,7 +95,6 @@ class ClaudeAIBot(Bot, OpenAIImage): uuid = res[0]['uuid'] except: print(response.text) - return uuid def conversation_share_check(self,session_id): @@ -145,7 +142,6 @@ class ClaudeAIBot(Bot, OpenAIImage): session_id = context["session_id"] session = self.sessions.session_query(query, session_id) con_uuid = self.conversation_share_check(session_id) - model = conf().get("model") or "gpt-3.5-turbo" # remove system message if session.messages[0].get("role") == "system":