ChatCompletionRequest.Builder |
ChatCompletionRequest.Builder.addAssistantMessage(String assistantMessage) |
ChatCompletionRequest.Builder |
ChatCompletionRequest.Builder.addFunction(Function function) |
ChatCompletionRequest.Builder |
ChatCompletionRequest.Builder.addFunctionMessage(String name,
String content) |
Function.Builder |
Function.Builder.addOptionalParameter(String name,
JsonSchemaProperty... jsonSchemaProperties) |
Function.Builder |
Function.Builder.addParameter(String name,
JsonSchemaProperty... jsonSchemaProperties) |
ChatCompletionRequest.Builder |
ChatCompletionRequest.Builder.addSystemMessage(String systemMessage) |
ChatCompletionRequest.Builder |
ChatCompletionRequest.Builder.addUserMessage(String userMessage) |
static Message |
Message.assistantMessage(String content) |
String |
ChatCompletionResponse.content()
Convenience method to get the content of the message from the first choice.
|
static JsonSchemaProperty |
JsonSchemaProperty.description(String value) |
static JsonSchemaProperty |
JsonSchemaProperty.enums(Class<?> enumClass) |
static JsonSchemaProperty |
JsonSchemaProperty.enums(Object... enumValues) |
static JsonSchemaProperty |
JsonSchemaProperty.enums(String... enumValues) |
static JsonSchemaProperty |
JsonSchemaProperty.from(String key,
Object value) |
ChatCompletionRequest.Builder |
ChatCompletionRequest.Builder.functionCall(FunctionCallMode mode) |
ChatCompletionRequest.Builder |
ChatCompletionRequest.Builder.functionCall(String name) |
static Message |
Message.functionMessage(String name,
String content) |
ChatCompletionRequest.Builder |
ChatCompletionRequest.Builder.functions(Function... functions) |
ChatCompletionRequest.Builder |
ChatCompletionRequest.Builder.messages(Message... messages) |
ChatCompletionRequest.Builder |
ChatCompletionRequest.Builder.model(Model model) |
static JsonSchemaProperty |
JsonSchemaProperty.property(String key,
Object value) |
Message.Builder |
Message.Builder.role(String role) |
static Message |
Message.systemMessage(String content) |
static JsonSchemaProperty |
JsonSchemaProperty.type(String value) |
static Message |
Message.userMessage(String content) |