Skip to content

Commit 74176f9

Browse files
committed
docs: use GPT-6 and GPT Image 2.6 models in examples
1 parent 75614ac commit 74176f9

10 files changed

Lines changed: 26 additions & 25 deletions

File tree

‎documentation/docs/tutorial/06-Adapters/03-image-generation-adapters.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ pnpm add @adminforth/image-generation-adapter-openai
1414

1515
Uses OpenAI image generation model `gpt-image` to generate images from text prompts.
1616

17-
Up to the winter 2026 OpenAI models are one of the most powerful image generation models available, especially GPT-Image-1.5, which is why we started with them.
17+
As of November 2026, OpenAI models are among the most powerful image generation models available, especially GPT Image 2.6, which is why we started with them.
1818

1919
```ts
2020
import ImageGenerationAdapterOpenAI from '@adminforth/image-generation-adapter-openai';
2121

2222
new ImageGenerationAdapterOpenAI({
2323
openAiApiKey: process.env.OPENAI_API_KEY as string,
24-
model: 'gpt-image-1',
24+
model: 'gpt-image-2.6-flare',
2525
extraParams: {
2626
quality: 'high',
2727
},

‎documentation/docs/tutorial/06-Adapters/05-ai-completion-adapters.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ import CompletionAdapterOpenAIResponses from '@adminforth/completion-adapter-ope
117117

118118
new CompletionAdapterOpenAIResponses({
119119
openAiApiKey: process.env.OPENAI_API_KEY as string,
120-
model: 'gpt-5.2',
120+
model: 'gpt-6.1-sol',
121121
extraRequestBodyParameters: {
122122
temperature: 0.7,
123123
reasoning: {
@@ -127,7 +127,7 @@ new CompletionAdapterOpenAIResponses({
127127
}),
128128
```
129129

130-
You can specify any GPT model you need. The default is `gpt-5-nano` as it is cheapest though may behave weakly.
130+
You can specify any GPT model you need. Without `model` the adapter uses `gpt-5-nano`, which is cheap but may behave weakly; `gpt-6-luna` is the cheapest GPT-6 model, and `gpt-6.1-terra` or `gpt-6.1-sol` are stronger.
131131

132132
By default, this adapter uses the OpenAI `responses` API (`v1/responses`) unless `useCompletionApi` is set to `true`. If `useCompletionApi` is `true`, it uses the older Chat Completions API (`v1/chat/completions`).
133133

‎documentation/docs/tutorial/09-Plugins/01-agent.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ globalPlugins: [
263263
name: 'Smart Thinking',
264264
completionAdapter: new CompletionAdapterOpenAIResponses({
265265
openAiApiKey: process.env.OPENAI_API_KEY as string,
266-
model: 'gpt-5.4',
266+
model: 'gpt-6.1-sol',
267267
extraRequestBodyParameters: {
268268
reasoning: {
269269
effort: 'xhigh',

‎documentation/docs/tutorial/09-Plugins/05-0-upload.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ Requesting an upload URL requires permission to write the record the file belong
346346
## Image generation
347347
348348
Upload plugin supports AI generation for images. Yo use it you need to install image generation adapter.
349-
For example for OpenAI models like `gpt-image-1.5` (or old `DALL-E` models):
349+
For example for OpenAI models like `gpt-image-2.6-flare`:
350350
351351
```bash
352352
pnpm add @adminforth/image-generation-adapter-openai
@@ -368,7 +368,7 @@ new UploadPlugin({
368368
//diff-add
369369
openAiApiKey: process.env.OPENAI_API_KEY as string,
370370
//diff-add
371-
model: 'gpt-image-1.5',
371+
model: 'gpt-image-2.6-flare',
372372
//diff-add
373373
}),
374374
//diff-add
@@ -391,7 +391,7 @@ new ImageGenerationAdapterOpenAI({
391391
//diff-add
392392
openAiApiKey: process.env.OPENAI_API_KEY as string,
393393
//diff-add
394-
model: 'gpt-image-1.5',
394+
model: 'gpt-image-2.6-flare',
395395
//diff-add
396396
extraParams: {
397397
//diff-add

‎documentation/docs/tutorial/09-Plugins/10-i18n.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default {
104104

105105
completeAdapter: new CompletionAdapterOpenAIResponses({
106106
openAiApiKey: process.env.OPENAI_API_KEY as string,
107-
model: 'gpt-5-nano',
107+
model: 'gpt-6-luna',
108108
extraRequestBodyParameters: {
109109
// for UI translation it is better to lower down the temperature. Less creative and more accurate
110110
temperature: 0.5,
@@ -376,7 +376,7 @@ For English it will use 2 pluralization forms (1 and other), for Slavic language
376376
377377
![alt text](image-4.png)
378378
379-
> 🚧 Cheaper LLM models like `gpt-5-nano` might still purely generate pluralisation slavic forms, even despite the fact plugin carefully
379+
> 🚧 Cheaper LLM models like `gpt-6-luna` might still purely generate pluralisation slavic forms, even despite the fact plugin carefully
380380
instructs the model and gives it examples. So if you are using cheap model we recommend reviewing generated translations for plurals and fixing them manually. You can use filter with '|' parameter to filter out strings with pluralisation.
381381
382382

‎documentation/docs/tutorial/09-Plugins/14-text-complete.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const admin = new AdminForth({
5050
//diff-add
5151
openAiApiKey: process.env.OPENAI_API_KEY as string,
5252
//diff-add
53-
model: 'gpt-5-nano', // default "gpt-5-nano"
53+
model: 'gpt-6-luna', // without model the adapter uses "gpt-5-nano"
5454
//diff-add
5555
extraRequestBodyParameters: {
5656
//diff-add

‎documentation/docs/tutorial/09-Plugins/17-bulk-ai-flow.md‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ new BulkAiFlowPlugin({
232232
actionName: 'Translate surnames',
233233
textCompleteAdapter: new CompletionAdapterOpenAIResponses({
234234
openAiApiKey: process.env.OPENAI_API_KEY as string,
235-
model: 'gpt-5-nano',
235+
model: 'gpt-6-luna',
236236
extraRequestBodyParameters: {
237237
temperature: 0.7
238238
}
@@ -283,7 +283,7 @@ new BulkAiFlowPlugin({
283283
actionName: 'Generate cartoon avatars',
284284
imageGenerationAdapter: new ImageGenerationAdapterOpenAI({
285285
openAiApiKey: process.env.OPENAI_API_KEY as string,
286-
model: 'gpt-image-1.5',
286+
model: 'gpt-image-2.6-flare',
287287
}),
288288
attachFiles: async ({ record }) => {
289289
if (!record.user_photo) {
@@ -311,16 +311,17 @@ new BulkAiFlowPlugin({
311311
|-------|-------------|
312312
| `'low'` | Fastest generation, lowest cost. Good for drafts or high-volume batch jobs where speed matters more than visual fidelity. |
313313
| `'medium'` | Balanced quality and speed. A sensible default for most use cases. |
314-
| `'high'` | Best image quality, slowest and most expensive. Use for final promotional assets or when visual detail is critical. |
314+
| `'high'` | High fidelity. Use for final promotional assets or when visual detail is critical. |
315+
| `'xhigh'`, `'max'` | GPT Image 2.6 levels above `'high'`: finest detail, slowest and most expensive. |
315316
316317
```ts
317318
new ImageGenerationAdapterOpenAI({
318319
openAiApiKey: process.env.OPENAI_API_KEY as string,
319-
model: 'gpt-image-1',
320+
model: 'gpt-image-2.6-flare',
320321
//diff-add
321322
extraParams: {
322323
//diff-add
323-
quality: 'low', // 'low' | 'medium' | 'high'
324+
quality: 'low', // 'low' | 'medium' | 'high' | 'xhigh' | 'max'
324325
//diff-add
325326
},
326327
}),
@@ -335,21 +336,21 @@ new ImageGenerationAdapterOpenAI({
335336
```ts
336337
const lowQualityImages = new ImageGenerationAdapterOpenAI({
337338
openAiApiKey: process.env.OPENAI_API_KEY as string,
338-
model: 'gpt-image-1',
339+
model: 'gpt-image-2.6-flare',
339340
extraParams: { quality: 'low' },
340341
});
341342
const highQualityImages = new ImageGenerationAdapterOpenAI({
342343
openAiApiKey: process.env.OPENAI_API_KEY as string,
343-
model: 'gpt-image-1',
344+
model: 'gpt-image-2.6-flare',
344345
extraParams: { quality: 'high' },
345346
});
346347
const fastText = new CompletionAdapterOpenAIResponses({
347348
openAiApiKey: process.env.OPENAI_API_KEY as string,
348-
model: 'gpt-5-nano',
349+
model: 'gpt-6-luna',
349350
});
350351
const smartText = new CompletionAdapterOpenAIResponses({
351352
openAiApiKey: process.env.OPENAI_API_KEY as string,
352-
model: 'gpt-6-luna',
353+
model: 'gpt-6.1-terra',
353354
});
354355

355356
new BulkAiFlowPlugin({

‎documentation/docs/tutorial/09-Plugins/26-RichEditor.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ To get completion suggestions for the text in the editor, you can use the `compl
130130
//diff-add
131131
openAiApiKey: process.env.OPENAI_API_KEY as string,
132132
//diff-add
133-
model: 'gpt-5-nano', //gpt-5-nano is a default (cheapest one)
133+
model: 'gpt-6-luna', // the cheapest GPT-6 model; without model the adapter uses gpt-5-nano
134134
extraRequestBodyParameters: {
135135
//diff-add
136136
temperature: 0.7 //Model temperature

‎documentation/docs/tutorial/10-Advanced/01-plugin-development.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export interface PluginOptions extends PluginsCommonOptions {
9595
//diff-add
9696
* Model name. Go to https://platform.openai.com/docs/models, select model and copy name.
9797
//diff-add
98-
* Default is `gpt-5-nano`. Use e.g. more expensive `gpt-5.2` for more powerful model.
98+
* Default is `gpt-6-luna`. Use e.g. more expensive `gpt-6.1-sol` for more powerful model.
9999
//diff-add
100100
*/
101101
//diff-add
@@ -268,7 +268,7 @@ Let's define API endpoint in our plugin:
268268
//diff-add
269269
body: JSON.stringify({
270270
//diff-add
271-
model: this.options.model || 'gpt-5-nano',
271+
model: this.options.model || 'gpt-6-luna',
272272
//diff-add
273273
messages: [{ role: 'user', content, }],
274274
//diff-add

‎documentation/static/img/gen.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ do
66
# -H "Content-Type: application/json" \
77
# -H "Authorization: Bearer $OPENAI_TOKEN" \
88
# -d '{
9-
# "model": "dall-e-3",
9+
# "model": "gpt-image-2.6-flare",
1010
# "prompt": "A photorealistic image of a cute kitty lying on top of a database symbol. Kitty should have eyes open. The database should be represented as a cylindrical shape, and the kitty should look relaxed and content, possibly curled up or stretched out.",
1111
# "n": 1,
1212
# "size": "1024x1024"
@@ -16,7 +16,7 @@ do
1616
-H "Content-Type: application/json" \
1717
-H "Authorization: Bearer $OPENAI_TOKEN" \
1818
-d '{
19-
"model": "dall-e-3",
19+
"model": "gpt-image-2.6-flare",
2020
"prompt": "A photorealistic image of a cute kitty playing with nice rectangle box. Box is rounded and has CSS on it. The kitty should look playful and curious",
2121
"n": 1,
2222
"size": "1024x1024"

0 commit comments

Comments
 (0)