-
Notifications
You must be signed in to change notification settings - Fork 15
chore: [OpenAI] use code generation #370
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
Conversation
...om/sap/ai/sdk/foundationmodels/openai/generated/model/ChatCompletionResponseMessageRole.java
Show resolved
Hide resolved
.../foundationmodels/openai/generated/model/CreateChatCompletionStreamResponseChoicesInner.java
Show resolved
Hide resolved
# Conflicts: # .pipeline/spotbugs-exclusions.xml
| public boolean equals(@Nullable final Object o) { | ||
| public boolean equals(@Nullable final java.lang.Object o) { |
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.
(Question)
Why is this change necessary/happening?
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.
Interesting. Our generator has always (i.e. 2+ years) generated java.lang.Object.
What happened?
My assumption is: When I originally pushed the model classes, I generated them once in Cloud SDK repo. Then I moved them to AI SDK. Very likely, IntelliJ did some reduction / unintentional improvement, to remove the redundant FQN for Object.
Why would we want
java.lang.Objectin the first place?
Because some schema components may be called "Object" in the spec, leading to "Object" being generated. It's not a reserved keyword in java. Therefore, safest approach is to reference everything with fully-qualified-name.
Jonas-Isr
left a comment
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
Blocked Waiting for release of SAP Cloud SDK
5.18.0Context
https://github.com/SAP/ai-sdk-java-backlog/issues/171
Generate OpenAI 2024-10-21 automatically
Depends on SAP/cloud-sdk-java#745
Feature scope:
Definition of Done
Tests cover the scope aboveError handling created / updated & covered by the tests aboveAligned changes with the JavaScript SDKDocumentation updatedRelease notes updated