@okcashpro/okai v0.1.7-alpha.1 / handleProvider
Function: handleProvider()
handleProvider(
options
):Promise
<GenerateObjectResult
<unknown
>>
Handles AI generation based on the specified provider.
Parameters
• options: ProviderOptions
Configuration options specific to the provider.
Returns
Promise
<GenerateObjectResult
<unknown
>>
- A promise that resolves to an array of generated objects.