Skip to content

Commit

Permalink
chore: provider updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Zero6992 committed Apr 2, 2024
1 parent 9effa75 commit cd7d509
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/aclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = []
Expand Down
3 changes: 2 additions & 1 deletion src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cd7d509

Please sign in to comment.