
com.simiacryptus.jopenai.exceptions.InvalidModelException.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jo-penai Show documentation
Show all versions of jo-penai Show documentation
A Java client for OpenAI's API
The newest version!
package com.simiacryptus.jopenai.exceptions
import org.slf4j.LoggerFactory
class InvalidModelException(model: String?) : AIServiceException("Invalid model: $model", isFatal = true)
{
companion object {
private val logger = LoggerFactory.getLogger("InvalidModelLogger")
}
init {
if (model.isNullOrEmpty()) {
logger.warn("InvalidModelException thrown with no model specified")
} else {
logger.error("InvalidModelException thrown for model: $model")
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy