Skip to content

Workaround for lack of uniqueItems support#143

Merged
jnu merged 1 commit into
mainfrom
uniq2
May 15, 2026
Merged

Workaround for lack of uniqueItems support#143
jnu merged 1 commit into
mainfrom
uniq2

Conversation

@jnu
Copy link
Copy Markdown
Contributor

@jnu jnu commented May 15, 2026

uniqueItems is not supported in OpenAI structured outputs. Instead, we'll work around with a (relatively generous) maxItems directive to cut off loops, supplemental instructions to encourage uniqueness / brevity, and a client-side validator to dedupe citations.

@jnu jnu merged commit 8e8a619 into main May 15, 2026
5 checks passed
@jnu jnu deleted the uniq2 branch May 15, 2026 19:22
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.

1 participant