Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capability header #55

Merged
merged 4 commits into from May 7, 2024
Merged

Conversation

tdikland
Copy link
Contributor

@tdikland tdikland commented May 6, 2024

Which issue does this PR close?

Closes #26.

Rationale for this change

Changes are included in this PR

Are there any user-facing changes?

Copy link
Collaborator

@roeap roeap left a comment

Choose a reason for hiding this comment

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

LGTM! let one minor not that you may choose to address.

"responseformat" => {
capabilities.response_formats = capability_value
.split(',')
.flat_map(|s| s.trim().to_lowercase().parse::<ResponseFormat>().ok())
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: would it make sense to move the lower casing into the parse function such that all future code paths we may have handle that as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good spot! Should be resolved now:)

@roeap roeap merged commit d2dc4fb into delta-incubator:main May 7, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Support capabilities header
3 participants