CallChatAsync

IAIWebClient.CallChatAsync method

Sends a chat instruction to the AI model using a provided HttpClient instance and return response message to the given instruction.

public Task<string> CallChatAsync(string instruction)
ParameterTypeDescription
instructionStringThe instruction or message to be processed by the AI model.

Return Value

The message generated by the AI model in response to the given instruction.

See Also