UNPKG

@code-yeongyu/senpi

Version:

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

16 lines • 1.71 kB
import { type AnyModel, type Api, type AuthCheck, type Model, type ProviderHeaders } from "@earendil-works/pi-ai"; import type { ModelsJsonProvider } from "./model-config.ts"; import type { AuthStatus, ProviderConfigInput } from "./provider-composer.ts"; export declare function resolveConfiguredModelHeaders(model: AnyModel, config: ModelsJsonProvider | undefined, extension: ProviderConfigInput | undefined, env?: Record<string, string>): Promise<Record<string, string> | undefined>; /** Configured provider and model headers, resolved off the event loop. */ export declare function resolveCompatibilityRequestHeaders(model: Model<Api>, config: ModelsJsonProvider | undefined, extension: ProviderConfigInput | undefined, env?: Record<string, string>): Promise<ProviderHeaders | undefined>; /** * A provider whose only credential is a configured header: models.json or an extension names credential * headers and no API key, and the provider's own auth `check` (from the last availability pass) fell back * to those headers rather than reporting a key of its own, such as a built-in provider's env key * (senpi#5707). Before any availability pass there is no check to read; the provider then does not read * as header-only, so image generation stays offered and a missing key surfaces at use. */ export declare function configuredAuthIsHeaderOnly(config: ModelsJsonProvider | undefined, extension: ProviderConfigInput | undefined, check: Pick<AuthCheck, "source"> | undefined): boolean; export declare function configuredRequestAuthStatus(config: ModelsJsonProvider | undefined, extension: ProviderConfigInput | undefined): AuthStatus | undefined; //# sourceMappingURL=provider-request-auth.d.ts.map