Constant Field Values
Contents
com.composum.*
-
com.composum.ai.backend.base.service.chat.GPTChatMessagesTemplate Modifier and Type Constant Field Value public static final String
PLACEHOLDER_MARKER
"${"
public static final String
TEMPLATEDIR
"chattemplates/chatgpt/"
public static final String
TEMPLATESUFFIX
".txt"
-
com.composum.ai.backend.base.service.chat.impl.GPTChatCompletionServiceImpl Modifier and Type Constant Field Value protected static final String
CHAT_COMPLETION_URL
"https://api.openai.com/v1/chat/completions"
public static final String
DEFAULT_EMBEDDINGS_MODEL
"text-embedding-3-small"
public static final String
DEFAULT_HIGH_INTELLIGENCE_MODEL
"gpt-4o"
public static final String
DEFAULT_IMAGE_MODEL
"gpt-4o"
public static final String
DEFAULT_MODEL
"gpt-4o-mini"
protected static final int
DEFAULTVALUE_CONNECTIONTIMEOUT
30
protected static final int
DEFAULTVALUE_REQUESTS_PER_DAY
3000
protected static final int
DEFAULTVALUE_REQUESTS_PER_HOUR
1000
protected static final int
DEFAULTVALUE_REQUESTS_PER_MINUTE
100
protected static final int
DEFAULTVALUE_REQUESTTIMEOUT
300
public static final int
MAXTRIES
5
public static final String
OPENAI_API_KEY
"OPENAI_API_KEY"
public static final String
OPENAI_API_KEY_SYSPROP
"openai.api.key"
protected static final String
OPENAI_EMBEDDINGS_URL
"https://api.openai.com/v1/embeddings"
public static final String
TRUNCATE_MARKER
" ... (truncated) ... "
-
com.composum.ai.backend.base.service.chat.impl.GPTContentCreationServiceImpl Modifier and Type Constant Field Value protected static final int
MAXTOKENS
2800
public static final String
PLACEHOLDER_TEXT
"text"
public static final String
PLACEHOLDER_WORDCOUNTLIMIT
"wordcountlimit"
public static final String
TEMPLATE_CHATPROMPTONTEXT
"chatpromptontext"
public static final String
TEMPLATE_MAKEDESCRIPTION
"makedescription"
public static final String
TEMPLATE_MAKEKEYWORDS
"makekeywords"
public static final String
TEMPLATE_PROMPTONTEXT
"promptontext"
-
com.composum.ai.backend.base.service.chat.impl.GPTDictationServiceImpl Modifier and Type Constant Field Value protected static final int
DEFAULT_MAX_REQUEST_SIZE
5000000
protected static final String
DEFAULT_MODEL
"whisper-1"
protected static final int
DEFAULTVALUE_REQUESTS_PER_DAY
300
protected static final int
DEFAULTVALUE_REQUESTS_PER_HOUR
100
protected static final int
DEFAULTVALUE_REQUESTS_PER_MINUTE
30
public static final String
URL_OPENAI_TRANSCRIPTIONS
"https://api.openai.com/v1/audio/transcriptions"
-
com.composum.ai.backend.base.service.chat.impl.GPTTranslationServiceImpl Modifier and Type Constant Field Value public static final String
LASTID
"424242"
public static final String
MULTITRANSLATION_SEPARATOR_END
" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n"
public static final String
MULTITRANSLATION_SEPARATOR_START
"\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% "
public static final String
TEMPLATE_SINGLETRANSLATION
"singletranslation"
-
com.composum.ai.backend.slingbase.AIConfigurationServlet Modifier and Type Constant Field Value public static final String
PARAM_EDITORURL
"editorUrl"
-
com.composum.ai.backend.slingbase.AICreateServlet Modifier and Type Constant Field Value public static final String
PARAMETER_CHAT
"chat"
public static final String
PARAMETER_CONFIGBASEPATH
"configBasePath"
public static final String
PARAMETER_INPUT_IMAGE_PATH
"inputImagePath"
public static final String
PARAMETER_MAXTOKENS
"maxtokens"
public static final String
PARAMETER_PROMPT
"prompt"
public static final String
PARAMETER_RICHTEXT
"richText"
public static final String
PARAMETER_SOURCE
"source"
public static final String
PARAMETER_SOURCEPATH
"sourcePath"
public static final String
PARAMETER_STREAMID
"streamid"
public static final String
PARAMETER_TEXTLENGTH
"textLength"
-
com.composum.ai.backend.slingbase.AIDictationServlet Modifier and Type Constant Field Value public static final String
PARAMETER_AUDIO_STREAM
"audioStream"
public static final String
PARAMETER_CONTENT_TYPE
"contentType"
public static final String
PARAMETER_LANGUAGE
"language"
public static final String
PARAMETER_PROMPT
"prompt"
-
com.composum.ai.backend.slingbase.ApproximateMarkdownService Modifier and Type Constant Field Value public static final String
HEADER_IMAGEPATH
"imagepath"
-
com.composum.ai.backend.slingbase.ApproximateMarkdownServlet Modifier and Type Constant Field Value public static final String
PARAM_URL
"fromurl"
-
com.composum.ai.backend.slingbase.EventStream Modifier and Type Constant Field Value public static final String
QUEUEEND
":queueend"
-
com.composum.ai.backend.slingbase.experimential.AITemplatingServlet Modifier and Type Constant Field Value public static final String
PARAM_ADDITIONAL_PROMPT
"additionalPrompt"
public static final String
PARAM_ADDITIONAL_URLS
"additionalUrls"
public static final String
PARAM_BACKGROUND_INFORMATION
"backgroundInformation"
public static final String
PARAM_RESOURCE_PATH
"resourcePath"
-
com.composum.ai.backend.slingbase.experimential.impl.AITemplatingServiceImpl Modifier and Type Constant Field Value protected static final String
PREFIX_INFORMATIONALLY
"informationally#"
protected static final String
PREFIX_PROMPT
"Create a text for a web page that is based on the retrieved information according to the following instructions which are separated into several parts. The separators like \"%%%%%%%% (some ID to repeat) %%%%%%%%\" should be printed as they are, to structure both the output and the instructions.\n\n"
public static final String
PROPERTY_PREFIX_PROMPT
"ai_prompt_"
protected static final String
SYSMSG
"You are a professional content writer / editor.\nGenerate text according to the prompt, and then print it without any additional comments.\nDo not mention the prompt or the text or the act of text retrieval.\nDo NEVER EVER repeat the prompt!\nWrite your responses so that they could appear as they are in a text, without any comments or discussion."
protected static final String
THE_END_COMMAND
"Print as plain text: \'end of page\' in parentheses"
-
com.composum.ai.backend.slingbase.impl.MarkdownSlingCacheImpl Modifier and Type Constant Field Value public static final String
PROPERTY_MARKDOWN
"ai_approximateMarkdown"
public static final String
SUFFIX_PAGE_MODIFICATION_DATE
"PageModificationDate"
-
com.composum.ai.backend.slingbase.impl.RAGServlet Modifier and Type Constant Field Value public static final String
PARAM_EMBEDDINGORDER
"embeddingOrder"
public static final String
PARAM_LIMIT
"limit"
public static final String
PARAM_LIMITRAGTEXTS
"limitRagTexts"
public static final String
PARAM_PREPROCESS_QUERY
"preprocessQuery"
public static final String
PARAM_QUERY
"query"
-
com.composum.ai.backend.slingbase.model.GPTPermissionInfo Modifier and Type Constant Field Value public static final String
SERVICE_CATEGORIZE
"categorize"
public static final String
SERVICE_CREATE
"create"
public static final String
SERVICE_SIDEPANEL
"sidepanel"
public static final String
SERVICE_TRANSLATE
"translate"