Skip to content

feat: add List Supported AI Provider Models support#631

Merged
andrii-bodnar merged 2 commits intomasterfrom
copilot/add-support-list-supported-ai-models
Mar 16, 2026
Merged

feat: add List Supported AI Provider Models support#631
andrii-bodnar merged 2 commits intomasterfrom
copilot/add-support-list-supported-ai-models

Conversation

Copy link
Contributor

Copilot AI commented Mar 16, 2026

Adds client support for the new List Supported AI Provider Models endpoints, which return enriched model metadata (capabilities, pricing, modalities, etc.) across all configured providers — as opposed to the existing per-provider model listing.

New methods

  • listAiOrganizationSupportedProviderModels(options?)GET /ai/providers/supported-models (Enterprise)
  • listAiUserSupportedProviderModels(userId, options?)GET /users/{userId}/ai/providers/supported-models (Crowdin)

Both accept optional providerType, enabled, and orderBy filters via a new ListSupportedProviderModelsOptions type.

New types

  • AiSupportedProviderModelResponse — full response schema including displayName, supportReasoning, intelligence, speed, price, modalities, contextWindow, maxOutputTokens, knowledgeCutoff, releaseDate, features
  • ListSupportedProviderModelsOptions — extends PaginationOptions with providerType: ProviderType, enabled: boolean, orderBy: string

Usage

// Enterprise
const models = await crowdin.ai.listAiOrganizationSupportedProviderModels({
  providerType: 'open_ai',
  enabled: true,
});

// Crowdin
const models = await crowdin.ai.listAiUserSupportedProviderModels(userId, {
  providerType: 'google_gemini',
  orderBy: 'intelligence desc',
});
Original prompt

This section details on the original issue you should resolve

<issue_title>Add support for List Supported AI Provider Models method</issue_title>
<issue_description>The Crowdin API has been extended with a new endpoint, allowing you to retrieve the list of supported AI models for a specific AI provider in your AI workflow.

The Crowdin API client libraries need to be updated to include this new endpoint.

References:

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: andrii-bodnar <29282228+andrii-bodnar@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for List Supported AI Provider Models method feat: add List Supported AI Provider Models support Mar 16, 2026
Copilot AI requested a review from andrii-bodnar March 16, 2026 14:27
@andrii-bodnar andrii-bodnar marked this pull request as ready for review March 16, 2026 14:27
@codecov
Copy link

codecov bot commented Mar 16, 2026

Codecov Report

❌ Patch coverage is 33.33333% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.84%. Comparing base (1dd461e) to head (effaacc).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/ai/index.ts 33.34% 0 Missing and 8 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #631      +/-   ##
==========================================
- Coverage   90.16%   89.84%   -0.32%     
==========================================
  Files          40       40              
  Lines        2083     2095      +12     
  Branches      243      251       +8     
==========================================
+ Hits         1878     1882       +4     
  Misses         82       82              
- Partials      123      131       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@andrii-bodnar andrii-bodnar merged commit 95d203d into master Mar 16, 2026
12 checks passed
@andrii-bodnar andrii-bodnar deleted the copilot/add-support-list-supported-ai-models branch March 16, 2026 14:31
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.

Add support for List Supported AI Provider Models method

2 participants