Call out to AI21's complete endpoint. Args: prompt: The prompt to pass into the model. stop: Optional list of stop words to use when generating.
Returns:
The string generated by the model.
Example: let response = ai21._call("Tell me a joke.");
_call(
prompt: string,
options: Omit<BaseLLMCallOptions, "configurable" | "recursionLimit" | "runName" | "tags" | "metadata" | "callbacks" | "runId">
): Promise<string>| Name | Type | Description |
|---|---|---|
prompt* | string | |
options* | Omit<BaseLLMCallOptions, "configurable" | "recursionLimit" | "runName" | "tags" | "metadata" | "callbacks" | "runId"> |