Skip to content

feat(ai): add AI Gateway methods support#252

Merged
andrii-bodnar merged 1 commit into
mainfrom
feature/issue-238_add-ai-gateway
Jun 8, 2026
Merged

feat(ai): add AI Gateway methods support#252
andrii-bodnar merged 1 commit into
mainfrom
feature/issue-238_add-ai-gateway

Conversation

@innomaxx

Copy link
Copy Markdown
Collaborator

Closes #238

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Crowdin API client support for the new AI Gateway provider methods, enabling SDK users to proxy/manage provider gateway requests via GET/POST/PUT/PATCH/DELETE for both regular and Enterprise endpoints (per #238).

Changes:

  • Added AI Gateway helper + request methods to AIResource and EnterpriseAIResource.
  • Added unit tests covering the new gateway path builder and request wrappers (including “no body” variants for write methods).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
crowdin_api/api_resources/ai/resource.py Implements AI Gateway path builder and CRUD-like gateway request wrappers for both standard and Enterprise resources.
crowdin_api/api_resources/ai/tests/test_ai_resources.py Adds tests validating gateway path construction and requester invocation for new methods.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crowdin_api/api_resources/ai/resource.py
Comment thread crowdin_api/api_resources/ai/resource.py
Comment thread crowdin_api/api_resources/ai/tests/test_ai_resources.py
Comment thread crowdin_api/api_resources/ai/tests/test_ai_resources.py
@innomaxx

innomaxx commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator Author

@andrii-bodnar please review and merge

@andrii-bodnar andrii-bodnar merged commit 4031d21 into main Jun 8, 2026
7 checks passed
@andrii-bodnar andrii-bodnar deleted the feature/issue-238_add-ai-gateway branch June 8, 2026 07:14
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 AI Gateway provider methods

3 participants