spring.application.name=AiHealthCoach

server.port=8080
spring.datasource.url=jdbc:mysql://localhost:3306/health_coach_db?createDatabaseIfNotExist=true&useSSL=false&serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.hibernate.ddl-auto=update
#spring.jpa.show-sql=true
#spring.jpa.properties.hibernate.format_sql=true

# ===== Swagger & OpenAPI =====
springdoc.swagger-ui.path=/swagger-ui.html
springdoc.api-docs.enabled=true
springdoc.swagger-ui.tryItOutEnabled=true

springdoc.swagger-ui.filter=true
springdoc.swagger-ui.operationsSorter=alpha
springdoc.swagger-ui.tagsSorter=alpha
springdoc.default-produces-media-type=application/json
springdoc.default-consumes-media-type=application/json

# JWT
app.jwt.secret=my-super-secret-jwt-token-with-at-least-32-characters-long-and-then-some-more
app.jwt.expiration-minutes=1440

# OpenAI (Groq)
spring.ai.openai.api-key=
spring.ai.openai.base-url=https://api.groq.com/openai

# Cập nhật sang Model Vision Llama 4 (Phiên bản Scout 17B)
spring.ai.openai.chat.options.model=meta-llama/llama-4-scout-17b-16e-instruct

spring.ai.openai.chat.options.temperature=0.6
spring.ai.openai.chat.options.max-tokens=8192

# ===== Logging Configuration =====
# Enable ANSI colors in console
spring.output.ansi.enabled=always

# Set log level for request logger (INFO = basic, DEBUG = with headers)
logging.level.com.t2404e.aihealthcoach.config.RequestLoggingFilter=INFO

# Optional: Log SQL queries (uncomment for debugging)
# logging.level.org.hibernate.SQL=DEBUG
# logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE

# Cloudinary Configuration
cloudinary.cloud-name=${CLOUDINARY_CLOUD_NAME:dmnsx45tp}
cloudinary.api-key=${CLOUDINARY_API_KEY:143295335441532}
cloudinary.api-secret=${CLOUDINARY_API_SECRET:49myn_EdcVFLG7q1oAUstvJpqds}

# ===== Mail Configuration (OTP & Notifications) =====
spring.mail.host=smtp.gmail.com
spring.mail.port=587
spring.mail.username=tqminh282@gmail.com
spring.mail.password=rsknrqqgozthebti
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
