Grok
Note
This feature is available in Lite, Enterprise, and Ultimate editions only.
To use Grok as an AI provider in DBeaver, configure it as follows:
- Sign up on the xAI Console.
- Open the API keys page and generate a new API key.
- In DBeaver, go to Window -> Preferences -> Engines and select Grok/xAI.
- Select a login method:
- API token: Insert the API key into the API token field.
- xAI account: Sign in to your xAI account.
- Choose the model.
- Click Test connection to verify that the key and model work correctly.
- Apply the changes.
Engine settings¶
| Setting | Description | Default |
|---|---|---|
| API token | Input your secret key from the xAI Console. | |
| 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. | |
| 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 when this information is available. | |
| Temperature | Control AI's creativity from 0.0 (more precise) to 0.9 (more diverse). Higher temperature can lead to less predictable results. |
0.0 |
| Request timeout (sec) | Maximum time DBeaver waits for a response from the AI engine before the request fails. | 30 |
| Write AI queries to debug log | Logs your AI requests. For more details on logging, see Log Viewer. | disabled |