OpenAI Completions
Model name: openai_completions
About OpenAI Completions
OpenAI Completions is a text completion model that enables use of any supported OpenAI text generation model. It is suitable for chat/text transforms, text completion, and other text generation tasks.
See a list of supported OpenAI models here.
Supported aidb operations
- decode_text
- decode_text_batch
Supported models
- Any text generation model that is supported by OpenAI. This includes models such as GPT-4o, GPT-4o mini, GPT-4 and GPT-3.5.
Registering the default model
There is no default model for OpenAI Completions. You can register any supported OpenAI model using the aidb.register_model
function. See Registering a model.
Registering a model
You can register any supported OpenAI model using the aidb.register_model
function.
In this example, we are registering a GPT-4o model with the name my_openai_model
:
Model configuration settings
The following configuration settings are available for OpenAI models:
model
- The OpenAI model to use.url
- The URL of the OpenAI model to use. This is optional and can be used to specify a custom model URL. Defaults tohttps://api.openai.com/v1/chat/completions
.max_concurrent_requests
- The maximum number of concurrent requests to make to the OpenAI model. Defaults to25
.
Model credentials
The following credentials are required for OpenAI models:
api_key
- The OpenAI API key to use for authentication.
Could this page be better? Report a problem or suggest an addition!