mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 09:02:16 +00:00
* feat: adapt image compression quality * refactor: move image limits into model metadata * test: cover adaptive image downscaling * test: cover image tool live providers * fix: apply media metadata to all image paths * fix: align providerless image compression * fix: add chutes runtime image limits * fix: optimize image data urls with model limits * fix: type media metadata merge * fix: optimize data url byte limits after decode * fix: preserve data url optimizer fallback * fix: keep low-side image compression fallbacks * fix: enforce data url image compression policy * fix: preserve gif data url media policy * fix: satisfy adaptive image type checks * test: keep cron provider-runtime mock current
15 lines
507 B
TypeScript
15 lines
507 B
TypeScript
import type { Api, Model } from "@earendil-works/pi-ai";
|
|
import type { ModelCompatConfig, ModelMediaInputConfig } from "../config/types.models.js";
|
|
|
|
/**
|
|
* Fully-resolved runtime model shape used after provider/plugin-owned
|
|
* discovery, overrides, and compat normalization.
|
|
*/
|
|
export type ProviderRuntimeModel = Omit<Model<Api>, "compat"> & {
|
|
compat?: ModelCompatConfig;
|
|
contextTokens?: number;
|
|
params?: Record<string, unknown>;
|
|
requestTimeoutMs?: number;
|
|
mediaInput?: ModelMediaInputConfig;
|
|
};
|