Class ReactivePromptStage
- java.lang.Object
-
- bg.codexio.ai.openai.api.sdk.voice.translation.TranslationConfigurationStage
-
- bg.codexio.ai.openai.api.sdk.voice.translation.ReactivePromptStage
-
- All Implemented Interfaces:
RuntimeExecutor
public class ReactivePromptStage extends TranslationConfigurationStage implements RuntimeExecutor
Registers text input optionally
-
-
Field Summary
-
Fields inherited from class bg.codexio.ai.openai.api.sdk.voice.translation.TranslationConfigurationStage
executor, requestBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenAIHttpExecutor.ReactiveExecution<bg.codexio.ai.openai.api.payload.voice.response.SpeechTextResponse>guide(String prompt)Guides the translation with additional prompt Notifies theOpenAIHttpExecutor.ReactiveExecution.lines()andOpenAIHttpExecutor.ReactiveExecution.response()when parts (and the whole) of the response is received.OpenAIHttpExecutor.ReactiveExecution<bg.codexio.ai.openai.api.payload.voice.response.SpeechTextResponse>unguided()Sends request to OpenAI API without additional prompt Notifies theOpenAIHttpExecutor.ReactiveExecution.lines()andOpenAIHttpExecutor.ReactiveExecution.response()when parts (and the whole) of the response is received.
-
-
-
Method Detail
-
guide
public OpenAIHttpExecutor.ReactiveExecution<bg.codexio.ai.openai.api.payload.voice.response.SpeechTextResponse> guide(String prompt)
Guides the translation with additional prompt Notifies theOpenAIHttpExecutor.ReactiveExecution.lines()andOpenAIHttpExecutor.ReactiveExecution.response()when parts (and the whole) of the response is received. Do not subscribe simultaneously for both, as you may experience bugs with multiplexing.
-
unguided
public OpenAIHttpExecutor.ReactiveExecution<bg.codexio.ai.openai.api.payload.voice.response.SpeechTextResponse> unguided()
Sends request to OpenAI API without additional prompt Notifies theOpenAIHttpExecutor.ReactiveExecution.lines()andOpenAIHttpExecutor.ReactiveExecution.response()when parts (and the whole) of the response is received. Do not subscribe simultaneously for both, as you may experience bugs with multiplexing.- Returns:
OpenAIHttpExecutor.ReactiveExecution
-
-