From 9ecfbdd3fe86103ffe93da5bc6bc330f8aad5322 Mon Sep 17 00:00:00 2001 From: PatakIN Date: Sun, 19 Jan 2025 13:28:21 +0500 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=B4=D0=BB=D1=8F=20=D1=82=D0=BE=D0=BA=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20Yandex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/github/djaler/evilbot/service/YandexGptService.kt | 3 +++ src/main/resources/application.properties | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/main/kotlin/com/github/djaler/evilbot/service/YandexGptService.kt b/src/main/kotlin/com/github/djaler/evilbot/service/YandexGptService.kt index 6d30f58a..be2aba62 100644 --- a/src/main/kotlin/com/github/djaler/evilbot/service/YandexGptService.kt +++ b/src/main/kotlin/com/github/djaler/evilbot/service/YandexGptService.kt @@ -4,10 +4,13 @@ import com.github.djaler.evilbot.clients.Keypoint import com.github.djaler.evilbot.clients.ResponseStatus import com.github.djaler.evilbot.clients.VideoSummaryResult import com.github.djaler.evilbot.clients.YandexGptClient +import com.github.djaler.evilbot.config.yandex.YandexApiCondition import kotlinx.coroutines.delay +import org.springframework.context.annotation.Conditional import org.springframework.stereotype.Service @Service +@Conditional(YandexApiCondition::class) class YandexGptService( private val yandexGptClient: YandexGptClient ) { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index c68926cc..0f63b829 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -2,6 +2,9 @@ telegram.bot.token= fixer.api.key= locationiq.api.key= sentry.dsn= +vk.api.key= +yandex.api.token= +yandex.api.cookie= spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.url= spring.datasource.username=