Skip to content

fix(providers): fetch project-level LiteLLM integrations from /v1/settings/user/available#1

Open
AntonYeromin wants to merge 4 commits into
mainfrom
fix/sso-project-level-litellm-integrations
Open

fix(providers): fetch project-level LiteLLM integrations from /v1/settings/user/available#1
AntonYeromin wants to merge 4 commits into
mainfrom
fix/sso-project-level-litellm-integrations

Conversation

@AntonYeromin

Copy link
Copy Markdown
Owner

Summary

Fixes EPMCDME-10657: project-level LiteLLM integrations (setting_type=PROJECT) were not returned by GET /v1/settings/user, which only returns user-level settings. CLI always reported "No LiteLLM integrations configured for project" even when a project-level integration existed and worked fine in the UI.

Changes

  • Added USER_SETTINGS_AVAILABLE endpoint constant for /v1/settings/user/available
  • After fetching user-level integrations, supplementary fetch from the available endpoint with server-side LiteLLM filter (consistent with primary endpoint)
  • Deduplicate by ID before merging project-level integrations into result set
  • Error is non-fatal: if the available endpoint is unreachable, user-level integrations are still returned
  • Use logger.debug() + sanitizeLogArgs() for error logging instead of raw console.log
  • Bump CLAUDE_SUPPORTED_VERSION2.1.56, CLAUDE_MINIMUM_SUPPORTED_VERSION2.1.41

Impact

Users whose LiteLLM integrations are configured at the project level will now see them listed and available for selection in the CLI, matching the UI behavior.

Checklist

  • Self-reviewed
  • Manual testing performed
  • Documentation updated (if needed)
  • No breaking changes (or clearly documented)

AntonYeromin and others added 4 commits February 25, 2026 16:54
…ings/user/available call

GET /v1/settings/user/available returns both user-level and project-level
integrations in one call — no pagination, no merging required.
Remove paginated USER_SETTINGS loop, the secondary available-endpoint
block, unused logger/sanitizeLogArgs imports, and the endpointPath
parameter from fetchCodeMieIntegrations.

Generated with AI

Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
Replaced with USER_SETTINGS_AVAILABLE in CODEMIE_ENDPOINTS and updated
the integration test assertion accordingly.

Generated with AI

Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant