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=