UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

23 lines • 1.43 kB
import type { Api, Model } from "@earendil-works/pi-ai"; /** The model fields the native image-generation gate and its cache key depend on. */ export type NativeImageGenModel = Pick<Model<Api>, "id" | "provider" | "api" | "baseUrl" | "compat">; export type NativeImageGenTarget = NativeImageGenModel | undefined; /** Whether native image generation injection is enabled for this process. */ export declare function isOpenAiImageGenEnabled(): boolean; /** * Whether the model's endpoint serves the OpenAI Responses `image_generation` * server tool. * * Unlike the web-search gate, `azure-openai-responses` defaults to FALSE: Azure * deployments expose image generation as a separate deployment rather than as a * Responses server tool, so azure opts in only through * `compat.supportsImageGeneration`. Proxied `openai-responses` endpoints default * to the client tool for the same reason they do for web search: a translating * gateway rejects the tool type it never implemented. * ChatGPT subscription requests use the same server tool on the official * HTTPS endpoint; third-party subscription proxies are not implicitly enabled. */ export declare function supportsNativeOpenAiImageGeneration(target: NativeImageGenTarget): boolean; /** Identity of the model an arbitration decision was made for. */ export declare function nativeImageGenModelKey(target: NativeImageGenTarget): string; //# sourceMappingURL=gate.d.ts.map