Virtual Method
FoundryLlmModelcomplete
Declaration [src]
DexFuture*
complete (
FoundryLlmModel* self,
const char* const* roles,
const char* const* messages
)
Description [src]
Requests completion using roles and messages.
Each element of roles corresponds to the element at the same index
of messages.
The length of messages and roles must be the same.
Parameters
roles-
Type: An array of
char*The roles for each message.
The array must be NULL-terminated.The data is owned by the caller of the method. Each element is a NUL terminated UTF-8 string. messages-
Type: An array of
char*The message content.
The array must be NULL-terminated.The data is owned by the caller of the method. Each element is a NUL terminated UTF-8 string.
Return value
Type: DexFuture
A DexFuture that resolves
to a FoundryLlmCompletion.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |