toServerSetupState
fun Configuration.toServerSetupState(allowedModes: List<ServerSource>, huggingFaceModels: List<String>, localOnnxModels: List<LocalAiModel> = emptyList(), localMediaPipeModels: List<LocalAiModel> = emptyList(), allowLocalCustomModels: Boolean = true, demoModeUrl: String = "", showBackNavArrow: Boolean = false): ServerSetupState(source)
Converts SDAI data with toServerSetupState.
Return
Result produced by toServerSetupState.
Author
Dmitriy Moroz
Parameters
allowedModes
allowed modes value consumed by the API.
huggingFaceModels
hugging face models value consumed by the API.
localOnnxModels
local onnx models value consumed by the API.
localMediaPipeModels
local media pipe models value consumed by the API.
allowLocalCustomModels
allow local custom models value consumed by the API.
demoModeUrl
demo mode url value consumed by the API.
showBackNavArrow
show back nav arrow value consumed by the API.