From cd7d50900e43902dfb45c33e67c4c7e74613619f Mon Sep 17 00:00:00 2001 From: Zero6992 Date: Tue, 2 Apr 2024 17:29:57 +0800 Subject: [PATCH] chore: provider updated --- src/aclient.py | 4 ++-- src/bot.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/aclient.py b/src/aclient.py index b2e3f3c6..c5661214 100644 --- a/src/aclient.py +++ b/src/aclient.py @@ -13,7 +13,7 @@ import g4f.debug from g4f.client import Client from g4f.stubs import ChatCompletion -from g4f.Provider import RetryProvider, OpenaiChat, Bing, You +from g4f.Provider import RetryProvider, OpenaiChat, Liaobots,Bing, You from g4f.Provider import FreeGpt, ChatgptNext, AItianhuSpace g4f.debug.logging = True @@ -27,7 +27,7 @@ def __init__(self) -> None: super().__init__(intents=intents) self.tree = app_commands.CommandTree(self) self.chatBot = Client( - provider = RetryProvider([FreeGpt, ChatgptNext, AItianhuSpace, OpenaiChat, Bing, You], shuffle=False), + provider = RetryProvider([OpenaiChat, Liaobots, FreeGpt, ChatgptNext, AItianhuSpace, Bing, You], shuffle=False), ) self.chatModel = os.getenv("MODEL") self.conversation_history = [] diff --git a/src/bot.py b/src/bot.py index a6c5c4b8..4404c439 100644 --- a/src/bot.py +++ b/src/bot.py @@ -153,7 +153,8 @@ async def help(interaction: discord.Interaction): @app_commands.choices(model=[ app_commands.Choice(name="gemeni", value="gemeni"), app_commands.Choice(name="openai", value="openai"), - app_commands.Choice(name="bing", value="bing") + app_commands.Choice(name="bing", value="bing"), + app_commands.Choice(name="you", value="You"), ]) async def draw(interaction: discord.Interaction, *, prompt: str, model: app_commands.Choice[str]): if interaction.user == discordClient.user: