-
Notifications
You must be signed in to change notification settings - Fork 15
docs: [OpenAI] Update documentation and release notes for new api #354
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
| 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(); | ||
| ``` | ||
|
|
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.
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. |
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.
Its time we have a format to clarify which module a change is about?
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.
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
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.
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. |
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.
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
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
Context
AI/ai-sdk-java-backlog#172.
Feature scope:
Definition of Done
Functionality scope stated & coveredTests cover the scope aboveError handling created / updated & covered by the tests aboveAligned changes with the JavaScript SDK