Skip to content

Question about Streaming on Assistants API #93

Closed Answered by sashirestela
hlzhangxt asked this question in Q&A
Discussion options

You must be logged in to vote

@hlzhangxt I've prepared an example using the latest version of simple-openai (2.3.0). There you can learn how to handle the scenario that you asked:

package io.github.sashirestela.openai.playground;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;

import io.github.sashirestela.cleverclient.Event;
import io.github.sashirestela.openai.OpenAIBeta;
import io.github.sashirestela.openai.SimpleOpenAI;
import io.github.sashirestela.openai.domain.assistant.AssistantFunction;
import io.github.sashirestela.openai.domain.assistant.AssistantRequest;

Replies: 9 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@sashirestela
Comment options

@hlzhangxt
Comment options

Answer selected by sashirestela
Comment options

You must be logged in to vote
1 reply
@hlzhangxt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #79 on April 16, 2024 17:21.