HuggingFaceConfig
org.llm4s.imagegeneration.HuggingFaceConfig
case class HuggingFaceConfig(apiKey: String, model: String, timeout: Int) extends ImageGenerationConfig
Configuration for the HuggingFace Inference API.
Value parameters
- apiKey
-
Your HuggingFace API token. This is required for authentication.
- model
-
The identifier of the model to use on the HuggingFace Hub, e.g., "runwayml/stable-diffusion-v1-5".
- timeout
-
Request timeout in milliseconds. Defaults to a higher value suitable for cloud APIs.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ImageGenerationConfigclass Objecttrait Matchableclass Any
Members list
In this article