-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: [Orchestration] Update to Orchestration Spec 0.36.1 #203
Conversation
$ref: "#/components/schemas/AzureThreshold" | ||
"Sexual": | ||
$ref: "#/components/schemas/AzureThreshold" | ||
"Violence": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Comment)
I'm wondering what makes them using "
for property keys here, but nowhere else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My best guess is "historical reasons". git blame tells me this is from (one of) the original commits on content filtering 8 months ago.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's a PR that addresses this: https://github.tools.sap/AI/llm-orchestration/pull/832
(code generation seems unaffected)
anyOf: | ||
- enum: | ||
- document_grounding_service | ||
- {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Comment/Question)
wtf is this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done for future extensibility. Without the anyof, users may complain if the enum allows additional values in the future. Not sure how strong this argument really is though..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See also this (very related) carfuffle: OpenAPITools/openapi-diff#303
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, we are also setting the flag enumUnknownDefaultCase
for exactly this reason..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for response on the question, why use 0.36.1
when 0.40.1
is live on prod already.
Context
AI/ai-sdk-java-backlog#119.
Feature scope:
Definition of Done
Error handling created / updated & covered by the tests aboveDocumentation updatedRelease notes updated