From a4ab547f779d0e3ff635d92ce6516422a7a24a89 Mon Sep 17 00:00:00 2001 From: resphinas <2934218525@qq.com> Date: Tue, 29 Aug 2023 05:59:59 +0800 Subject: [PATCH] proxy update --- bot/claude/claude_ai_bot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot/claude/claude_ai_bot.py b/bot/claude/claude_ai_bot.py index 21ec5a9..6115614 100644 --- a/bot/claude/claude_ai_bot.py +++ b/bot/claude/claude_ai_bot.py @@ -19,10 +19,13 @@ class ClaudeAIBot(Bot, OpenAIImage): self.sessions = SessionManager(ChatGPTSession, model=conf().get("model") or "gpt-3.5-turbo") self.claude_api_cookie = conf().get("claude_api_cookie") self.proxy = conf().get("proxy") - self.proxies = { + if self.proxy: + self.proxies = { "http": self.proxy, "https": self.proxy } + else: + self.proxies = None self.org_uuid = self.get_organization_id() self.con_uuid = None self.get_uuid()