Uses of Interface
com.composum.ai.backend.base.service.chat.GPTCompletionCallback
-
Packages that use GPTCompletionCallback Package Description com.composum.ai.backend.base.service.chat com.composum.ai.backend.base.service.chat.impl -
-
Uses of GPTCompletionCallback in com.composum.ai.backend.base.service.chat
Classes in com.composum.ai.backend.base.service.chat that implement GPTCompletionCallback Modifier and Type Class Description static class
GPTCompletionCallback.GPTCompletionCallbackWrapper
Forwards all methods to a delegate.static class
GPTCompletionCallback.GPTCompletionCollector
A simple collector that just takes note of things.Fields in com.composum.ai.backend.base.service.chat declared as GPTCompletionCallback Modifier and Type Field Description protected GPTCompletionCallback
GPTCompletionCallback.GPTCompletionCallbackWrapper. delegate
Methods in com.composum.ai.backend.base.service.chat with parameters of type GPTCompletionCallback Modifier and Type Method Description void
GPTContentCreationService. executePromptOnTextStreaming(String prompt, String text, GPTChatRequest additionalParameters, GPTCompletionCallback callback)
Executes a given prompt from the user using ChatGPT, using the given text as context.void
GPTContentCreationService. executePromptStreaming(String prompt, GPTChatRequest additionalParameters, GPTCompletionCallback callback)
Executes a given prompt from the user using ChatGPT.void
GPTChatCompletionService. streamingChatCompletion(GPTChatRequest request, GPTCompletionCallback callback)
Give some messages and receive the streaming response via callback, to reduce waiting time.void
GPTChatCompletionService. streamingChatCompletionWithToolCalls(GPTChatRequest request, GPTCompletionCallback callback)
Give some messages and receive the streaming response via callback, to reduce waiting time.void
GPTTranslationService. streamingSingleTranslation(String text, String sourceLanguage, String targetLanguage, GPTConfiguration configuration, GPTCompletionCallback callback)
Translate the text from the target to destination language, either Java locale name or language name.Constructors in com.composum.ai.backend.base.service.chat with parameters of type GPTCompletionCallback Constructor Description GPTCompletionCallbackWrapper(GPTCompletionCallback delegate)
-
Uses of GPTCompletionCallback in com.composum.ai.backend.base.service.chat.impl
Fields in com.composum.ai.backend.base.service.chat.impl declared as GPTCompletionCallback Modifier and Type Field Description protected GPTCompletionCallback
GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer. callback
Methods in com.composum.ai.backend.base.service.chat.impl with parameters of type GPTCompletionCallback Modifier and Type Method Description void
GPTContentCreationServiceImpl. executePromptOnTextStreaming(String prompt, String text, GPTChatRequest additionalParameters, GPTCompletionCallback callback)
void
GPTContentCreationServiceImpl. executePromptStreaming(String prompt, GPTChatRequest additionalParameters, GPTCompletionCallback callback)
protected void
GPTChatCompletionServiceImpl. handleStreamingEvent(GPTCompletionCallback callback, long id, String line)
Handle a single line of the streaming response.protected void
GPTChatCompletionServiceImpl. performCallAsync(CompletableFuture<Void> finished, long id, org.apache.hc.client5.http.async.methods.SimpleHttpRequest httpRequest, GPTCompletionCallback callback, int tryNumber, long defaultDelay)
Executes a call with retries.void
GPTChatCompletionServiceImpl. streamingChatCompletion(GPTChatRequest request, GPTCompletionCallback callback)
void
GPTChatCompletionServiceImpl. streamingChatCompletionWithToolCalls(GPTChatRequest request, GPTCompletionCallback callback)
void
GPTTranslationServiceImpl. streamingSingleTranslation(String text, String sourceLanguage, String targetLanguage, GPTConfiguration configuration, GPTCompletionCallback callback)
protected CompletableFuture<Void>
GPTChatCompletionServiceImpl. triggerCallAsync(long id, org.apache.hc.client5.http.async.methods.SimpleHttpRequest httpRequest, GPTCompletionCallback callback)
Puts the call into the pipeline; the returned future will be set normally or exceptionally when it's done.Constructors in com.composum.ai.backend.base.service.chat.impl with parameters of type GPTCompletionCallback Constructor Description StreamDecodingResponseConsumer(GPTCompletionCallback callback, CompletableFuture<Void> result, long id)
The result of the webservice call is written to callback; result is set when either it completed or aborted.
-