HuggingFaceGenerationApi

Defines the HuggingFaceGenerationApi contract for the SDAI network layer.

Author

Dmitriy Moroz

Inheritors

Functions

Link copied to clipboard
abstract suspend fun generate(apiKey: String, model: String, request: HuggingFaceGenerationRequest): ByteArray

Executes the generate step in the SDAI network layer.

Link copied to clipboard
abstract suspend fun validateBearerToken(apiKey: String)

Executes the validateBearerToken step in the SDAI network layer.