Fix bug where unauthorized users could change llmconf lol
This commit is contained in:
		
							parent
							
								
									4124be492d
								
							
						
					
					
						commit
						c0d48a92dc
					
				| @ -18,6 +18,7 @@ async function configCommand(interaction: ChatInputCommandInteraction) | |||||||
| { | { | ||||||
|     if (interaction.user.id !== process.env.ADMIN) { |     if (interaction.user.id !== process.env.ADMIN) { | ||||||
|         await interaction.reply("You are not authorized to change model settings"); |         await interaction.reply("You are not authorized to change model settings"); | ||||||
|  | 	return; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     config.llmSettings.max_new_tokens = interaction.options.getInteger('max_new_tokens') ?? config.llmSettings.max_new_tokens; |     config.llmSettings.max_new_tokens = interaction.options.getInteger('max_new_tokens') ?? config.llmSettings.max_new_tokens; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user