WeblateOrg / WeblateOrg/weblate
Use structured output in LLM
Open
Area: Automatic translation
Waiting for: Milestone
- Dominant language
- Python
- Stars
- 6.1k
- Forks
- 1.4k
- Avg merge
- 9h 53m
- Merged PRs (30d)
- 395
Description
### Describe the problem
Currently we rely on the system prompt to let LLMs generate structured output. Some of the APIs allow defining the output structure and that would make it a stricter contract.
### Solution brainstorm
Use the platform API:
* https://developers.openai.com/api/docs/guides/structured-outputs
* https://platform.claude.com/docs/en/build-with-claude/structured-outputs
### Describe alternatives you have considered
_No response_
### Screenshots
_No response_
### Additional context
https://github.com/WeblateOrg/weblate/issues/19927
Contributor guide
Assessment
This issue has not been assessed yet.