Package com.chatmotorapi.api
Provides classes to declare the ChatMotor instance, make basic requests, and large requests.
-
Interface Summary Interface Description MotorMessage Represents a generic message structure for interactions within the ChatMotor system.MotorResponseFile Marker interface for response that return file content in the ChatMotor framework.MotorResponseType Marker interface for all response types in the ChatMotor framework. -
Class Summary Class Description ChatMotor The ChatMotor class encapsulates configuration for interacting with the OpenAI API.ChatMotor.Builder The Builder class for the ChatMotor class.ChunkSize A utility class for handling chunk sizes with different units (bytes, kilobytes, megabytes, gigabytes).MotorAiOptions Encapsulates configuration settings for AI interactions within the ChatMotor system.MotorAiOptions.Builder Builder class for creating a MotorAiOptions instance.MotorCompletionUsage Provides information about how many tokens were used by your API request.MotorDefaultsModels Utility class containing default model values for the ChatMotor API.MotorLargeRequestLines Facilitates the creation and execution of large-sized requests for the ChatMotor API using a builder pattern for flexible and reliable configuration.MotorLargeRequestLines.Builder Builder class for creating a MotorLargeRequestLines instance.MotorLargeRequestText Facilitates the creation and execution of large-sized requests for the ChatMotor API using a builder pattern for flexible and reliable configuration.MotorLargeRequestText.Builder Builder class for creating a MotorLargeRequestText instance.MotorLargeResponse Represents the response from executing a request that typically involves large data transfers, adapted to handle responses as files rather than strings.MotorRequest Handles the creation and execution of requests to the ChatMotor using system and user prompts.MotorRequest.Builder Builder class for creating a MotorRequest instance.MotorResponse Represents the response from executing aMotorRequest
.MotorStreamStatus Represents the status of a streamed request within the ChatMotor API, providing detailed information about the outcome of the operation.MotorSystemMessage Represents a system-level message within the ChatMotor system, specifically used to hold system prompts.MotorUserMessage Represents a user-generated message within the ChatMotor system, specifically designed to store user prompts.OpenAiError Represents an error encountered within the OpenAI operations. -
Enum Summary Enum Description OpenAiErrorType Enum representing the various error messages returned by the ChatGPT API.