Skip to content

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

Open
innomaxx wants to merge 1 commit into
mainfrom
feature/issue-238_add-ai-gateway
Open

feat(ai): add AI Gateway methods support#252
innomaxx wants to merge 1 commit into
mainfrom
feature/issue-238_add-ai-gateway

Conversation

@innomaxx
Copy link
Copy Markdown
Collaborator

Closes #238

Copy link
Copy Markdown

Copilot AI left a comment

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
Copy link
Copy Markdown
Collaborator Author

innomaxx commented Jun 5, 2026

@andrii-bodnar please review and merge

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

2 participants