Skip to content

Conversation

@rpanackal
Copy link
Member

Context

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

Feature scope:

  • Document new api in parallel to existing samples in guides
  • Update release notes to reflect latest additions

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

@rpanackal rpanackal self-assigned this Feb 27, 2025
@rpanackal rpanackal added the please-review Request to review a pull-request label Feb 27, 2025
Comment on lines 127 to 137
Since v1.4.0

```java
var request =
new OpenAiChatCompletionRequest(
OpenAiMessage.system("I'm fine, thank you!"),
OpenAiMessage.user("Hello, how are you?"));

var response = OpenAiClient.forModel(GPT_4O).chatCompletion(request).getContent();
```

Copy link
Member Author

Choose a reason for hiding this comment

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

Yet to add link to sample app as the latest service class not advertised and maintained in test package.

  • True for all new added samples

### 🔧 Compatibility Notes

- The constructors `UserMessage(MessageContent)` and `SystemMessage(MessageContent)` are removed. Use `Message.user(String)`, `Message.user(ImageItem)`, or `Message.system(String)` instead.
- [Orchestration] The constructors `UserMessage(MessageContent)` and `SystemMessage(MessageContent)` are removed. Use `Message.user(String)`, `Message.user(ImageItem)`, or `Message.system(String)` instead.
Copy link
Member Author

Choose a reason for hiding this comment

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

Its time we have a format to clarify which module a change is about?

Copy link
Member

Choose a reason for hiding this comment

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

I would say that it makes sense to put [module] in front if it is just one line. For multiple changes in the same line we should probably do what we did before:

  • Module
    - change 1
    - change 2

Copy link
Member

@Jonas-Isr Jonas-Isr left a comment

Choose a reason for hiding this comment

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

Just some very minor things.

Otherwise LGTM!

### 🔧 Compatibility Notes

- The constructors `UserMessage(MessageContent)` and `SystemMessage(MessageContent)` are removed. Use `Message.user(String)`, `Message.user(ImageItem)`, or `Message.system(String)` instead.
- [Orchestration] The constructors `UserMessage(MessageContent)` and `SystemMessage(MessageContent)` are removed. Use `Message.user(String)`, `Message.user(ImageItem)`, or `Message.system(String)` instead.
Copy link
Member

Choose a reason for hiding this comment

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

I would say that it makes sense to put [module] in front if it is just one line. For multiple changes in the same line we should probably do what we did before:

  • Module
    - change 1
    - change 2

Copy link
Member

@Jonas-Isr Jonas-Isr left a comment

Choose a reason for hiding this comment

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

LGTM

@rpanackal rpanackal merged commit 263b1de into main Feb 27, 2025
6 checks passed
@rpanackal rpanackal deleted the docs/openai-stable-conv branch February 27, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

please-review Request to review a pull-request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants