You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update AI Prompts - remove deprecated assist action and add context fields #376
The Crowdin API updates the AI resource (prompts and prompt completions) in both Crowdin and Crowdin Enterprise. API client libraries should be updated accordingly.
Remove deprecated assist action (breaking):
The previously deprecated assist AI prompt action is fully removed: it is dropped from the prompt action enum, and the related assist prompt-completion resource and override-prompt-values schemas are removed. Clients should drop assist from any prompt action handling.
New context fields:
AI prompt forms: projectContext replaces the now-deprecated old project-context field, and prompt completion forms add projectDescription (deprecating the prior field).
Enterprise basic-mode prompt configs (pre_translate, alignment, qa_check) gain an organizationContext flag to include the organization name and internal description in the prompt context, with corresponding enterprise prompt-completion override-prompt-values resources.
Hi! I looked into this for the Java client before opening a PR, and wanted to share a finding.
Most of these changes don't seem to need typed changes in this SDK, because the AI prompt/completion structures are modeled loosely here:
The prompt action is a plain String (AiPrompt, AiPromptAddRequest) — there's no action enum to drop assist from.
config (prompt forms) and overridePromptValues (completion forms) are Map<String, Object>, so projectContext, organizationContext and the override-prompt-values schema changes are already expressible without code changes.
The one concrete typed change I can see is adding projectDescription to the completion resource (AiPromptCompletionRequest.AiPromptResource). There's also AiSetting.assistActionAiPromptId, which could be removed now that the assist action is gone (breaking).
Would you like a PR adding projectDescription (and optionally removing assistActionAiPromptId), or do you prefer to keep these as free-form Map/String in the Java client? Happy to send one either way.
Activity
GabrielBBaldez commentedon Jun 8, 2026
Hi! I looked into this for the Java client before opening a PR, and wanted to share a finding.
Most of these changes don't seem to need typed changes in this SDK, because the AI prompt/completion structures are modeled loosely here:
actionis a plainString(AiPrompt,AiPromptAddRequest) — there's noactionenum to dropassistfrom.config(prompt forms) andoverridePromptValues(completion forms) areMap<String, Object>, soprojectContext,organizationContextand the override-prompt-values schema changes are already expressible without code changes.The one concrete typed change I can see is adding
projectDescriptionto the completion resource (AiPromptCompletionRequest.AiPromptResource). There's alsoAiSetting.assistActionAiPromptId, which could be removed now that theassistaction is gone (breaking).Would you like a PR adding
projectDescription(and optionally removingassistActionAiPromptId), or do you prefer to keep these as free-formMap/Stringin the Java client? Happy to send one either way.andrii-bodnar commentedon Jun 9, 2026
Hi @GabrielBBaldez, thank you for looking into this! Let's address adding the
projectDescriptionand removingassistActionAiPromptId.GabrielBBaldez commentedon Jun 9, 2026
Done in #384 — added
projectDescriptionto the completion resource and removedassistActionAiPromptIdfromAiSetting. 🙌