mirror of
				https://github.com/cdryzun/tg_bot_collections.git
				synced 2025-11-04 08:46:44 +08:00 
			
		
		
		
	increase max_tokens from 1024 to 2048 in chatgpt_photo_handler
This commit is contained in:
		@ -173,7 +173,7 @@ def chatgpt_photo_handler(message: Message, bot: TeleBot) -> None:
 | 
			
		||||
 | 
			
		||||
    try:
 | 
			
		||||
        r = client.chat.completions.create(
 | 
			
		||||
            max_tokens=1024,
 | 
			
		||||
            max_tokens=2048,
 | 
			
		||||
            messages=[
 | 
			
		||||
                {
 | 
			
		||||
                    "role": "user",
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user