Skip to content

Conversation

domenic
Copy link
Collaborator

@domenic domenic commented May 21, 2025

The previous IDL had an invalid union of two sequence<dictionaries>, which are not distinguishable.

This new approach is mostly the same. However, it also allows mixtures of shorthand and non-shorthand contents, e.g. [{ role: "user", content: "Foo" }, { role: "user", content: [{ type: "text", value: "Bar" }] }]. That seems like a good thing.

@michaelwasserman PTAL

The previous IDL had an invalid union of two sequence<dictionaries>, which are not distinguishable.

This new approach is mostly the same. However, it also allows mixtures of shorthand and non-shorthand contents, e.g. [{ role: "user", content: "Foo" }, { role: "user", content: [{ type: "text", value: "Bar" }] }]. That seems like a good thing.
Copy link

@michaelwasserman michaelwasserman left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@domenic domenic merged commit b1deb6e into main May 21, 2025
1 check passed
@domenic domenic deleted the fix-dictionaries branch May 21, 2025 05:50
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.

2 participants