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
Registers text input optionally
-
Field Summary
Fields inherited from class bg.codexio.ai.openai.api.sdk.voice.translation.TranslationConfigurationStage
executor, requestBuilder -
Method Summary
Modifier and TypeMethodDescriptionOpenAIHttpExecutor.ReactiveExecution<bg.codexio.ai.openai.api.payload.voice.response.SpeechTextResponse> 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 Details
-
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<bg.codexio.ai.openai.api.payload.voice.response.SpeechTextResponse>
-