Skip to content

Conversation

newtork
Copy link
Contributor

@newtork newtork commented Aug 8, 2025

Constructors shall not be made public in #526

Why extra PR?

To allow for dedicated questions / suggestions, in case this comes up.

Copy link
Member

@rpanackal rpanackal left a comment

Choose a reason for hiding this comment

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

LGTM. Minor questions left.

@newtork newtork merged commit c186aea into chatcompletion-for-springopenai Aug 12, 2025
4 checks passed
@newtork newtork deleted the chatcompletion-for-springopenai2 branch August 12, 2025 15:49
n-o-u-r-h-a-n added a commit that referenced this pull request Aug 19, 2025
* first draft

* Align with docs

* Codestyle

* feat: [OpenAI] Spring AI integration

* test

* test

* Fixing errors in OpenAiChatOptions according to "Upgrade to Spring AI 1.0.0 (GA Version) (#503)"

* Fixing errors in OpenAiChatOptions according to "Upgrade to Spring AI 1.0.0 (GA Version) (#503)"

* Fixing SpringAiAgenticWorkflowService according to "Upgrade to Spring AI 1.0.0 (GA Version) (#503)".

* Implementation of completion and streamChatCompletion in SpringAiOpenAiService + their corresponding passed tests in SpringAiOpenAiTest class.

Regarding the OpenAiChatModel class it was just formatting, nothing changed.

* Removing a comment

* Removing a comment

* Chat Memory test working.

* Formatting for SpringAiOpenAiService.

* Removing unneccessary imports in SpringAiOpenAiService.

* Updating the toOpenAiRequest in OpenAiChatModel.java.

* Implementing the new approach
--> 4 methods in OpenAiChatCompletionRequest.java return only this now and other constructors other than main are removed for now.

* Editing the approach.

* Fix compilation and format and annotations and javadoc

* Remove unrelated code

* implementation hint

* Formatting

* Updating OpenAiChatOptions.java with our Config Object.

* Formatting

* Passing our Config Object as an input parameter for OpenAiChatOptions()

* Fixing NullPointerException in toOpenAiRequest method for ToolCallng Test to pass.

* Adding topK for the Config Class ??

* Formatting

* Update foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/spring/OpenAiChatModel.java

Co-authored-by: Alexander Dümont <[email protected]>

* Failing Test of testToolCallingWithoutExecution() in SpringAiOpenAiTest.java

* Resolving Reviewed Issues.

* Resolving Reviewed Issues.

* --> still having testToolCallingWithoutExecution() in SpringAiOpenAiTest.java failing.

--> still fix of null of message.getText() in toAssistantMessage() method in OpenAiChatModel.java pending.

* format

* format

* Removing wild cards imports

* Sucessful build of OpenAi

* Sucessful build of Spring Boot app.

* Formatting

* Removing this test for now.

* Fix nullcheck

* Fix unit test

* chore: Reduce constructor visibility in OpenAI / SpringAI PR (#531)

* Reduce constructors

* Update thresholds

* Update javadoc and factory name

* Replacing config.toolsExecutable with getter-usage + adding tolerate to withStop() method.

* 2

* Assistant message wiht tools calls

* unit test

* Creating OpenAiChatModelTest.java and updating the controller and index page.

* Formatting

* formatting

* Finishing the tests

* Added more options and metadata

* Formatting

* Fixing Format/Style (Minor).

* Fixing Format/Style (Minor).

* Updating the Release notes according to integrating SpringAI with our OpenAi Client.

* Update docs/release_notes.md

Co-authored-by: Charles Dubois <[email protected]>

* Handling JsonProcessingException

* Handling JsonProcessingException

* Handling JsonProcessingException

* Formatting

* protected extractOptions

---------

Co-authored-by: Jonas Israel <[email protected]>
Co-authored-by: Jonas-Isr <[email protected]>
Co-authored-by: I538344 <[email protected]>
Co-authored-by: Alexander Dümont <[email protected]>
Co-authored-by: SAP Cloud SDK Bot <[email protected]>
Co-authored-by: Alexander Dümont <[email protected]>
Co-authored-by: Roshin Rajan Panackal <[email protected]>
Co-authored-by: Charles Dubois <[email protected]>
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.

2 participants