A B C D E F G H I J K L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accept(String) - Method in class com.composum.ai.backend.base.service.StringstreamSlowdown
- activate(GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig, BundleContext) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- activate(GPTDictationServiceImpl.GPTDictationServiceConfig) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- activate(GPTTranslationServiceImpl.Config) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- addMessage(GPTChatMessage) - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
-
Builder style adding of messages.
- addMessage(GPTMessageRole, String) - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
-
Builder style adding of messages.
- addMessages(List<GPTChatMessage>) - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
-
Builder style adding of messages.
- apiKey - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
-
The OpenAI Key for accessing ChatGPT; system default if not given in request.
- ASSISTANT - com.composum.ai.backend.base.service.chat.GPTMessageRole
-
The assistant messages help store prior responses.
- ASSISTANT - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.Role
B
- buildException(Integer, String) - Static method in exception com.composum.ai.backend.base.service.GPTException
- buildResult() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
- bundleContext - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
C
- cacheDir - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- cacheResponse(String, GPTChatRequest, String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- callback - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
- cancelled() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.EnsureResultFutureCallback
- capacityIncrement() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
- CHAT - com.composum.ai.backend.base.service.chat.GPTConfiguration.Mode
-
Uses a system prompt appropriate for a chat.
- CHAT - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- CHAT_COMPLETION_URL - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- ChatCompletionChoice - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
-
Represents a choice in the chat completion response.
- ChatCompletionChoice() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
- ChatCompletionChoiceMessage - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
-
Represents the message content in a chat completion choice, including the role (e.g., user, assistant) and the actual text content of the message.
- ChatCompletionChoiceMessage() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoiceMessage
- ChatCompletionFunctionCallDetails - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
-
Represents the a call of a function used as a tool in the chat completion request.
- ChatCompletionFunctionCallDetails() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
- ChatCompletionFunctionDetails - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
-
Represents the details of a function used as a tool in the chat completion request.
- ChatCompletionFunctionDetails() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
- ChatCompletionMessage - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
-
Represents a message in a chat completion request, containing the role of the speaker (user, assistant, or system) and the message content, which may include text or other parts.
- ChatCompletionMessage() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
- ChatCompletionMessagePart - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
-
Represents a part of a chat completion message, which may be a text or an image URL.
- ChatCompletionMessagePart() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
- ChatCompletionMessagePart.ChatCompletionMessagePartListDeSerializer - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
- ChatCompletionMessagePart.ChatCompletionMessageUrlPart - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
-
Encodes URL part: { "url": "https://example.com/somepicture.jpg" }
- ChatCompletionMessagePart.ImageDetail - Enum in com.composum.ai.backend.base.service.chat.impl.chatmodel
- ChatCompletionMessagePart.Type - Enum in com.composum.ai.backend.base.service.chat.impl.chatmodel
- ChatCompletionMessagePartListDeSerializer() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessagePartListDeSerializer
- ChatCompletionMessageUrlPart() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessageUrlPart
- ChatCompletionRequest - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
-
Represents a request to the OpenAI chat completion API, including model, messages, and optional parameters like max tokens, temperature, and response format.
- ChatCompletionRequest() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- ChatCompletionRequest.ResponseFormat - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
- ChatCompletionRequest.ResponseFormatType - Enum in com.composum.ai.backend.base.service.chat.impl.chatmodel
- ChatCompletionRequest.Role - Enum in com.composum.ai.backend.base.service.chat.impl.chatmodel
- ChatCompletionResponse - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
-
Represents the response from the OpenAI chat completion API, containing details about the generated choices, token usage, and metadata like the model used and creation time.
- ChatCompletionResponse() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- ChatCompletionResponse.FinishReason - Enum in com.composum.ai.backend.base.service.chat.impl.chatmodel
- chatCompletionService - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- chatCompletionService - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTEmbeddingServiceImpl
- chatCompletionService - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- ChatCompletionToolCall - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
-
Represents a tool call generated by the model in a chat completion response.
- ChatCompletionToolCall() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
- chatCompletionUrl - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- chatCompletionUrl() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- ChatCompletionUsage - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
-
Represents the token usage details in a chat completion response, including the number of tokens used for the prompt, the completion, and the total.
- ChatCompletionUsage() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
- ChatTool - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
-
Represents a tool in the OpenAI chat completion request, currently limited to functions.
- ChatTool() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatTool
- checkEnabled() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- checkEnabled(GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- checkTokenCount(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- close() - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
-
Notifies that the request is completely finished / closed, nothing more will arrive.
- close() - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
- close() - Method in class com.composum.ai.backend.base.service.StringstreamSlowdown
- collectResponseProblems(List<GPTResponseCheck>, String, String) - Static method in interface com.composum.ai.backend.base.service.chat.GPTResponseCheck
-
Finds problems of translation wrt.
- com.composum.ai.backend.base - package com.composum.ai.backend.base
-
Composum ChatGPT Base : Base classes for the ChatGPT backend.
- com.composum.ai.backend.base.impl - package com.composum.ai.backend.base.impl
- com.composum.ai.backend.base.service - package com.composum.ai.backend.base.service
- com.composum.ai.backend.base.service.chat - package com.composum.ai.backend.base.service.chat
- com.composum.ai.backend.base.service.chat.impl - package com.composum.ai.backend.base.service.chat.impl
- com.composum.ai.backend.base.service.chat.impl.chatmodel - package com.composum.ai.backend.base.service.chat.impl.chatmodel
- completed(Void) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.EnsureResultFutureCallback
- config - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- connectionTimeout - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- connectionTimeout() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- CONTENT_FILTER - com.composum.ai.backend.base.service.chat.GPTFinishReason
-
Omitted content due to a flag from our content filters.
- CONTENT_FILTER - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
- convert(String) - Method in class com.composum.ai.backend.base.service.chat.impl.HtmlToMarkdownConverter
- convertChildren(Node) - Method in class com.composum.ai.backend.base.service.chat.impl.HtmlToMarkdownConverter
- copy() - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
-
Returns a copy; the messages list is shallowly copied, but configuration is the same object.
- cosineSimilarity(float[], float[]) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTEmbeddingServiceImpl
- countTokens(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
-
Counts the number of tokens for the text for the normally used model.
- countTokens(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- createJsonRequest(GPTChatRequest) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
D
- data(CharBuffer, boolean) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
- deactivate() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- deactivate() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- deactivate() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- DEBUG - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
If set, the AI services will not call the AI but return the JSON request as response, for debugging purposes.
- decodeFloatArray(String) - Static method in class com.composum.ai.backend.base.service.chat.impl.GPTEmbeddingServiceImpl
- DEFAULT_EMBEDDINGS_MODEL - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- DEFAULT_HIGH_INTELLIGENCE_MODEL - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- DEFAULT_IMAGE_MODEL - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- DEFAULT_MAX_REQUEST_SIZE - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- DEFAULT_MODEL - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- DEFAULT_MODEL - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- defaultModel - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- defaultModel() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- DEFAULTVALUE_CONNECTIONTIMEOUT - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- DEFAULTVALUE_REQUESTS_PER_DAY - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- DEFAULTVALUE_REQUESTS_PER_DAY - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- DEFAULTVALUE_REQUESTS_PER_HOUR - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- DEFAULTVALUE_REQUESTS_PER_HOUR - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- DEFAULTVALUE_REQUESTS_PER_MINUTE - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- DEFAULTVALUE_REQUESTS_PER_MINUTE - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- DEFAULTVALUE_REQUESTTIMEOUT - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- delegate - Variable in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
- deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessagePartListDeSerializer
- disabled - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- disabled() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- disabled() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.GPTDictationServiceConfig
- disabled() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl.Config
- diskCache() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl.Config
E
- EmbeddingObject() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingObject
- EmbeddingRequest() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
- EmbeddingResponse() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingResponse
- embeddingsLimiter - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
-
Rate limiter for embeddings.
- embeddingsModel - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- embeddingsModel() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- embeddingsUrl - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- embeddingsUrl() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- enabled - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- enc - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
-
Tokenizer used for GPT-4 variants.
- encodeFloatArray(float[]) - Static method in class com.composum.ai.backend.base.service.chat.impl.GPTEmbeddingServiceImpl
- ensureEmptyOrEndsWith(String) - Method in class com.composum.ai.backend.base.service.chat.impl.HtmlToMarkdownConverter
-
We ensure sb is either empty or that it ends with the given suffix.
- ensureEnabled() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- EnsureResultFutureCallback(CompletableFuture<Void>) - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.EnsureResultFutureCallback
- equals(Object) - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
- equals(Object) - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
- equals(Object) - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- equals(Object) - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration.GPTContextInfo
- equals(Object) - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
- equals(Object) - Method in class com.composum.ai.backend.base.service.chat.GPTToolCall
- errorStatusCode - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
-
If set, we collect the data for the error message, of false we process it as stream.
- execute(String, GPTCompletionCallback.GPTToolExecutionContext) - Method in interface com.composum.ai.backend.base.service.chat.GPTTool
-
Executes the tool call and returns the result to present to the AI.
- executePrompt(String, GPTChatRequest) - Method in interface com.composum.ai.backend.base.service.chat.GPTContentCreationService
-
Executes a given prompt from the user using ChatGPT.
- executePrompt(String, GPTChatRequest) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- executePromptOnText(String, String, GPTChatRequest) - Method in interface com.composum.ai.backend.base.service.chat.GPTContentCreationService
-
Executes a given prompt from the user using ChatGPT, using the given text as context.
- executePromptOnText(String, String, GPTChatRequest) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- executePromptOnTextStreaming(String, String, GPTChatRequest, GPTCompletionCallback) - Method in interface com.composum.ai.backend.base.service.chat.GPTContentCreationService
-
Executes a given prompt from the user using ChatGPT, using the given text as context.
- executePromptOnTextStreaming(String, String, GPTChatRequest, GPTCompletionCallback) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- executePromptStreaming(String, GPTChatRequest, GPTCompletionCallback) - Method in interface com.composum.ai.backend.base.service.chat.GPTContentCreationService
-
Executes a given prompt from the user using ChatGPT.
- executePromptStreaming(String, GPTChatRequest, GPTCompletionCallback) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- extractRetryableException(Throwable) - Static method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
F
- failed(Exception) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.EnsureResultFutureCallback
- failed(Exception) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
- fakeTranslation() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl.Config
- fakeTranslation(String) - Static method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
-
This turns the capitalization of every odd letter in each word on it's head.
- findMostRelated(String, List<String>, int, GPTConfiguration, GPTEmbeddingService.EmbeddingsCache) - Method in interface com.composum.ai.backend.base.service.chat.GPTEmbeddingService
-
Determines the at most limit to query semantically closest of the comparedStrings according to the embedding service.
- findMostRelated(String, List<String>, int, GPTConfiguration, GPTEmbeddingService.EmbeddingsCache) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTEmbeddingServiceImpl
- flush() - Method in class com.composum.ai.backend.base.service.StringstreamSlowdown
- fragmentedTranslation(List<String>, String, GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.GPTTranslationService
-
Translates the texts into the target language.
- fragmentedTranslation(List<String>, String, GPTConfiguration, AtomicInteger, List<GPTResponseCheck>) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- fragmentedTranslation(List<String>, String, GPTConfiguration, List<GPTResponseCheck>) - Method in interface com.composum.ai.backend.base.service.chat.GPTTranslationService
-
Translates the texts into the target language.
- fragmentedTranslation(List<String>, String, GPTConfiguration, List<GPTResponseCheck>) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
-
We join all text fragments we have to translate into one big texts separated with separators like `%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 573472 %%%%%%%%%%%%%%%%` and then translate that.
- fragmentedTranslationDivideAndConquer(List<String>, String, GPTConfiguration, AtomicInteger, List<GPTResponseCheck>) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
-
We try to translate the whole lot of texts.
- fromChatGPT(String) - Static method in enum com.composum.ai.backend.base.service.chat.GPTFinishReason
- FUNCTION_CALL - com.composum.ai.backend.base.service.chat.GPTFinishReason
-
Deprecated.
- FUNCTION_CALL - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
-
Deprecated.
G
- GENERATE - com.composum.ai.backend.base.service.chat.GPTConfiguration.Mode
-
Uses a system prompt appropriate for text generation.
- GENERATE - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- generateDescription(String, int, GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.GPTContentCreationService
-
Generates a description from the given text.
- generateDescription(String, int, GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- generateKeywords(String, GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.GPTContentCreationService
-
Generates a list of keywords from the given text.
- generateKeywords(String, GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- getAdditionalInstructions() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
Optionally, additional instructions to add to the system prompt.
- getAnswerType() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
The type of answer we want from the LLM.
- getApiKey() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
The API key to use with ChatGPT or another service.
- getArguments() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
-
A JSON for the arguments the function is called with.
- getArguments() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
- getCachedEmbedding(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTEmbeddingService.EmbeddingsCache
- getCachedResponse(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- getChoices() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- getCompletionTokens() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
- getConfiguration() - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
-
Sets the LLM configuration
- getContent() - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
-
The content of the message, be that an answer of the assistant or a question of the user.
- getContent() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoiceMessage
- getContent() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
- getContexts() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
Additional context information to provide to the AI.
- getCreated() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- getCurrentTimeMillis() - Method in class com.composum.ai.backend.base.impl.RateLimiter
-
Provides the possibility to fake time, for easy unittests.
- getData() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingResponse
- getDebug() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
If this is set, then the services will not call the AI and return the JSON request instead of the AI response.
- getDelta() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
-
Alternative to
ChatCompletionChoice.getMessage()
if it's a response chunk. - getDescription() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionDetails
-
A brief description of what the function does.
- getDescription() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
- getDetail() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessageUrlPart
- getDimensions() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
- getEmbedding() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingObject
- getEmbeddings(List<String>, GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
-
Calculates embeddings for the given list of texts.
- getEmbeddings(List<String>, GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- getEmbeddings(List<String>, GPTConfiguration, GPTEmbeddingService.EmbeddingsCache) - Method in interface com.composum.ai.backend.base.service.chat.GPTEmbeddingService
-
Get embeddings for the given texts.
- getEmbeddings(List<String>, GPTConfiguration, GPTEmbeddingService.EmbeddingsCache) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTEmbeddingServiceImpl
- getEmbeddingsImpl(List<String>, GPTConfiguration, long) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- getEmbeddingsImplDivideAndConquer(List<String>, GPTConfiguration, long) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- getEmbeddingsModel() - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
-
Returns the model used for
GPTChatCompletionService.getEmbeddings(List, GPTConfiguration)
. - getEmbeddingsModel() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- getEncodingFormat() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
- getError() - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
- getFinishReason() - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
- getFinishReason() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
- getFunction() - Method in class com.composum.ai.backend.base.service.chat.GPTToolCall
-
The function being called by the model, including its name and arguments.
- getFunction() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
- getFunction() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatTool
- getGetTemplateStreamFromBundle(Bundle, String) - Static method in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
- getGetTemplateStreamFromClassloader(ClassLoader, String) - Static method in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
- getId() - Method in class com.composum.ai.backend.base.service.chat.GPTToolCall
-
The ID of the tool call.
- getId() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- getId() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
- getImageUrl() - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
-
The URL with the content of the image to be analyzed.
- getImageUrl() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
- getIndex() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
- getIndex() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
- getIndex() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingObject
- getInput() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
- getInstance() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- getInstance() - Method in interface com.composum.ai.backend.base.service.chat.impl.GPTInternalOpenAIHelper
-
Returns a helper for implementation in this package.
- getMaxTokens() - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
-
Optionally the maximum number of tokens (approx.
- getMaxTokens() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- getMessage() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
- getMessageLineBlocks(Iterator<String>) - Static method in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
-
split the lines into blocks of lines where the first line is matching MESSAGE_SEPARATOR
- getMessages() - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
-
Returns the chat messages set with
GPTChatRequest.addMessage(GPTMessageRole, String)
. - getMessages() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- getMessages(Map<String, String>) - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
-
Returns a list of messages with the placeholders replaced.
- getMode() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- getModel() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- getModel() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- getModel() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
- getName() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
-
The name of the function to be called.
- getName() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionDetails
-
The name of the function to be called.
- getName() - Method in interface com.composum.ai.backend.base.service.chat.GPTTool
-
The name of the tool - must be exactly the name given in
GPTTool.getToolDeclaration()
. - getName() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
- getName() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
- getObject() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- getOrganizationId() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
The organization id to use with ChatGPT.
- getParameters() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionDetails
-
The parameters accepted by the function, defined as an arbitrary JSON schema object.
- getParameters() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
- getPromptTokens() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
- getResponseFormat() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- getResult() - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
- getRole() - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
-
Function of the message in the dialog.
- getRole() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoiceMessage
- getRole() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
- getSeed() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
- getSeed() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- getServiceConfiguration() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- getSingleChatCompletion(GPTChatRequest) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
-
The simplest case: give some messages and get a single response.
- getSingleChatCompletion(GPTChatRequest) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- getStrict() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionDetails
-
Whether to enforce strict schema adherence for the parameters.
- getStrict() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
- getSystemFingerprint() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- getTemperature() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
The sampling temperature, between 0 and 1.
- getTemperature() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- getTemplate(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
-
Retrieves a (usually cached) chat template with that name.
- getTemplate(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- getText() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration.GPTContextInfo
- getText() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
- getTime() - Method in class com.composum.ai.backend.base.service.StringstreamSlowdown
- getTitle() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration.GPTContextInfo
- getToolCallId() - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
-
The ID of a prior tool call.
- getToolCallId() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
- getToolCalls() - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
-
The tool calls that were made in the context of this message.
- getToolCalls() - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
- getToolCalls() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoiceMessage
- getToolCalls() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
- getToolDeclaration() - Method in interface com.composum.ai.backend.base.service.chat.GPTTool
-
The description to use for the OpenAI tool call.
- getToolExecutionContext() - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
-
For tool calls: set the context to execute actions in.
- getToolExecutionContext() - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
- getToolExecutionContext() - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
- getTools() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
A list of tools the Model could use.
- getTools() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- getTotalTokens() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
- getType() - Method in class com.composum.ai.backend.base.service.chat.GPTToolCall
-
The type of the tool, currently only "function" is supported.
- getType() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
- getType() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormat
- getType() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
- getType() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatTool
- getUrl() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessageUrlPart
- getUsage() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- getUser() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
- GPTChatCompletionService - Interface in com.composum.ai.backend.base.service.chat
-
Raw abstraction of the ChatGPT chat interface, with only the details that are needed.
- GPTChatCompletionServiceImpl - Class in com.composum.ai.backend.base.service.chat.impl
-
Implements the actual access to the ChatGPT chat API.
- GPTChatCompletionServiceImpl() - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- GPTChatCompletionServiceImpl.EnsureResultFutureCallback - Class in com.composum.ai.backend.base.service.chat.impl
-
Makes doubly sure that result is somehow set after the call.
- GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig - Annotation Type in com.composum.ai.backend.base.service.chat.impl
- GPTChatCompletionServiceImpl.RetryableException - Exception in com.composum.ai.backend.base.service.chat.impl
-
Thrown when we get a 429 rate limiting response.
- GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer - Class in com.composum.ai.backend.base.service.chat.impl
- GPTChatMessage - Class in com.composum.ai.backend.base.service.chat
-
A chat message in a dialog with ChatGPT.
- GPTChatMessage(GPTMessageRole, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatMessage
- GPTChatMessage(GPTMessageRole, String, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatMessage
- GPTChatMessage(GPTMessageRole, String, String, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatMessage
- GPTChatMessage(GPTMessageRole, String, String, String, List<GPTToolCall>) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatMessage
- GPTChatMessagesTemplate - Class in com.composum.ai.backend.base.service.chat
-
A template for chat messages, with placeholders.
- GPTChatMessagesTemplate(InputStream, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
-
Reads the template from the stream, which is closed afterwards.
- GPTChatMessagesTemplate(ClassLoader, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
-
Reads the template from the classloader.
- GPTChatMessagesTemplate(Bundle, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
-
Reads the template from an OSGI bundle.
- GPTChatRequest - Class in com.composum.ai.backend.base.service.chat
-
A request to ChatGPT.
- GPTChatRequest() - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatRequest
- GPTChatRequest(GPTConfiguration) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatRequest
- GPTChatRequest(List<GPTChatMessage>) - Constructor for class com.composum.ai.backend.base.service.chat.GPTChatRequest
- GPTCompletionCallback - Interface in com.composum.ai.backend.base.service.chat
-
For a streaming mode this is given as parameter for the method call and receives the streamed data; the method returns only when the response is complete.
- GPTCompletionCallback.GPTCompletionCallbackWrapper - Class in com.composum.ai.backend.base.service.chat
-
Forwards all methods to a delegate.
- GPTCompletionCallback.GPTCompletionCollector - Class in com.composum.ai.backend.base.service.chat
-
A simple collector that just takes note of things.
- GPTCompletionCallback.GPTToolExecutionContext - Interface in com.composum.ai.backend.base.service.chat
-
For tool calls: context to execute actions in.
- GPTCompletionCallbackWrapper(GPTCompletionCallback) - Constructor for class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
- GPTCompletionCollector() - Constructor for class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
- GPTConfiguration - Class in com.composum.ai.backend.base.service.chat
-
A configuration to use for accessing the external LLM service.
- GPTConfiguration(String, String, GPTConfiguration.AnswerType) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
- GPTConfiguration(String, String, GPTConfiguration.AnswerType, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
- GPTConfiguration(String, String, GPTConfiguration.AnswerType, String, GPTConfiguration.Mode) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
- GPTConfiguration(String, String, GPTConfiguration.AnswerType, String, GPTConfiguration.Mode, Boolean) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
- GPTConfiguration(String, String, GPTConfiguration.AnswerType, String, GPTConfiguration.Mode, Boolean, Boolean) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
- GPTConfiguration(String, String, GPTConfiguration.AnswerType, String, GPTConfiguration.Mode, Boolean, Boolean, Double) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
- GPTConfiguration(String, String, GPTConfiguration.AnswerType, String, GPTConfiguration.Mode, Boolean, Boolean, Double, Integer) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
- GPTConfiguration(String, String, GPTConfiguration.AnswerType, String, GPTConfiguration.Mode, Boolean, Boolean, Double, Integer, List<GPTConfiguration.GPTContextInfo>) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
- GPTConfiguration(String, String, GPTConfiguration.AnswerType, String, GPTConfiguration.Mode, Boolean, Boolean, Double, Integer, List<GPTConfiguration.GPTContextInfo>, List<GPTTool>) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration
- GPTConfiguration.AnswerType - Enum in com.composum.ai.backend.base.service.chat
- GPTConfiguration.GPTContextInfo - Class in com.composum.ai.backend.base.service.chat
-
Gives the conversation a history - additional assistant - user message pair.
- GPTConfiguration.Mode - Enum in com.composum.ai.backend.base.service.chat
- GPTContentCreationService - Interface in com.composum.ai.backend.base.service.chat
-
Service to generate content (keywords / descriptions from a text, and so forth.)
- GPTContentCreationServiceImpl - Class in com.composum.ai.backend.base.service.chat.impl
-
Building on
GPTChatCompletionService
this implements generating keywords. - GPTContentCreationServiceImpl() - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- GPTContextInfo(String, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTConfiguration.GPTContextInfo
- GPTContextLengthExceededException(String) - Constructor for exception com.composum.ai.backend.base.service.GPTException.GPTContextLengthExceededException
- GPTDictationService - Interface in com.composum.ai.backend.base.service.chat
-
Services related to dictation.
- GPTDictationServiceImpl - Class in com.composum.ai.backend.base.service.chat.impl
- GPTDictationServiceImpl() - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- GPTDictationServiceImpl.GPTDictationServiceConfig - Annotation Type in com.composum.ai.backend.base.service.chat.impl
-
Configures whether it's enabled (default false), the model and the request counts, and the maximum request size.
- GPTDictationServiceImpl.LimitedInputStream - Class in com.composum.ai.backend.base.service.chat.impl
- GPTEmbeddingService - Interface in com.composum.ai.backend.base.service.chat
-
Methods related to embeddings.
- GPTEmbeddingService.EmbeddingsCache - Interface in com.composum.ai.backend.base.service.chat
-
Optional cache for embedding values.
- GPTEmbeddingServiceImpl - Class in com.composum.ai.backend.base.service.chat.impl
- GPTEmbeddingServiceImpl() - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTEmbeddingServiceImpl
- GPTException - Exception in com.composum.ai.backend.base.service
-
Any kind of error when accessing GPT.
- GPTException(String) - Constructor for exception com.composum.ai.backend.base.service.GPTException
- GPTException(String, Throwable) - Constructor for exception com.composum.ai.backend.base.service.GPTException
- GPTException(Throwable) - Constructor for exception com.composum.ai.backend.base.service.GPTException
- GPTException.GPTContextLengthExceededException - Exception in com.composum.ai.backend.base.service
-
{ "error": { "message": "This model's maximum context length is 4097 tokens.
- GPTException.GPTRetryableResponseErrorException - Exception in com.composum.ai.backend.base.service
-
An exception that is thrown when the response from the GPT service is not as expected.
- GPTException.GPTUserNotificationException - Exception in com.composum.ai.backend.base.service
-
A special exception if the user should be notified about something instead of completing the task.
- GPTFinishReason - Enum in com.composum.ai.backend.base.service.chat
- GPTFunctionCallDetails - Class in com.composum.ai.backend.base.service.chat
-
Represents the a call of a function used as a tool in the chat completion request.
- GPTFunctionCallDetails(String, String) - Constructor for class com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
-
Creates the object
- GPTFunctionDetails - Class in com.composum.ai.backend.base.service.chat
-
Represents the details of a function used as a tool in the chat completion request.
- GPTFunctionDetails(String, String, Object, Boolean) - Constructor for class com.composum.ai.backend.base.service.chat.GPTFunctionDetails
-
Creates the object
- GPTInternalOpenAIHelper - Interface in com.composum.ai.backend.base.service.chat.impl
-
Helpers for implementation in this package.
- GPTInternalOpenAIHelper.GPTInternalOpenAIHelperInst - Class in com.composum.ai.backend.base.service.chat.impl
- GPTInternalOpenAIHelperInst() - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTInternalOpenAIHelper.GPTInternalOpenAIHelperInst
- gptLimiter - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
-
If set, this tells the limits of ChatGPT API itself.
- GPTMessageRole - Enum in com.composum.ai.backend.base.service.chat
-
Role of a
GPTChatMessage
in a dialog with ChatGPT. - GPTResponseCheck - Interface in com.composum.ai.backend.base.service.chat
-
An additional check that verifies whether the translation was carried out right - such as paths in HTML weren't translated.
- GPTRetryableResponseErrorException(String) - Constructor for exception com.composum.ai.backend.base.service.GPTException.GPTRetryableResponseErrorException
- GPTTool - Interface in com.composum.ai.backend.base.service.chat
-
An action the AI can perform - likely from the sidebar chat.
- GPTToolCall - Class in com.composum.ai.backend.base.service.chat
-
Represents a tool call generated by the model in a chat completion response.
- GPTToolCall(String, String, GPTFunctionCallDetails) - Constructor for class com.composum.ai.backend.base.service.chat.GPTToolCall
-
Creates the object
- GPTTranslationService - Interface in com.composum.ai.backend.base.service.chat
-
Building on
GPTChatCompletionService
this implements translation. - GPTTranslationServiceImpl - Class in com.composum.ai.backend.base.service.chat.impl
-
Building on
GPTChatCompletionService
this implements translation. - GPTTranslationServiceImpl() - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- GPTTranslationServiceImpl.Config - Annotation Type in com.composum.ai.backend.base.service.chat.impl
- GPTUserNotificationException(String) - Constructor for exception com.composum.ai.backend.base.service.GPTException.GPTUserNotificationException
- gson - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
H
- handleStreamingEvent(GPTCompletionCallback, long, String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
-
Handle a single line of the streaming response.
- hashCode() - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
- hashCode() - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
- hashCode() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration.GPTContextInfo
- hashCode() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- hashCode() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
- hashCode() - Method in class com.composum.ai.backend.base.service.chat.GPTToolCall
- HIGH - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ImageDetail
- HIGH_INTELLIGENCE - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
Requests slower and more expensive "high intelligence" model - use sparingly.
- highIntelligenceModel - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- highIntelligenceModel() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- highIntelligenceNeededIsSet() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
If true, this requires to uses the slower and more expensive high intelligence model - use sparingly for more challenging tasks.
- highIntelligenceNeededIsUnset() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
If true, there is no information whether a "high intelligence model" is used - uses the default.
- HTML - com.composum.ai.backend.base.service.chat.GPTConfiguration.AnswerType
-
Real HTML or, more likely, richtext as simplified HTML.
- HTML - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- HTML_TAG_AT_START - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- htmlToMarkdown(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
-
Helper for preprocessing HTML so that it can easily read by ChatGPT.
- htmlToMarkdown(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- HtmlToMarkdownConverter - Class in com.composum.ai.backend.base.service.chat.impl
-
A quick HTML markdown converter that handles the tags [a, strong, code, em, p, br, u, ul, li, ol] used in rich text editor.
- HtmlToMarkdownConverter() - Constructor for class com.composum.ai.backend.base.service.chat.impl.HtmlToMarkdownConverter
- httpAsyncClient - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- httpClient - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
I
- id - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
- IMAGE_URL - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.Type
- imageModel - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- imageModel() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- imageUrl(String) - Static method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
- insertText(String) - Method in class com.composum.ai.backend.base.service.chat.impl.HtmlToMarkdownConverter
-
Split text into lines to add indentation before each line.
- isAvailable(GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.GPTDictationService
-
Whether the service is enabled and properly configured.
- isAvailable(GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- isEmpty(Void) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
- isEmpty(Void) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
- isEnabled() - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
-
Whether ChatGPT completion is enabled.
- isEnabled() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- isEnabled(GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
-
Checks whether
GPTChatCompletionService.isEnabled()
and whether gptConfig enables executing GPT calls. - isEnabled(GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- isEnabled(GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.impl.GPTInternalOpenAIHelper
-
Checks whether ChatGPT is generally and whether gptConfig enables executing GPT calls.
- isHtml() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- isStream() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- isVisionEnabled() - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
-
Returns true if vision is enabled.
- isVisionEnabled() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
J
- joinTexts(List<String>, List<String>) - Static method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- JSON - com.composum.ai.backend.base.service.chat.GPTConfiguration.AnswerType
-
JSON is not yet supported by all models, so a bit dangerous.
- JSON - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- JSON - Static variable in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- JSON_OBJECT - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormatType
K
- KEEP_HREF_TRANSLATION_CHECK - Static variable in interface com.composum.ai.backend.base.service.chat.GPTResponseCheck
-
A check that all href attributes in richtext appear in the translation.
L
- lastGptLimiterCreationTime - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- LASTID - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- LENGTH - com.composum.ai.backend.base.service.chat.GPTFinishReason
-
The response is not complete, but the maximum length has been reached.
- LENGTH - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
- LimitedInputStream(InputStream, long) - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.LimitedInputStream
- limiter - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
-
Limiter that maps the financial reasons to limit.
- limiter - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- LOG - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- LOW - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ImageDetail
M
- make(GPTChatMessage) - Static method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
- make(GPTFunctionCallDetails) - Static method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
- make(GPTMessageRole) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.Role
- make(String) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormatType
- make(List<GPTToolCall>) - Static method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
- makeExecuteOnTextRequest(String, String, GPTChatRequest) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- makeExecutePromptRequest(String, GPTChatRequest) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- makeRequest(String, GPTConfiguration, String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- MARKDOWN - com.composum.ai.backend.base.service.chat.GPTConfiguration.AnswerType
-
The default if nothing is requested - markdown is the "native" output form at least of ChatGPT.
- MARKDOWN - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- markdownToHtml(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
-
Opposite of
GPTChatCompletionService.htmlToMarkdown(String)
. - markdownToHtml(String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- maximumTokensPerRequest - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- maximumTokensPerRequest() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- maximumTokensPerResponse - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- maximumTokensPerResponse() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- maxRequestSize - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- maxRequestSize() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.GPTDictationServiceConfig
- MAXTOKENS - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
-
To respect limits of ChatGPT we replace in texts longer than this many words we replace the middle with [...] TODO: use an intelligent algorithm to determine this limit, but that's pretty hard for executePromptOnText.
- MAXTRIES - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
-
The maximum number of retries.
- merge(GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
Creates a configuration that joins the values.
- merge(GPTConfiguration, boolean) - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
Creates a configuration that joins the values.
- merge(GPTConfiguration, GPTConfiguration) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
GPTConfiguration.merge(GPTConfiguration)
several configurations. - mergeDelta(GPTFunctionCallDetails) - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
- mergeDelta(GPTToolCall) - Method in class com.composum.ai.backend.base.service.chat.GPTToolCall
-
When streaming, this merges the delta received during the stream.
- mergeDelta(ChatCompletionFunctionCallDetails) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
- mergeDelta(ChatCompletionToolCall) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
- mergeDelta(List<GPTToolCall>, List<GPTToolCall>) - Static method in class com.composum.ai.backend.base.service.chat.GPTToolCall
-
When streaming, this merges the delta received during the stream.
- mergeDelta(List<ChatCompletionToolCall>, List<ChatCompletionToolCall>) - Static method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
- mergeIn(GPTChatRequest) - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
-
Merges in additional parameters: maxtokens overwrites, if there is a system message it's appended to the current one, and the other messages are added at the back.
- MESSAGE_SEPARATOR - Static variable in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
-
matches the lines like ---------- system ---------- that separate the individual messages in the template
- model - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- model() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.GPTDictationServiceConfig
- modified(GPTDictationServiceImpl.GPTDictationServiceConfig) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- MULTITRANSLATION_SEPARATOR_END - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
-
End of separator like `573472 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%` .
- MULTITRANSLATION_SEPARATOR_PATTERN - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
-
Regexp matching separator like `%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 573472 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%` (group "id" matches the number).
- MULTITRANSLATION_SEPARATOR_START - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
-
Start of separator like `%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 573472 %%%%%%%%%%%%%%%%` .
N
- NULLCFG - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
O
- of(String) - Static method in class com.composum.ai.backend.base.impl.RateLimiter
-
Tries to find something like "Limit: 3 / min." in errorbody and returns a RateLimiter for that.
- ofAdditionalInstructions(String) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- ofContext(String, String) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- ofContexts(List<GPTConfiguration.GPTContextInfo>) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- ofMaxTokens(Integer) - Static method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
-
Returns a new request with either maxTokens set if that's given, or just an empty request.
- ofRichText(boolean) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
Returns
GPTConfiguration.HTML
if richText is true,GPTConfiguration.MARKDOWN
otherwise. - ofTemperature(Double) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- ofTools(List<GPTTool>) - Static method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- onError(Throwable) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
- onError(Throwable) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
- onError(Throwable) - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
-
Called when an error occurs.
- onFinish(GPTFinishReason) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
- onFinish(GPTFinishReason) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
- onFinish(GPTFinishReason) - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
-
This is called when the response is complete to specify the reason (e.g.
- onNext(String) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
- onNext(String) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
- onNext(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
-
Called when a couple of characters come in.
- OPENAI_API_KEY - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
-
Environment variable where we take the key from, if not configured directly.
- OPENAI_API_KEY_SYSPROP - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
-
System property where we take the key from, if not configured directly.
- OPENAI_EMBEDDINGS_URL - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- openAiApiKey() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- openAiApiKeyFile() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- OpenAIEmbeddings - Interface in com.composum.ai.backend.base.service.chat.impl.chatmodel
-
Request and response for OpenAI embeddings API.
- OpenAIEmbeddings.EmbeddingObject - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
- OpenAIEmbeddings.EmbeddingRequest - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
- OpenAIEmbeddings.EmbeddingResponse - Class in com.composum.ai.backend.base.service.chat.impl.chatmodel
- openAIHelper - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- openAiOrganizationId() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- organizationId - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
P
- PATTERN_HAS_LETTER - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- PATTERN_LIMIT_ERROR - Static variable in class com.composum.ai.backend.base.impl.RateLimiter
- PATTERN_SEPARATE_WHITESPACE - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
-
Separate whitespace at the beginning and end from the non-whitespace text.
- PATTERN_TRY_AGAIN - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- performCallAsync(CompletableFuture<Void>, long, SimpleHttpRequest, GPTCompletionCallback, int, long) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
-
Executes a call with retries.
- PLACEHOLDER_MARKER - Static variable in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
-
If that's in a string, it likely contains placeholders.
- PLACEHOLDER_PATTERN - Static variable in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
- PLACEHOLDER_TEXT - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- PLACEHOLDER_WORDCOUNTLIMIT - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- processBlocks(List<List<String>>) - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
- putCachedEmbedding(String, String) - Method in interface com.composum.ai.backend.base.service.chat.GPTEmbeddingService.EmbeddingsCache
R
- RateLimiter - Class in com.composum.ai.backend.base.impl
-
This class is used to limit the rate of requests to the chat service.
- RateLimiter(RateLimiter, int, int, TimeUnit) - Constructor for class com.composum.ai.backend.base.impl.RateLimiter
-
Constructs a rate limiter with a parent.
- read() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.LimitedInputStream
- read(byte[], int, int) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.LimitedInputStream
- recalculateDelay(String, long) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
-
If the response body contains a string like "Please try again in 20s." (number varies) we return a value of that many seconds, otherwise just use iterative doubling.
- registry - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- releaseResources() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
- replaceContexts(List<GPTConfiguration.GPTContextInfo>) - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
Returns a copy with the contexts replaced.
- requestCounter - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- requestsPerDay() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- requestsPerDay() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.GPTDictationServiceConfig
- requestsPerHour() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- requestsPerHour() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.GPTDictationServiceConfig
- requestsPerMinute() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- requestsPerMinute() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl.GPTDictationServiceConfig
- requestTimeout - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- requestTimeout() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- ResponseFormat() - Constructor for class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormat
- responseProblem(String, String) - Method in interface com.composum.ai.backend.base.service.chat.GPTResponseCheck
-
Performs a check, and if the check fails it returns additional instructions with which the request is retried.
- result - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.EnsureResultFutureCallback
- result - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
- resultBuilder - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
- retrieveForwardFragment() - Method in class com.composum.ai.backend.base.service.StringstreamSlowdown
-
Returns the longest fragment of
StringstreamSlowdown.collected
ending in a whitespace or punctuation character. - retrieveOpenAIKey(GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig) - Static method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- RetryableException(String) - Constructor for exception com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.RetryableException
S
- sb - Variable in class com.composum.ai.backend.base.service.chat.impl.HtmlToMarkdownConverter
- scheduledExecutorService - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- seed - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- seed - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- seed() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- seed() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl.Config
- separateResultTexts(String, List<String>, List<String>, String) - Static method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- serialize(List<ChatCompletionMessagePart>, Type, JsonSerializationContext) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessagePartListDeSerializer
-
To save space: if there is only one element in src that also is a text message, we serialize it as a string, otherwise as object list.
- setArguments(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
- setChoices(List<ChatCompletionChoice>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- setCompletionTokens(int) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
- setConfiguration(GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
-
Optionally, sets the configuration.
- setContent(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoiceMessage
- setContent(List<ChatCompletionMessagePart>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
- setCreated(long) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- setData(List<OpenAIEmbeddings.EmbeddingObject>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingResponse
- setDelta(ChatCompletionChoiceMessage) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
- setDescription(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
- setDetail(ChatCompletionMessagePart.ImageDetail) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessageUrlPart
- setDimensions(Integer) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
- setEmbedding(float[]) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingObject
- setEncodingFormat(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
- setFinishReason(ChatCompletionResponse.FinishReason) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
- setFunction(ChatCompletionFunctionCallDetails) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
- setFunction(ChatCompletionFunctionDetails) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatTool
- setId(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- setId(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
- setImageUrl(ChatCompletionMessagePart.ChatCompletionMessageUrlPart) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
- setIndex(int) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
- setIndex(int) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
- setIndex(Integer) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingObject
- setInput(List<String>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
- setLoggingId(String) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
- setLoggingId(String) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
- setLoggingId(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
-
For debugging: this sets the internal ID that is used for logging purposes.
- setMaxTokens(Integer) - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
-
Optionally, sets the maximum number of tokens (approx.
- setMaxTokens(Integer) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- setMessage(ChatCompletionChoiceMessage) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoice
- setMessages(List<ChatCompletionMessage>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- setModel(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- setModel(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- setModel(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
- setName(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
- setName(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
- setObject(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- setParameters(Object) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
- setPromptTokens(int) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
- setRequest(String) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
- setRequest(String) - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
-
For debugging - the request that was sent to ChatGPT as JSON.
- setResponseFormat(ChatCompletionRequest.ResponseFormat) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- setRole(ChatCompletionRequest.Role) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoiceMessage
- setRole(ChatCompletionRequest.Role) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
- setSeed(Integer) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- setStream(Boolean) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- setStrict(Boolean) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionDetails
- setSystemFingerprint(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- setTemperature(Double) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- setText(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
- setToolCallId(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
- setToolCalls(List<ChatCompletionToolCall>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionChoiceMessage
- setToolCalls(List<ChatCompletionToolCall>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessage
- setTools(List<ChatTool>) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest
- setTotalTokens(int) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionUsage
- setType(ChatCompletionMessagePart.Type) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
- setType(ChatCompletionRequest.ResponseFormatType) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormat
- setType(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
- setType(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatTool
- setUrl(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ChatCompletionMessageUrlPart
- setUsage(ChatCompletionUsage) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse
- setUser(String) - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.OpenAIEmbeddings.EmbeddingRequest
- shorten(String, int) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
-
Helper method to shorten texts by taking out the middle if too long.
- shorten(String, int) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- singleTranslation(String, String, String, GPTConfiguration) - Method in interface com.composum.ai.backend.base.service.chat.GPTTranslationService
-
Translate the text from the target to destination language, either Java locale name or language name.
- singleTranslation(String, String, String, GPTConfiguration) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
-
Translate the text from the target to destination language, either Java locale name or language name.
- sleep(long) - Method in class com.composum.ai.backend.base.impl.RateLimiter
-
Provides the possibility to fake time, for easy unittests.
- STANDARD_INTELLIGENCE - Static variable in class com.composum.ai.backend.base.service.chat.GPTConfiguration
-
Requests faster and less expensive "normal intelligence" model.
- start(HttpResponse, ContentType) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
- STOP - com.composum.ai.backend.base.service.chat.GPTFinishReason
-
The response is complete.
- STOP - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
- StreamDecodingResponseConsumer(GPTCompletionCallback, CompletableFuture<Void>, long) - Constructor for class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.StreamDecodingResponseConsumer
-
The result of the webservice call is written to callback; result is set when either it completed or aborted.
- streamingChatCompletion(GPTChatRequest, GPTCompletionCallback) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
-
Give some messages and receive the streaming response via callback, to reduce waiting time.
- streamingChatCompletion(GPTChatRequest, GPTCompletionCallback) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- streamingChatCompletionWithToolCalls(GPTChatRequest, GPTCompletionCallback) - Method in interface com.composum.ai.backend.base.service.chat.GPTChatCompletionService
-
Give some messages and receive the streaming response via callback, to reduce waiting time.
- streamingChatCompletionWithToolCalls(GPTChatRequest, GPTCompletionCallback) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- streamingSingleTranslation(String, String, String, GPTConfiguration, GPTCompletionCallback) - Method in interface com.composum.ai.backend.base.service.chat.GPTTranslationService
-
Translate the text from the target to destination language, either Java locale name or language name.
- streamingSingleTranslation(String, String, String, GPTConfiguration, GPTCompletionCallback) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- StringstreamSlowdown - Class in com.composum.ai.backend.base.service
-
For a stream of String segments (like the ChatGPT tokens that trickle in from ChatGPT when streaming) this collects the parts and forwards the collected part every 500ms to a given consumer.
- StringstreamSlowdown(Consumer<String>, long) - Constructor for class com.composum.ai.backend.base.service.StringstreamSlowdown
-
Sets the target where we forward the collected strings.
- SYSTEM - com.composum.ai.backend.base.service.chat.GPTMessageRole
-
The system message helps set the behavior of the assistant.
- SYSTEM - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.Role
T
- temperature - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- temperature - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
- temperature() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl.GPTChatCompletionServiceConfig
- temperature() - Method in annotation type com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl.Config
- TEMPLATE_CHATPROMPTONTEXT - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- TEMPLATE_MAKEDESCRIPTION - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- TEMPLATE_MAKEKEYWORDS - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
-
Template for
GPTChatMessagesTemplate
to generate keywords from a text. - TEMPLATE_PROMPTONTEXT - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl
- TEMPLATE_SINGLETRANSLATION - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl
-
Template for
GPTChatMessagesTemplate
to translate a single word or phrase. - TEMPLATEDIR - Static variable in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
- templates - Variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
- TEMPLATESUFFIX - Static variable in class com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate
- text(String) - Static method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart
- TEXT - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.Type
- TEXT - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormatType
- toGPTFinishReason(ChatCompletionResponse.FinishReason) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
- toGptFuctionCallDetails() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionFunctionCallDetails
- toGptToolCall() - Method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
- toGptToolCallList(List<ChatCompletionToolCall>) - Static method in class com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionToolCall
-
Turns the list into a
GPTToolCall
list observing theChatCompletionToolCall.getIndex()
. - TOOL - com.composum.ai.backend.base.service.chat.GPTMessageRole
-
A result of a tool call the assistant made.
- TOOL - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.Role
- TOOL_CALLS - com.composum.ai.backend.base.service.chat.GPTFinishReason
-
Model decided to call one or more tools.
- TOOL_CALLS - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
- toolDelta(List<GPTToolCall>) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCallbackWrapper
- toolDelta(List<GPTToolCall>) - Method in class com.composum.ai.backend.base.service.chat.GPTCompletionCallback.GPTCompletionCollector
- toolDelta(List<GPTToolCall>) - Method in interface com.composum.ai.backend.base.service.chat.GPTCompletionCallback
-
Called when a tool call is made.
- toString() - Method in class com.composum.ai.backend.base.service.chat.GPTChatMessage
-
String representation only for debugging.
- toString() - Method in class com.composum.ai.backend.base.service.chat.GPTChatRequest
- toString() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration.GPTContextInfo
- toString() - Method in class com.composum.ai.backend.base.service.chat.GPTConfiguration
- toString() - Method in class com.composum.ai.backend.base.service.chat.GPTFunctionCallDetails
-
String representation for debugging.
- toString() - Method in enum com.composum.ai.backend.base.service.chat.GPTMessageRole
- toString() - Method in class com.composum.ai.backend.base.service.chat.GPTToolCall
-
String representation for debugging.
- transcribe(InputStream, String, String, GPTConfiguration, String) - Method in interface com.composum.ai.backend.base.service.chat.GPTDictationService
-
Transcribes the input audio to text.
- transcribe(InputStream, String, String, GPTConfiguration, String) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- triggerCallAsync(long, SimpleHttpRequest, GPTCompletionCallback) - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
-
Puts the call into the pipeline; the returned future will be set normally or exceptionally when it's done.
- TRUNCATE_MARKER - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
U
- URL_OPENAI_TRANSCRIPTIONS - Static variable in class com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl
- USER - com.composum.ai.backend.base.service.chat.GPTMessageRole
-
The user messages help instruct the assistant.
- USER - com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.Role
V
- valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.GPTConfiguration.AnswerType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.GPTConfiguration.Mode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.GPTFinishReason
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.GPTMessageRole
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ImageDetail
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormatType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.Role
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.composum.ai.backend.base.service.chat.GPTConfiguration.AnswerType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.composum.ai.backend.base.service.chat.GPTConfiguration.Mode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.composum.ai.backend.base.service.chat.GPTFinishReason
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.composum.ai.backend.base.service.chat.GPTMessageRole
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.ImageDetail
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionMessagePart.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.ResponseFormatType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionRequest.Role
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.composum.ai.backend.base.service.chat.impl.chatmodel.ChatCompletionResponse.FinishReason
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- waitForLimit() - Method in class com.composum.ai.backend.base.impl.RateLimiter
-
For a synchronous call:
RateLimiter.waitForLimit()
has to be called before starting the request; it'll make sure the rate limit is not exceeded. - waitForLimit() - Method in class com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl
All Classes All Packages