Skip to content

Conversation

@n-o-u-r-h-a-n
Copy link
Contributor

@n-o-u-r-h-a-n n-o-u-r-h-a-n commented Aug 22, 2025

--> Stabilizing the new api

With the exception of:

  • Error
  • Exception
  • OpenAiClient#withApiVersion

Context

AI/ai-sdk-java-backlog#280.

OpenAiController was using the old OpenAiService class and there were 2 service classes.

Feature scope:

  • Deprecating the old OpenAiService Class and renaming it to OpenAiServiceDeprecated.
  • Renaming OpenAiServiceV2 class to OpenAiService.
  • Updating the controller to use OpenAiService updated one.
  • Renaming two equivalent service test classes.
  • Removing all `@Beta´ annotations from OpenAiClient class.

Definition of Done

  • Functionality scope stated & covered
  • Tests cover the scope above
  • Error handling created / updated & covered by the tests above
  • Aligned changes with the JavaScript SDK
  • Documentation updated
  • Release notes updated

@n-o-u-r-h-a-n
Copy link
Contributor Author

Documentation was carefully reviewed and tested locally , no updates needed as the navigation links navigate to the correct service class because the new service class has the same name as old one OpenAiService and old one was renamed to OpenAiServiceDeprecated.

* @param apiVersion the API version to target.
* @return a new client.
*/
@Beta
Copy link
Contributor

Choose a reason for hiding this comment

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

(Minor)

Would keep Beta since this is for edge-cases (and we are not sure about implications?)

Copy link
Contributor

@CharlesDuboisSAP CharlesDuboisSAP left a comment

Choose a reason for hiding this comment

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

LGTM, I would still merge advertising-new-api2 into this branch

* Stabilize request and response classes

* Stabilize tool and embedding classes

* Stabilize tool util
@newtork newtork changed the title chore: `@Beta´ reduction and advertising new api chore: @Beta reduction and advertising new api Aug 27, 2025
@newtork newtork changed the title chore: @Beta reduction and advertising new api chore: [OpenAI] @Beta reduction and advertising new api Aug 27, 2025
@newtork newtork merged commit 59b919e into main Aug 28, 2025
7 checks passed
@newtork newtork deleted the advertising-new-api branch August 28, 2025 08:16
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.

5 participants