Class ReactivePromptStage
- java.lang.Object
-
- bg.codexio.ai.openai.api.sdk.voice.transcription.TranscriptionConfigurationStage
-
- bg.codexio.ai.openai.api.sdk.voice.transcription.ReactivePromptStage
-
- All Implemented Interfaces:
RuntimeExecutor
public class ReactivePromptStage extends TranscriptionConfigurationStage implements RuntimeExecutor
Registers text input optionally
-
-
Field Summary
-
Fields inherited from class bg.codexio.ai.openai.api.sdk.voice.transcription.TranscriptionConfigurationStage
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 transcription 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 transcription 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.- Returns:
OpenAIHttpExecutor.ReactiveExecution
-
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
-
-