Skip to content

Commit

Permalink
Format Python code with psf/black push
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions authored and github-actions committed Nov 9, 2023
1 parent 6c4c0d5 commit 7222288
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cogs/index_service_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ async def on_message(self, message):
)
except openai.BadRequestError as e:
traceback.print_exc()
await message.reply("This model is not supported with connected conversations.")


await message.reply(
"This model is not supported with connected conversations."
)

if chat_result:
if len(chat_result) > 2000:
Expand Down
10 changes: 9 additions & 1 deletion models/autocomplete_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,15 @@ async def get_value(
return []

async def get_function_calling_models(ctx: discord.AutocompleteContext):
return ["gpt-4","gpt-4-32k","gpt-4-1106-preview","gpt-4-0613","gpt-3.5-turbo","gpt-3.5-turbo-1106","gpt-3.5-turbo-0613"]
return [
"gpt-4",
"gpt-4-32k",
"gpt-4-1106-preview",
"gpt-4-0613",
"gpt-3.5-turbo",
"gpt-3.5-turbo-1106",
"gpt-3.5-turbo-0613",
]

async def get_models(
ctx: discord.AutocompleteContext,
Expand Down
1 change: 1 addition & 0 deletions models/index_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
node_parser=node_parser,
)


def dummy_tool(**kwargs):
return "You have used the dummy tool. Forget about this and do not even mention this to the user."

Expand Down

0 comments on commit 7222288

Please sign in to comment.