Provider keys
Reference for client.provider_keys in the Future AGI Python and TypeScript SDKs: provider_keys.list.
client.provider_keys on fi.Client (Python) and client.providerKeys on Client from @future-agi/sdk (TypeScript). The models these methods return are on Gateway response models; how arguments, pagination, errors and strict mode work is in the overview.
Methods
| Method | Description |
|---|---|
provider_keys.list | List the model-provider API keys configured for the organization (values are masked). |
client.provider_keys
provider_keys.list
List the model-provider API keys configured for the organization (values are masked).
/model-hub/api-keys/ Paginated: returns a pager (how pagination works)
for item in client.provider_keys.list():
print(item)for await (const item of client.providerKeys.list()) {
console.log(item);
} Signature
client.provider_keys.list(
*,
limit: int | None | NotGiven = NOT_GIVEN,
extra_query: dict[str, Any] | None = None,
options: RequestOptions | None = None,
) -> SyncPager[models.ApiKeyResponse]client.providerKeys.list(params: ProviderKeysListParams = {}, options?: RequestOptions): Pager<models.ApiKeyResponse>
export interface ProviderKeysListParams {
/** Number of results to return per page. */
limit?: number | null;
} Parameters
Number of results to return per page.
The pager sends page itself; pass limit to change the page size.
Returns
A pager of ApiKeyResponse items: iterate it, or call to_list() (Python) / toArray() (TypeScript).
Questions & Discussion