Class AssistantService
java.lang.Object
com.vaadin.uitest.ai.services.assistant.AssistantService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCompletionStream(List<ChatCompletionMessage> history, String sessionId) Calls the OpenAI chat completion API.getCompletionString(List<ChatCompletionMessage> history) Calls the OpenAI chat completion API synchronously.
-
Constructor Details
-
AssistantService
public AssistantService()
-
-
Method Details
-
getCompletionStream
Calls the OpenAI chat completion API.- Returns:
- The completion as a stream of chunks
-
getCompletionString
Calls the OpenAI chat completion API synchronously.- Returns:
- The completion as a String with the content
-
generateCompletionStringForAssistant
-
generateCompletionString
-