@@ -761,7 +761,7 @@ async def load_index(
761761 input_type = discord .SlashCommandOptionType .number ,
762762 max_value = 1 ,
763763 min_value = 0 ,
764- default = 0
764+ default = 0 ,
765765 )
766766 @discord .option (
767767 name = "top_p" ,
@@ -770,7 +770,7 @@ async def load_index(
770770 input_type = discord .SlashCommandOptionType .number ,
771771 max_value = 1 ,
772772 min_value = 0 ,
773- default = 1
773+ default = 1 ,
774774 )
775775 async def talk (
776776 self ,
@@ -1137,7 +1137,7 @@ async def draw_action(self, ctx, message: discord.Message):
11371137 input_type = discord .SlashCommandOptionType .number ,
11381138 max_value = 1 ,
11391139 min_value = 0 ,
1140- default = 0
1140+ default = 0 ,
11411141 )
11421142 @discord .option (
11431143 name = "top_p" ,
@@ -1146,7 +1146,7 @@ async def draw_action(self, ctx, message: discord.Message):
11461146 input_type = discord .SlashCommandOptionType .number ,
11471147 max_value = 1 ,
11481148 min_value = 0 ,
1149- default = 1
1149+ default = 1 ,
11501150 )
11511151 async def chat_code (
11521152 self ,
@@ -1160,7 +1160,9 @@ async def chat_code(
11601160 "Code interpretation is disabled on this server." , ephemeral = True
11611161 )
11621162 return
1163- await self .code_interpreter_cog .code_interpreter_chat_command (ctx , model = model , temperature = temperature , top_p = top_p )
1163+ await self .code_interpreter_cog .code_interpreter_chat_command (
1164+ ctx , model = model , temperature = temperature , top_p = top_p
1165+ )
11641166
11651167 """
11661168 Translation commands and actions
@@ -1284,7 +1286,7 @@ async def summarize_action(self, ctx, message: discord.Message):
12841286 input_type = discord .SlashCommandOptionType .number ,
12851287 max_value = 1 ,
12861288 min_value = 0 ,
1287- default = 0
1289+ default = 0 ,
12881290 )
12891291 @discord .option (
12901292 name = "top_p" ,
@@ -1293,7 +1295,7 @@ async def summarize_action(self, ctx, message: discord.Message):
12931295 input_type = discord .SlashCommandOptionType .number ,
12941296 max_value = 1 ,
12951297 min_value = 0 ,
1296- default = 1
1298+ default = 1 ,
12971299 )
12981300 async def chat (
12991301 self ,
@@ -1304,7 +1306,11 @@ async def chat(
13041306 top_p : float = 1 ,
13051307 ):
13061308 await self .search_cog .search_chat_command (
1307- ctx , search_scope = search_scope , model = model , temperature = temperature , top_p = top_p ,
1309+ ctx ,
1310+ search_scope = search_scope ,
1311+ model = model ,
1312+ temperature = temperature ,
1313+ top_p = top_p ,
13081314 )
13091315
13101316 # Search slash commands
@@ -1371,7 +1377,7 @@ async def search(
13711377 nodes : int = 4 ,
13721378 deep : bool = False ,
13731379 response_mode : str = "refine" ,
1374- model : str = "gpt-4-1106-preview" ,
1380+ model : str = "gpt-4-1106-preview" ,
13751381 multistep : bool = False ,
13761382 ):
13771383 await self .search_cog .search_command (
0 commit comments