Skip to content
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

#30361: allowing stream chat to dotAI #30377

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

victoralfaro-dotcms
Copy link
Contributor

@victoralfaro-dotcms victoralfaro-dotcms commented Oct 17, 2024

Using a different approach, besides evaluating actual content, we know evaluate http status code in the case of stream mode.

This PR fixes: #30361

@victoralfaro-dotcms victoralfaro-dotcms force-pushed the 30361-enhance-dotai-stream-chat branch from b98ee1a to cf4a7c0 Compare October 24, 2024 20:17
@victoralfaro-dotcms victoralfaro-dotcms marked this pull request as ready for review October 24, 2024 20:17
@oidacra oidacra self-requested a review October 24, 2024 23:21
@victoralfaro-dotcms victoralfaro-dotcms added this pull request to the merge queue Oct 24, 2024
Merged via the queue into main with commit f2fab7c Oct 25, 2024
35 checks passed
@victoralfaro-dotcms victoralfaro-dotcms deleted the 30361-enhance-dotai-stream-chat branch October 25, 2024 00:37
final OutputStream incoming) {
final JSONObjectAIRequest jsonRequest = AIClient.useRequestOrThrow(request);
final boolean isStream = AIClientStrategy.isStream(jsonRequest);
final OutputStream output = Optional.ofNullable(incoming).orElseGet(ByteArrayOutputStream::new);
Copy link
Contributor

Choose a reason for hiding this comment

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

not bad

Copy link
Contributor

@jdotcms jdotcms left a comment

Choose a reason for hiding this comment

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

Good

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.

Enhance Stream Chat to Stream Data in Chunks Based on HTTP Status Evaluation
4 participants