feat(images): reuse named connections and image request settings

Preserve the reviewed tree while removing obsolete stacked branch history.

Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
This commit is contained in:
Xubin Renandchengyongru committed 2026-10-12 21:22:35 +08:00
1 parent 105b772203
commit 23941355a8
27 files changed
+381 -44

No files matched your search

+2
View File
@@ -1368,6 +1368,8 @@ export async function updateImageGenerationSettings(
default_aspect_ratio: update.defaultAspectRatio,
default_image_size: update.defaultImageSize,
max_images_per_turn: update.maxImagesPerTurn,
...(update.extraHeaders !== undefined ? { extra_headers: update.extraHeaders } : {}),
...(update.extraBody !== undefined ? { extra_body: update.extraBody } : {}),
},
);
}
+6
View File
@@ -802,6 +802,9 @@ export interface SettingsPayload {
default_image_size: string;
max_images_per_turn: number;
save_dir: string;
request_overrides_supported?: boolean;
extra_headers?: Record<string, string> | null;
extra_body?: Record<string, unknown> | null;
providers: Array<{
name: string;
label: string;
@@ -812,6 +815,7 @@ export interface SettingsPayload {
default_api_base?: string | null;
models?: string[];
default_model?: string | null;
uses_images_api?: boolean;
}>;
};
transcription?: {
@@ -1405,6 +1409,8 @@ export interface ImageGenerationSettingsUpdate {
defaultAspectRatio: string;
defaultImageSize: string;
maxImagesPerTurn: number;
extraHeaders?: string;
extraBody?: string;
}
export interface TranscriptionSettingsUpdate {