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/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 = {