pi-openai-toolkit 0.14.4 → 0.14.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +119 -147
- package/README.zh.md +119 -151
- package/package.json +127 -127
- package/src/config.ts +621 -592
- package/src/context-management/codex-provider.ts +260 -260
- package/src/context-management/history-notes.ts +325 -325
- package/src/context-management/types.ts +161 -161
- package/src/image-generation/extension.ts +19 -2
- package/src/image-generation/protocol.ts +473 -405
- package/src/image-generation/service.ts +249 -243
- package/src/image-generation/types.ts +189 -184
- package/src/responses-headers.ts +108 -108
- package/src/runtime.ts +477 -477
- package/src/types.ts +11 -0
package/src/types.ts
CHANGED
|
@@ -107,6 +107,12 @@ export type WebSearchConfig = {
|
|
|
107
107
|
|
|
108
108
|
export type ImageGenerationConfig = {
|
|
109
109
|
enabled: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Bare `image_generation` tool model ids this toolkit may send, without a `provider/` prefix.
|
|
112
|
+
* The first entry is the default; `openai_generate_image`'s optional `model` argument may
|
|
113
|
+
* select any other entry in this order-preserving list.
|
|
114
|
+
*/
|
|
115
|
+
models: string[];
|
|
110
116
|
};
|
|
111
117
|
|
|
112
118
|
/** `side-effect` reviews bash/write/edit plus extras; `all` reviews every tool call. */
|
|
@@ -527,8 +533,13 @@ export const DEFAULT_WEB_SEARCH_CONFIG: WebSearchConfig = {
|
|
|
527
533
|
models: [],
|
|
528
534
|
};
|
|
529
535
|
|
|
536
|
+
/** Single source of truth for the hosted image model used when nothing is configured. */
|
|
537
|
+
export const DEFAULT_IMAGE_GENERATION_MODEL = "gpt-image-2.5";
|
|
538
|
+
export const DEFAULT_IMAGE_GENERATION_MODELS: readonly string[] = [DEFAULT_IMAGE_GENERATION_MODEL];
|
|
539
|
+
|
|
530
540
|
export const DEFAULT_IMAGE_GENERATION_CONFIG: ImageGenerationConfig = {
|
|
531
541
|
enabled: false,
|
|
542
|
+
models: [...DEFAULT_IMAGE_GENERATION_MODELS],
|
|
532
543
|
};
|
|
533
544
|
|
|
534
545
|
export const DEFAULT_AUTO_MODE_CONFIG: AutoModeConfig = {
|