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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product