litellm/tests/test_litellm/proxy/credential_endpoints
mateo-berri 3a46fa22ad refactor(ui): make LLM Credentials the one place to add provider credentials
The models page offered two ways to create the same Anthropic federation credential: the Add Provider wizard and the LLM Credentials modal. Only the wizard showed the public JWKS and ran discovery, so the two drifted. The wizard and its tab are gone

The credential modal now carries what only the wizard had. Its footer puts Cancel on the left and a Test Connection button beside Add or Update Credential on the right. Test Connection runs live model discovery: in Edit it tests the saved credential by name and disables while the form has unsaved changes; in Add it sends only an API key and API base inline, because every other value is server-owned and refused in a request body, and otherwise it stays disabled with a hint to add the credential first. A saved LiteLLM-signed credential shows its public JWKS with a copy button in Edit

The modal stores the provider in its display casing (Anthropic) while curl-created credentials store the litellm id, so discovery by name answered 400 and the JWKS export 404 for modal-created credentials. Both routes now normalize the stored value through one helper
2026-09-04 11:34:42 -07:00
..
test_endpoints.py refactor(ui): make LLM Credentials the one place to add provider credentials 2026-09-04 11:34:42 -07:00