Skip to content

feat!: add projectDescription to AI prompt completions and remove assistActionAiPromptId#384

Merged
andrii-bodnar merged 1 commit into
crowdin:masterfrom
GabrielBBaldez:feat/ai-prompt-context
Jun 9, 2026
Merged

feat!: add projectDescription to AI prompt completions and remove assistActionAiPromptId#384
andrii-bodnar merged 1 commit into
crowdin:masterfrom
GabrielBBaldez:feat/ai-prompt-context

Conversation

@GabrielBBaldez

Copy link
Copy Markdown
Contributor

Addresses #376 for the Java client, per the discussion on the issue.

  • Adds projectDescription to the AI prompt completion resource (AiPromptCompletionRequest.AiPromptResource).
  • Removes assistActionAiPromptId from AiSetting, now that the assist AI prompt action is gone (breaking).

The other parts of #376 (the assist action enum, override-prompt-values schemas, projectContext / organizationContext) don't require typed changes in this SDK, because the prompt action, config, and overridePromptValues are modeled as free-form String / Map<String, Object> (see my earlier note on the issue). The project-level assistActionAiPromptId on the Projects resource is left unchanged, as it's outside this issue's scope.

Tests

  • generateAiPromptCompletionTest now sets projectDescription; getAiSettingTest / editAiSettingTest updated for the removed field.
  • ./gradlew test passes.

Closes #376

…istActionAiPromptId

Add projectDescription to the AI prompt completion resource, and remove the assistActionAiPromptId field from AiSetting now that the assist AI prompt action is gone.

BREAKING CHANGE: AiSetting.assistActionAiPromptId is removed.

Closes crowdin#376

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

Updates the Java SDK’s AI prompt completion request model to include the new projectDescription context field, and removes the deprecated assistActionAiPromptId from AiSetting to match the upstream API breaking change described in #376.

Changes:

  • Added projectDescription to AiPromptCompletionRequest.AiPromptResource and updated the prompt-completion request fixture + test to serialize it.
  • Removed assistActionAiPromptId from AiSetting and updated AI settings response/request fixtures and tests accordingly.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/main/java/com/crowdin/client/ai/model/AiPromptCompletionRequest.java Adds projectDescription to the prompt completion resources payload model.
src/main/java/com/crowdin/client/ai/model/AiSetting.java Removes the deprecated assistActionAiPromptId field from the AI settings model.
src/test/java/com/crowdin/client/ai/AIApiTest.java Updates tests to set projectDescription and stop asserting/patching the removed assistActionAiPromptId.
src/test/resources/api/ai/promptCompletionRequest.json Updates request fixture to include projectDescription under resources.
src/test/resources/api/ai/getAiSettingResponse.json Updates response fixture to remove assistActionAiPromptId.
src/test/resources/api/ai/editAiSettingRequest.json Updates patch request fixture to target /editorSuggestionAiPromptId instead of the removed field.

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

@andrii-bodnar andrii-bodnar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@GabrielBBaldez thank you for the contribution!

@andrii-bodnar andrii-bodnar merged commit ac448de into crowdin:master Jun 9, 2026
2 checks passed
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.

Update AI Prompts - remove deprecated assist action and add context fields

3 participants