createLlmCall

This is a simplified function that method makes a call to OpenAI GPT-4 with default parameters and provides no configurability. If you want to use other models, or configure other parameters like temperature, see createOpenAiLlmCall.

Arguments

promptCallbackId
uint

Identifier which will be passed into the callback.

Returns

counter
uint

An internal counter of the oracle, which is incremented on every call.

onOracleLlmResponse

Called when the result of an LLM call, created with createLlmCall, is available.

Arguments

callbackId
uint

The identifier you passed into the createLlmCall method.

response
string

The result of the LLM call.

errorMessage
string

An error message. Contains an empty string if there was no error, and a description of the error otherwise.