mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 13:00:45 +00:00
Reduce WebUI/Gateway latency churn by avoiding redundant session reloads, carrying session keys through transcript update events, and deferring explicit media provider discovery. Includes changelog attribution and closes the referenced runtime latency issues.
52 lines
1.6 KiB
TypeScript
52 lines
1.6 KiB
TypeScript
import type { AuthProfileStore } from "../agents/auth-profiles/types.js";
|
|
import type { FallbackAttempt } from "../agents/model-fallback.types.js";
|
|
import type { OpenClawConfig } from "../config/types.openclaw.js";
|
|
import type {
|
|
GeneratedImageAsset,
|
|
ImageGenerationBackground,
|
|
ImageGenerationIgnoredOverride,
|
|
ImageGenerationNormalization,
|
|
ImageGenerationOutputFormat,
|
|
ImageGenerationProvider,
|
|
ImageGenerationProviderOptions,
|
|
ImageGenerationQuality,
|
|
ImageGenerationResolution,
|
|
ImageGenerationSourceImage,
|
|
} from "./types.js";
|
|
|
|
export type GenerateImageParams = {
|
|
cfg: OpenClawConfig;
|
|
prompt: string;
|
|
agentDir?: string;
|
|
authStore?: AuthProfileStore;
|
|
modelOverride?: string;
|
|
count?: number;
|
|
size?: string;
|
|
aspectRatio?: string;
|
|
resolution?: ImageGenerationResolution;
|
|
quality?: ImageGenerationQuality;
|
|
outputFormat?: ImageGenerationOutputFormat;
|
|
background?: ImageGenerationBackground;
|
|
inputImages?: ImageGenerationSourceImage[];
|
|
autoProviderFallback?: boolean;
|
|
/** Optional per-request provider timeout in milliseconds. */
|
|
timeoutMs?: number;
|
|
providerOptions?: ImageGenerationProviderOptions;
|
|
};
|
|
|
|
export type GenerateImageRuntimeResult = {
|
|
images: GeneratedImageAsset[];
|
|
provider: string;
|
|
model: string;
|
|
attempts: FallbackAttempt[];
|
|
normalization?: ImageGenerationNormalization;
|
|
metadata?: Record<string, unknown>;
|
|
ignoredOverrides: ImageGenerationIgnoredOverride[];
|
|
};
|
|
|
|
export type ListRuntimeImageGenerationProvidersParams = {
|
|
config?: OpenClawConfig;
|
|
};
|
|
|
|
export type RuntimeImageGenerationProvider = ImageGenerationProvider;
|