-
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
[Orchestration] OSS Generator Improvements #158
[Orchestration] OSS Generator Improvements #158
Conversation
JsonParser parser, DeserializationContext context, JavaType concreteType) throws IOException { | ||
var defaultDeserializer = context.findRootValueDeserializer(concreteType); | ||
return (LLMModuleResult) defaultDeserializer.deserialize(parser, context); | ||
return mapper.readValue(rootNode.toString(), LLMModuleResultSynchronous.class); |
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.
As discussed we'll only consider one implementation for the interface during deserialization.
I'm only wondering whether this can be solved in an easier way than dedicated deserializer.
@javax.annotation.Generated( | ||
value = "org.openapitools.codegen.languages.JavaClientCodegen", | ||
comments = "Generator version: 7.9.0") |
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/Minor)
Still wondering whether this can be disabled?
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.
LGTM
* All hail the new orchestration client * Leftovers * Update code generatino ADR * Minor comments * Formatting * Add javadoc and logging * Added. More. Javadoc. * Update sample HTML page * Switch to error for empty content filter configs * Simplify Exception * Fix finish reason * Fix type of Orchestration Response Messages * Minor improvements * Switch to deployment * Update pom for using OSS generator * Using original orchestration spec. Test contain descriminator * Used OpenAPI generator for orchestration * Using discriminator spec everywhere. test success. * LLMModule specific deserializer ready. Test success. * Generalized Fallback deserializer ready. Test success. * OSS generator on customer facing orchestration spec - Introduce a generic fallback and LLMModuleResult specific deserializers. - Generator ignoring all interfaces - Adapt jackson annotations * Merging changes from main * Merging changes from main * Merging changes from main * Formatting * Clean up - Remove Generic fallback deserializer - Beta Annotation on all concrete model classes. - Introduce Mixin to override model annotations - Improve variable naming * Update generated models * Add test and improve deserializer - Make deserializer lenient to allowed values * [Orchestration] OSS Generator Improvements (#158) * Simplifications and cleanup * Remove parsing for streaming * Reduce visibility of mixin class * replace solution with custom deserializer to mixin * remove unnecessary dependency jackson-databind-nullable * Minor newline-reduction * Minor syntax sugar --------- Co-authored-by: Matthias Kuhr <matthias.kuhr@sap.com> Co-authored-by: SAP Cloud SDK Bot <cloudsdk@sap.com> Co-authored-by: Roshin Rajan Panackal <roshin.rajan.panackal@sap.com> Co-authored-by: I538344 <charles.dubois@sap.com> Co-authored-by: Matthias Kuhr <52661546+MatKuhr@users.noreply.github.com> Co-authored-by: Alexander Dümont <alexander_duemont@web.de> Co-authored-by: Alexander Dümont <22489773+newtork@users.noreply.github.com>
Context
-Dgenerate
property flagAlso contains a merge from main branch