fix usage whisper time

main
pluja 2023-03-06 16:49:16 +00:00
rodzic a6966cd8b2
commit 83f4597067
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -128,7 +128,7 @@ async def usage(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
total_spent=0.0
total_spent+=(user_info['chatgpt']/750)*0.002
total_spent+=float(user_info['dalle'])*0.02
total_spent+=(user_info['whisper'])*0.006
total_spent+=(user_info['whisper']/60.0)*0.006
info_message=f"""User: {update.effective_user.name}\n- Used {user_info["chatgpt"]} characters with ChatGPT.\n- Generated {user_info["dalle"]} images with DALL-E.\n- Transcribed {user_info["whisper"]}min with Whisper.\n\nTotal spent: ${str(total_spent)}"""
await context.bot.send_message(chat_id=update.effective_chat.id, text=info_message)