feat: Add option to use profile image for AI generation.

This commit is contained in:
xds
2026-02-05 22:19:52 +03:00
parent 0e81f35560
commit ab8b69dbeb

View File

@@ -179,6 +179,7 @@ const isGenerating = ref(false)
const generationStatus = ref('')
const generationProgress = ref(0)
const sendToTelegram = ref(false)
const useProfileImage = ref(true)
const telegramId = ref(localStorage.getItem('telegram_id') || '')
const isTelegramIdSaved = ref(!!localStorage.getItem('telegram_id'))
@@ -454,7 +455,8 @@ const handleGenerate = async () => {
quality: quality.value.key,
prompt: prompt.value,
assets_list: selectedAssets.value.map(a => a.id),
telegram_id: sendToTelegram.value ? telegramId.value : null
telegram_id: sendToTelegram.value ? telegramId.value : null,
use_profile_image: useProfileImage.value
}
const response = await aiService.runGeneration(payload)
@@ -687,6 +689,13 @@ const handleLogout = () => {
<InputText v-model="telegramId" placeholder="Enter Telegram ID"
class="w-full !text-[10px] !py-1" @blur="saveTelegramId" />
</div>
<div class="flex items-center gap-2 mt-1">
<Checkbox v-model="useProfileImage" :binary="true"
inputId="profile-img-check" />
<label for="profile-img-check"
class="text-[10px] text-slate-400 cursor-pointer select-none">Use
Profile Photo</label>
</div>
</div>
</div>