Function GenieDialog_applyLora

Function Documentation

Genie_Status_t GenieDialog_applyLora(const GenieDialog_Handle_t dialogHandle, const char *engine, const char *loraAdapterName)

A function to apply a LoRA Adapter.

Parameters
  • dialogHandle[in] A dialog handle.

  • engine[in] Engine to which the LoRA Adapter is being applied.

  • loraAdapterName[in] Name of the LoRA adapter.

Returns

Status code:

  • GENIE_STATUS_SUCCESS: API call was successful.

  • GENIE_STATUS_ERROR_INVALID_HANDLE: Dialog handle is invalid.

  • GENIE_STATUS_ERROR_INVALID_ARGUMENT: At least one argument is invalid.

  • GENIE_STATUS_ERROR_GENERAL: The LoRA adapter could not be applied.

Note

When switching LoRA adapters, it is recommended to call GenieDialog_reset.