isExtraPresentInPrompt
fun isExtraPresentInPrompt(prompt: String, loraAlias: String, type: ExtraType = ExtraType.Lora): Boolean(source)
Checks if a specific extra is present in the given prompt.
This function splits the prompt into individual keywords and checks if any keyword starts with the specified extra type and alias.
Return
Boolean value indicating whether the extra is present (true) or not (false) in the prompt.
Parameters
prompt
The input prompt string to search within. It's expected to be a comma or space-separated list of keywords.
loraAlias
The specific alias of the extra to search for in the prompt.
type
The type of extra to check for. Defaults to ExtraType.Lora.