Skip to content

auth.status

How many models pi can use with omfp’s credentials, counted again on every call (a changed count is published as models_changed), and keysFile, omfp’s auth.json, where an API key goes (PRT-140).

/** `auth.status` params (PRT-140). */
export type AuthStatusParams = {
/** Accepted and ignored: the daemon counts the usable models again on every call anyway. */
recheck?: boolean;
};
/**
* `auth.status` result (PRT-140): how many models pi can use with omfp's credentials, counted on every call, and
* where an API key goes.
*/
export type AuthStatus = {
/**
* omfp's credentials file on the daemon's host, `<data>/pi-agent/auth.json` in pi's `AuthStorage` format (D-35),
* where an `api_key` credential gives pi an API key.
*/
keysFile: string;
/**
* How many models pi can use: of a provider a credential authenticates (a login or key omfp stored, or a key from
* the environment) or of a keyless one. `0` on a fresh install, where no thread can run until a login.
*/
models: number;
};