diff --git a/src/main/java/org/codelibs/fess/helper/ChatApiHelper.java b/src/main/java/org/codelibs/fess/helper/ChatApiHelper.java index 40c7e9318..52a72d349 100644 --- a/src/main/java/org/codelibs/fess/helper/ChatApiHelper.java +++ b/src/main/java/org/codelibs/fess/helper/ChatApiHelper.java @@ -371,8 +371,12 @@ public String resolveChatRateLimitKey(final String username, final java.util.fun } /** - * Resolves {@code rag.chat.message.max.length} from fess_config system properties, - * defaulting to {@code 4000} on parse failure. + * Resolves {@code rag.chat.message.max.length}, defaulting to {@code 4000} when it is + * unset or unparseable. + * + *
This is a system property: it is read from {@code conf/system.properties}, then
+ * {@code -Dfess.system.rag.chat.message.max.length}. It is deliberately not declared in
+ * {@code fess_config.properties}, which this channel never consults.
*
* @param fessConfig active Fess config
* @return max chat message length in characters
diff --git a/src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java b/src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java
index 0cf858b8c..3624b8d3e 100644
--- a/src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java
+++ b/src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java
@@ -2077,9 +2077,6 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
/** The key of the configuration. e.g. title,url,content,doc_id,content_title,content_description */
String RAG_CHAT_CONTENT_FIELDS = "rag.chat.content.fields";
- /** The key of the configuration. e.g. 4000 */
- String RAG_CHAT_MESSAGE_MAX_LENGTH = "rag.chat.message.max.length";
-
/** The key of the configuration. e.g. 500 */
String RAG_CHAT_HIGHLIGHT_FRAGMENT_SIZE = "rag.chat.highlight.fragment.size";
@@ -2158,15 +2155,6 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
/** The key of the configuration. e.g. 7 */
String THEME_UPLOAD_ATTIC_RETENTION_DAYS = "theme.upload.attic.retention.days";
- /** The key of the configuration. e.g. zip */
- String THEME_ALLOWED_ARCHIVE_EXTENSIONS = "theme.allowed.archive.extensions";
-
- /** The key of the configuration. e.g. 86400 */
- String THEME_ASSETS_CACHE_MAX_AGE = "theme.assets.cache.max.age";
-
- /** The key of the configuration. e.g. true */
- String THEME_ASSETS_PRECOMPRESSED = "theme.assets.precompressed";
-
/** The key of the configuration. e.g. */
String THEME_API_CSRF_SERVER_ORIGINS = "theme.api.csrf.server.origins";
@@ -9978,21 +9966,6 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
*/
String getRagChatContentFields();
- /**
- * Get the value for the key 'rag.chat.message.max.length'.
- * The value is, e.g. 4000
- * @return The value of found property. (NotNull: if not found, exception but basically no way)
- */
- String getRagChatMessageMaxLength();
-
- /**
- * Get the value for the key 'rag.chat.message.max.length' as {@link Integer}.
- * The value is, e.g. 4000
- * @return The value of found property. (NotNull: if not found, exception but basically no way)
- * @throws NumberFormatException When the property is not integer.
- */
- Integer getRagChatMessageMaxLengthAsInteger();
-
/**
* Get the value for the key 'rag.chat.highlight.fragment.size'.
* The value is, e.g. 500
@@ -10385,42 +10358,6 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
*/
Integer getThemeUploadAtticRetentionDaysAsInteger();
- /**
- * Get the value for the key 'theme.allowed.archive.extensions'.
- * The value is, e.g. zip
- * @return The value of found property. (NotNull: if not found, exception but basically no way)
- */
- String getThemeAllowedArchiveExtensions();
-
- /**
- * Get the value for the key 'theme.assets.cache.max.age'.
- * The value is, e.g. 86400
- * @return The value of found property. (NotNull: if not found, exception but basically no way)
- */
- String getThemeAssetsCacheMaxAge();
-
- /**
- * Get the value for the key 'theme.assets.cache.max.age' as {@link Integer}.
- * The value is, e.g. 86400
- * @return The value of found property. (NotNull: if not found, exception but basically no way)
- * @throws NumberFormatException When the property is not integer.
- */
- Integer getThemeAssetsCacheMaxAgeAsInteger();
-
- /**
- * Get the value for the key 'theme.assets.precompressed'.
- * The value is, e.g. true
- * @return The value of found property. (NotNull: if not found, exception but basically no way)
- */
- String getThemeAssetsPrecompressed();
-
- /**
- * Is the property for the key 'theme.assets.precompressed' true?
- * The value is, e.g. true
- * @return The determination, true or false. (if not found, exception but basically no way)
- */
- boolean isThemeAssetsPrecompressed();
-
/**
* Get the value for the key 'theme.api.csrf.server.origins'.
* The value is, e.g.
@@ -14176,14 +14113,6 @@ public String getRagChatContentFields() {
return get(FessConfig.RAG_CHAT_CONTENT_FIELDS);
}
- public String getRagChatMessageMaxLength() {
- return get(FessConfig.RAG_CHAT_MESSAGE_MAX_LENGTH);
- }
-
- public Integer getRagChatMessageMaxLengthAsInteger() {
- return getAsInteger(FessConfig.RAG_CHAT_MESSAGE_MAX_LENGTH);
- }
-
public String getRagChatHighlightFragmentSize() {
return get(FessConfig.RAG_CHAT_HIGHLIGHT_FRAGMENT_SIZE);
}
@@ -14372,26 +14301,6 @@ public Integer getThemeUploadAtticRetentionDaysAsInteger() {
return getAsInteger(FessConfig.THEME_UPLOAD_ATTIC_RETENTION_DAYS);
}
- public String getThemeAllowedArchiveExtensions() {
- return get(FessConfig.THEME_ALLOWED_ARCHIVE_EXTENSIONS);
- }
-
- public String getThemeAssetsCacheMaxAge() {
- return get(FessConfig.THEME_ASSETS_CACHE_MAX_AGE);
- }
-
- public Integer getThemeAssetsCacheMaxAgeAsInteger() {
- return getAsInteger(FessConfig.THEME_ASSETS_CACHE_MAX_AGE);
- }
-
- public String getThemeAssetsPrecompressed() {
- return get(FessConfig.THEME_ASSETS_PRECOMPRESSED);
- }
-
- public boolean isThemeAssetsPrecompressed() {
- return is(FessConfig.THEME_ASSETS_PRECOMPRESSED);
- }
-
public String getThemeApiCsrfServerOrigins() {
return get(FessConfig.THEME_API_CSRF_SERVER_ORIGINS);
}
@@ -15060,7 +14969,6 @@ protected java.util.Map