Package ai.vespa.llm
Interface LanguageModel
- All Known Implementing Classes:
MockLanguageModel,OpenAiClient
public interface LanguageModel
Interface to language models.
- Author:
- bratseth
-
Method Summary
Modifier and TypeMethodDescriptioncomplete(Prompt prompt, InferenceParameters options) completeAsync(Prompt prompt, InferenceParameters options, Consumer<Completion> consumer)
-
Method Details
-
complete
- Throws:
RejectedExecutionException- – if the completion task cannot be scheduled for execution or timeoutsLanguageModelException- – if the completion task fails
-
completeAsync
CompletableFuture<Completion.FinishReason> completeAsync(Prompt prompt, InferenceParameters options, Consumer<Completion> consumer)
-