JetBrains AI Assistant access
JetBrains AI Assistant official documentation supports OpenAI-compatible endpoint (address compatible with OpenAI interface), which can be used for AI Chat and other core functions. There is a separate entrance for code completion, and ordinary chat models cannot be automatically regarded as completion models.
Applicable products include IntelliJ IDEA, PyCharm, WebStorm, GoLand, RustRover and other JetBrains IDEs with AI Assistant installed.
An IDE is development software used for writing code. Follow JetBrains installation guide to install or enable the AI Assistant plugin.
Configure third-party model
- Open the IDE settings: Settings | Tools | AI Assistant | Providers & API keys. macOS corresponds to Preferences | Tools | AI Assistant | Providers & API keys.
- Select OpenAI-compatible in Third-party AI providers.
- Fill in:
| Field | Fill in content |
|---|---|
| URL | https://shanghaido.com/v1 |
| API Key | Your site token, such as YOUR_API_KEY |
| Model | qwen3.8-flash (if the interface requires manual filling) |
- Click Test Connection.
- Click Apply to save.
- If Models Assignment appears on the interface, assign
qwen3.8-flashto Core features; when tasks such as lightweight titles and context organization are required, assign it to Instant helpers according to the actual capabilities of the model. - Open AI Chat and confirm in the model selector that the model appears under the Independent Provider grouping.
If the automatic discovery of the model list fails, first confirm that /v1/models can return the visible model of the current token, and then manually fill in the accurate model name. Fill in the URL to /v1, do not spell /chat/completions in again, unless the field of the current JetBrains version explicitly requires the complete interface address.
code completion is another set of configurations
JetBrains officially lists AI Completion separately:
- AI Chat/Agent uses the third-party model configuration above.
- It is recommended to use the JetBrains model by default for inline code completion and next editing.
- If you want completion to also use your own model, you need to select OpenAI Compatible separately in the AI Completion area of the same settings page, and fill in the API Key, Base URL, model, context length, maximum output and prompt format.
- Common chat models are usually not specialized code completion models; this configuration is not recommended when there is no confirmation that the model supports FIM (fill-in-the-blank code completion) or when editing the prediction format.
Get started
First send a normal question in AI Chat, and then try to generate a small function. AI Chat, Agent and code completion use different function configurations, please set according to the corresponding entrance of the client.
official information
encountered a problem
If you encounter problems with calling or configuration, please contact the site customer service and provide the model name, error time and error information to facilitate troubleshooting.