fix: Found and fix review mistakes

This commit is contained in:
Petr Mironychev
2026-07-02 22:26:07 +02:00
parent c070d65366
commit 35bbaa1af0
139 changed files with 2032 additions and 1573 deletions

View File

@@ -1,32 +1,18 @@
# Configure for OpenAI
QodeAssist supports both OpenAI's standard Chat Completions API and the new Responses API, giving you access to the latest GPT models including GPT-5.1 and GPT-5.1-codex.
QodeAssist supports both OpenAI's standard Chat Completions API and the Responses API, giving you access to the latest GPT models.
## Standard OpenAI Configuration
1. Open Qt Creator settings and navigate to QodeAssist > Providers
2. Select the bundled **OpenAI (Chat Completions)** or **OpenAI (Responses API)** provider and enter your OpenAI API key
3. Go to QodeAssist > General > Agent Pipelines and assign OpenAI agents to the features you want:
- Code completion: **OpenAI Completion**
- Chat assistant: **OpenAI Chat**, **OpenAI Chat — Mini** (Chat Completions), or **OpenAI Chat — Responses**
- Chat compression: **OpenAI Compression**
- Quick refactor: **OpenAI Quick Refactor**
1. Open Qt Creator settings and navigate to the QodeAssist section
2. Go to Provider Settings tab and configure OpenAI api key
3. Return to General tab and configure:
- Set "OpenAI" as the provider for code completion or/and chat assistant
- Set the OpenAI URL (https://api.openai.com)
- Select your preferred model (e.g., gpt-4o, gpt-5.1, gpt-5.1-codex)
- Choose the OpenAI template for code completion or/and chat
<details>
<summary>Example of OpenAI settings: (click to expand)</summary>
<img width="829" alt="OpenAI Settings" src="https://github.com/user-attachments/assets/4716f790-6159-44d0-a8f4-565ccb6eb713" />
</details>
## OpenAI Responses API Configuration
The Responses API is OpenAI's newer endpoint that provides enhanced capabilities and improved performance. It supports the latest GPT-5.1 models.
1. Open Qt Creator settings and navigate to the QodeAssist section
2. Go to Provider Settings tab and configure OpenAI api key
3. Return to General tab and configure:
- Set "OpenAI Responses" as the provider for code completion or/and chat assistant
- Set the OpenAI URL (https://api.openai.com)
- Select your preferred model (e.g., gpt-5.1, gpt-5.1-codex)
- Choose the OpenAI Responses template for code completion or/and chat
To change the model or request parameters, duplicate the bundled agent on the
QodeAssist > Agents page (it extends the OpenAI base agent) and edit your copy.
Note for GPT-5 family models on Chat Completions: use `max_completion_tokens`
(not `max_tokens`) and `reasoning_effort` in the agent `[body]`; reasoning
models reject `temperature`.