Skip to content

OpenAI

To use OpenAI as an AI provider in DBeaver, configure it as follows:

  1. Sign up on the OpenAI platform.
  2. Navigate to the API Keys section and generate a new secret key.
  3. In DBeaver, go to Engine settings and insert this key into API token field.
  4. Choose the model.
  5. Apply the changes.

Note

OpenAI services are available in specific countries. Consult the supported countries list to verify availability in your location.

Engine settings

Setting Description Default
API token Input your secret key from the provider platform.
Model Choose the AI model. Models are loaded dynamically and can be refreshed using the Refresh models button next to the field. You can also type a model name manually. gpt-4o
Context window size A larger number allows the AI to use more data for better answers but may slow down response time. By default, the size is set dynamically based on the selected model (if the model provides this information). 128000
Temperature Control AI's creativity from 0.0 (more precise) to 0.9 (more diverse).
Note that higher temperature can lead to less predictable results.
0.0
Transcript model Choose the AI model for speech-to-text transcription. For details, see AI speech recognition. Models are loaded dynamically and can be refreshed using the Refresh models button next to the field. You can also type a model name manually. whisper-1
API base URL The address where requests to the AI service are sent (for example, https://api.openai.com/v1/). Normally this is filled automatically for the selected provider. Change it only if you use a custom endpoint. https://api.openai.com/v1/
Write AI queries to debug log Logs your AI requests. For more details on logging, see Log Viewer. disabled