package com.smyhub.infogenie.infogeniebackendjava.repository;

import com.smyhub.infogenie.infogeniebackendjava.entity.AIConfig;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface AIConfigRepository extends JpaRepository<AIConfig, Long> {

    Optional<AIConfig> findByProviderAndIsEnabledTrue(String provider);
}
