Skip to main content

Save the current user's AI provider preferences

PUT 

/api/auth/sub2api/provider-preference

Save the Sub2API group IDs opened by the administrator in order. groups for GET /api/auth/sub2api/catalog and credentials for GET /api/auth/sub2api/llm-credentials use the same order; the run directory skips the currently unavailable configuration, but does not retry across provider after the model request has already begun. New groups that are not committed are appended in the default group ID order; an empty array removes user preferences and restores the default order.

Request

Responses

Returns the current user AI configuration sorted by the most recent preferences.