From 08dff9e62babf16248694047e239d230e615769f Mon Sep 17 00:00:00 2001 From: Zack Date: Fri, 20 Oct 2023 05:02:54 -0500 Subject: [PATCH] feat: refactor bing_chat.py --- .env.example | 3 ++- swarms/models/bing_chat.py | 1 - swarms/models/revgpt.py | 0 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 swarms/models/revgpt.py diff --git a/.env.example b/.env.example index e170252c..212290bf 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ OPENAI_API_KEY="your_openai_api_key_here" +CHATGPT_BASE_URL="" GOOGLE_API_KEY="" ANTHROPIC_API_KEY="" @@ -36,4 +37,4 @@ REDIS_PORT= #dbs PINECONE_API_KEY="" -BING_COOKIE="" \ No newline at end of file +BING_COOKIE="" diff --git a/swarms/models/bing_chat.py b/swarms/models/bing_chat.py index 0672ef28..c91690e5 100644 --- a/swarms/models/bing_chat.py +++ b/swarms/models/bing_chat.py @@ -29,7 +29,6 @@ class BingChat: self.cookies = json.loads(open(cookies_path, encoding="utf-8").read()) self.bot = asyncio.run(Chatbot.create(cookies=self.cookies)) - print(self.bot.___dict__) def __call__(self, prompt: str, style: ConversationStyle = ConversationStyle.creative) -> str: """ Get a text response using the EdgeGPT model based on the provided prompt. diff --git a/swarms/models/revgpt.py b/swarms/models/revgpt.py new file mode 100644 index 00000000..e69de29b