Class OpenAiChatCompletionClient
java.lang.Object
ch.tocco.nice2.optional.aiassistant.impl.function.manual.OpenAiChatCompletionClient
- All Implemented Interfaces:
ChatCompletionClient
ChatCompletionClient backed by an OpenAI-compatible /chat/completions endpoint,
configured via ManualParameterProvider.-
Nested Class Summary
Nested classes/interfaces inherited from interface ChatCompletionClient
ChatCompletionClient.Turn -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringcomplete(String systemPrompt, List<ChatCompletionClient.Turn> conversation)
-
Constructor Details
-
OpenAiChatCompletionClient
-
-
Method Details
-
complete
- Specified by:
completein interfaceChatCompletionClient- Parameters:
systemPrompt- instructions for the assistant (grounding, citation, language)conversation- ordered turns, each authored by theRole.USERorRole.ASSISTANT- Returns:
- the assistant's answer text, or
nullif the provider returned no content
-