2023-08-21 13:46:34 -04:00
|
|
|
discourse_ai:
|
2023-02-23 09:08:34 -05:00
|
|
|
discourse_ai_enabled:
|
2023-02-17 09:33:47 -05:00
|
|
|
default: true
|
|
|
|
client: true
|
2024-11-18 17:22:39 -05:00
|
|
|
ai_artifact_security:
|
|
|
|
client: true
|
|
|
|
type: enum
|
|
|
|
default: "strict"
|
|
|
|
choices:
|
|
|
|
- "disabled"
|
|
|
|
- "lax"
|
|
|
|
- "strict"
|
2023-02-22 18:46:53 -05:00
|
|
|
|
|
|
|
ai_sentiment_enabled:
|
|
|
|
default: false
|
|
|
|
client: true
|
2024-11-04 07:14:34 -05:00
|
|
|
ai_sentiment_model_configs:
|
2024-01-10 17:23:07 -05:00
|
|
|
default: ""
|
2024-11-04 07:14:34 -05:00
|
|
|
json_schema: DiscourseAi::Sentiment::SentimentSiteSettingJsonSchema
|
2023-05-11 22:54:25 -04:00
|
|
|
|
2023-11-26 21:01:05 -05:00
|
|
|
ai_openai_dall_e_3_url: "https://api.openai.com/v1/images/generations"
|
2023-06-20 20:39:51 -04:00
|
|
|
ai_openai_embeddings_url: "https://api.openai.com/v1/embeddings"
|
2024-08-12 18:40:23 -04:00
|
|
|
ai_openai_organization:
|
2024-07-30 12:44:57 -04:00
|
|
|
default: ""
|
|
|
|
hidden: true
|
2023-03-07 14:14:39 -05:00
|
|
|
ai_openai_api_key:
|
|
|
|
default: ""
|
2023-05-11 22:54:25 -04:00
|
|
|
secret: true
|
2023-05-19 19:38:08 -04:00
|
|
|
ai_stability_api_key:
|
|
|
|
default: ""
|
|
|
|
secret: true
|
|
|
|
ai_stability_api_url:
|
|
|
|
default: "https://api.stability.ai"
|
|
|
|
ai_stability_engine:
|
2023-08-02 15:53:28 -04:00
|
|
|
default: "stable-diffusion-xl-1024-v1-0"
|
2023-05-20 03:45:54 -04:00
|
|
|
type: enum
|
|
|
|
choices:
|
2024-04-19 04:08:16 -04:00
|
|
|
- "sd3"
|
|
|
|
- "sd3-turbo"
|
2023-08-02 15:53:28 -04:00
|
|
|
- "stable-diffusion-xl-1024-v1-0"
|
|
|
|
- "stable-diffusion-768-v2-1"
|
2023-05-20 03:45:54 -04:00
|
|
|
- "stable-diffusion-v1-5"
|
2023-11-28 15:05:26 -05:00
|
|
|
ai_hugging_face_tei_endpoint:
|
|
|
|
default: ""
|
2023-12-18 11:21:21 -05:00
|
|
|
ai_hugging_face_tei_endpoint_srv:
|
|
|
|
default: ""
|
|
|
|
hidden: true
|
2024-01-10 17:23:07 -05:00
|
|
|
ai_hugging_face_tei_api_key: ""
|
2024-03-08 11:02:50 -05:00
|
|
|
ai_hugging_face_tei_reranker_endpoint:
|
|
|
|
default: ""
|
|
|
|
ai_hugging_face_tei_reranker_endpoint_srv:
|
|
|
|
default: ""
|
|
|
|
hidden: true
|
|
|
|
ai_hugging_face_tei_reranker_api_key: ""
|
2023-05-20 03:45:54 -04:00
|
|
|
ai_google_custom_search_api_key:
|
|
|
|
default: ""
|
|
|
|
secret: true
|
|
|
|
ai_google_custom_search_cx:
|
|
|
|
default: ""
|
2023-10-04 12:47:51 -04:00
|
|
|
ai_cloudflare_workers_account_id:
|
|
|
|
default: ""
|
|
|
|
secret: true
|
|
|
|
ai_cloudflare_workers_api_token:
|
|
|
|
default: ""
|
|
|
|
secret: true
|
2023-12-15 12:32:01 -05:00
|
|
|
ai_gemini_api_key:
|
|
|
|
default: ""
|
2024-11-07 09:55:18 -05:00
|
|
|
hidden: false
|
2024-03-14 16:33:30 -04:00
|
|
|
ai_strict_token_counting:
|
|
|
|
default: false
|
|
|
|
hidden: true
|
2023-03-15 16:02:20 -04:00
|
|
|
|
2024-08-12 18:40:23 -04:00
|
|
|
ai_helper_enabled:
|
2023-03-15 16:02:20 -04:00
|
|
|
default: false
|
|
|
|
client: true
|
2024-01-29 14:04:25 -05:00
|
|
|
validator: "DiscourseAi::Configuration::LlmDependencyValidator"
|
2024-08-12 18:40:23 -04:00
|
|
|
composer_ai_helper_allowed_groups:
|
2023-03-15 16:02:20 -04:00
|
|
|
type: group_list
|
|
|
|
list_type: compact
|
|
|
|
default: "3|14" # 3: @staff, 14: @trust_level_4
|
|
|
|
allow_any: false
|
|
|
|
refresh: true
|
|
|
|
ai_helper_allowed_in_pm:
|
|
|
|
default: false
|
|
|
|
client: true
|
2023-03-28 22:22:34 -04:00
|
|
|
ai_helper_model:
|
2024-01-29 14:04:25 -05:00
|
|
|
default: ""
|
|
|
|
allow_any: false
|
2023-03-28 22:22:34 -04:00
|
|
|
type: enum
|
2024-01-29 14:04:25 -05:00
|
|
|
enum: "DiscourseAi::Configuration::LlmEnumerator"
|
|
|
|
validator: "DiscourseAi::Configuration::LlmValidator"
|
2023-09-25 14:12:54 -04:00
|
|
|
ai_helper_custom_prompts_allowed_groups:
|
|
|
|
type: group_list
|
|
|
|
list_type: compact
|
|
|
|
default: "3" # 3: @staff
|
|
|
|
allow_any: false
|
|
|
|
refresh: true
|
2023-10-23 10:41:36 -04:00
|
|
|
post_ai_helper_allowed_groups:
|
|
|
|
type: group_list
|
|
|
|
list_type: compact
|
|
|
|
default: "3|14" # 3: @staff, 14: @trust_level_4
|
|
|
|
allow_any: false
|
|
|
|
refresh: true
|
2023-10-30 10:56:33 -04:00
|
|
|
ai_helper_automatic_chat_thread_title:
|
|
|
|
default: false
|
|
|
|
ai_helper_automatic_chat_thread_title_delay:
|
|
|
|
default: 5
|
2024-01-05 12:03:23 -05:00
|
|
|
ai_helper_illustrate_post_model:
|
|
|
|
default: disabled
|
|
|
|
type: enum
|
|
|
|
choices:
|
|
|
|
- stable_diffusion_xl
|
|
|
|
- dall_e_3
|
|
|
|
- disabled
|
2024-02-01 17:58:04 -05:00
|
|
|
ai_helper_enabled_features:
|
|
|
|
client: true
|
|
|
|
default: "suggestions|context_menu"
|
|
|
|
type: list
|
|
|
|
list_type: compact
|
|
|
|
allow_any: false
|
|
|
|
refresh: true
|
|
|
|
choices:
|
|
|
|
- "suggestions"
|
|
|
|
- "context_menu"
|
2024-02-19 16:08:19 -05:00
|
|
|
- "image_caption"
|
2024-02-19 12:56:28 -05:00
|
|
|
ai_helper_image_caption_model:
|
2024-07-24 15:29:47 -04:00
|
|
|
default: ""
|
2024-02-19 12:56:28 -05:00
|
|
|
type: enum
|
2024-05-28 09:31:15 -04:00
|
|
|
enum: "DiscourseAi::Configuration::LlmVisionEnumerator"
|
2024-05-27 13:49:24 -04:00
|
|
|
ai_auto_image_caption_allowed_groups:
|
|
|
|
client: true
|
|
|
|
type: group_list
|
|
|
|
list_type: compact
|
|
|
|
default: "10" # 10: @trust_level_0
|
|
|
|
allow_any: false
|
|
|
|
refresh: true
|
2024-08-28 14:57:58 -04:00
|
|
|
ai_helper_model_allowed_seeded_models:
|
|
|
|
default: ""
|
|
|
|
hidden: true
|
|
|
|
type: list
|
|
|
|
list_type: compact
|
|
|
|
ai_helper_image_caption_model_allowed_seeded_models:
|
|
|
|
default: ""
|
|
|
|
hidden: true
|
|
|
|
type: list
|
|
|
|
list_type: compact
|
2024-03-05 14:04:37 -05:00
|
|
|
|
2023-05-11 22:54:25 -04:00
|
|
|
ai_embeddings_enabled:
|
2023-03-31 14:29:56 -04:00
|
|
|
default: false
|
|
|
|
client: true
|
2024-02-01 14:54:09 -05:00
|
|
|
validator: "DiscourseAi::Configuration::EmbeddingsModuleValidator"
|
2023-03-15 16:21:45 -04:00
|
|
|
ai_embeddings_discourse_service_api_endpoint: ""
|
2024-01-10 17:23:07 -05:00
|
|
|
ai_embeddings_discourse_service_api_endpoint_srv:
|
|
|
|
default: ""
|
|
|
|
hidden: true
|
2023-05-11 22:54:25 -04:00
|
|
|
ai_embeddings_discourse_service_api_key:
|
|
|
|
default: ""
|
|
|
|
secret: true
|
2023-07-13 11:41:36 -04:00
|
|
|
ai_embeddings_model:
|
|
|
|
type: enum
|
2024-02-01 12:06:51 -05:00
|
|
|
default: "bge-large-en"
|
2023-03-15 16:21:45 -04:00
|
|
|
allow_any: false
|
2024-02-01 12:06:51 -05:00
|
|
|
choices:
|
|
|
|
- all-mpnet-base-v2
|
|
|
|
- text-embedding-ada-002
|
|
|
|
- text-embedding-3-small
|
|
|
|
- text-embedding-3-large
|
|
|
|
- multilingual-e5-large
|
|
|
|
- bge-large-en
|
|
|
|
- gemini
|
2024-04-10 16:24:01 -04:00
|
|
|
- bge-m3
|
2024-02-01 14:54:09 -05:00
|
|
|
validator: "DiscourseAi::Configuration::EmbeddingsModelValidator"
|
2024-01-30 13:51:54 -05:00
|
|
|
ai_embeddings_per_post_enabled:
|
|
|
|
default: false
|
|
|
|
hidden: true
|
2023-03-15 16:21:45 -04:00
|
|
|
ai_embeddings_generate_for_pms: false
|
2023-08-28 20:43:58 -04:00
|
|
|
ai_embeddings_semantic_related_topics_enabled:
|
2023-08-22 13:10:21 -04:00
|
|
|
default: false
|
|
|
|
client: true
|
2023-03-30 20:04:34 -04:00
|
|
|
ai_embeddings_semantic_related_topics: 5
|
2023-05-09 14:30:50 -04:00
|
|
|
ai_embeddings_semantic_related_include_closed_topics: true
|
2023-10-26 11:07:37 -04:00
|
|
|
ai_embeddings_backfill_batch_size:
|
|
|
|
default: 250
|
|
|
|
hidden: true
|
2023-08-29 16:39:21 -04:00
|
|
|
ai_embeddings_pg_connection_string:
|
|
|
|
default: ""
|
|
|
|
hidden: true
|
2023-04-03 10:48:38 -04:00
|
|
|
ai_embeddings_semantic_search_enabled:
|
|
|
|
default: false
|
|
|
|
client: true
|
2024-01-29 14:04:25 -05:00
|
|
|
validator: "DiscourseAi::Configuration::LlmDependencyValidator"
|
2023-09-05 10:08:23 -04:00
|
|
|
ai_embeddings_semantic_search_hyde_model:
|
2024-01-29 14:04:25 -05:00
|
|
|
default: ""
|
2023-09-05 10:08:23 -04:00
|
|
|
type: enum
|
|
|
|
allow_any: false
|
2024-01-29 14:04:25 -05:00
|
|
|
enum: "DiscourseAi::Configuration::LlmEnumerator"
|
|
|
|
validator: "DiscourseAi::Configuration::LlmValidator"
|
2024-08-28 14:57:58 -04:00
|
|
|
ai_embeddings_semantic_search_hyde_model_allowed_seeded_models:
|
|
|
|
default: ""
|
|
|
|
hidden: true
|
|
|
|
type: list
|
|
|
|
list_type: compact
|
2024-03-08 11:02:50 -05:00
|
|
|
ai_embeddings_semantic_quick_search_enabled:
|
|
|
|
default: false
|
|
|
|
client: true
|
2024-04-05 11:12:37 -04:00
|
|
|
hidden: true
|
2024-07-03 20:48:18 -04:00
|
|
|
ai_summarization_enabled:
|
|
|
|
default: false
|
2024-10-28 14:15:53 -04:00
|
|
|
client: true
|
2024-07-03 20:48:18 -04:00
|
|
|
validator: "DiscourseAi::Configuration::LlmDependencyValidator"
|
|
|
|
ai_summarization_model:
|
2024-07-02 11:51:59 -04:00
|
|
|
default: ""
|
2024-07-03 20:48:18 -04:00
|
|
|
allow_any: false
|
|
|
|
type: enum
|
|
|
|
enum: "DiscourseAi::Configuration::LlmEnumerator"
|
|
|
|
validator: "DiscourseAi::Configuration::LlmValidator"
|
2024-08-20 17:58:24 -04:00
|
|
|
ai_pm_summarization_allowed_groups:
|
|
|
|
type: group_list
|
|
|
|
list_type: compact
|
|
|
|
default: ""
|
2024-07-02 11:51:59 -04:00
|
|
|
ai_custom_summarization_allowed_groups:
|
|
|
|
type: group_list
|
|
|
|
list_type: compact
|
|
|
|
default: "3|13" # 3: @staff, 13: @trust_level_3
|
2024-11-26 11:44:12 -05:00
|
|
|
ai_summary_gists_enabled:
|
|
|
|
default: false
|
2024-11-25 10:24:02 -05:00
|
|
|
hidden: true
|
2024-11-26 11:44:12 -05:00
|
|
|
ai_summary_gists_allowed_groups:
|
2024-10-21 14:15:25 -04:00
|
|
|
type: group_list
|
|
|
|
list_type: compact
|
2024-12-02 13:22:35 -05:00
|
|
|
default: "0" #everyone
|
2024-07-03 20:48:18 -04:00
|
|
|
hidden: true
|
2024-08-28 14:57:58 -04:00
|
|
|
ai_summarization_model_allowed_seeded_models:
|
|
|
|
default: ""
|
|
|
|
hidden: true
|
|
|
|
type: list
|
|
|
|
list_type: compact
|
2024-12-02 13:22:35 -05:00
|
|
|
ai_summary_backfill_topic_max_age_days:
|
|
|
|
default: 30
|
|
|
|
min: 1
|
|
|
|
max: 10000
|
2024-11-04 15:48:11 -05:00
|
|
|
ai_summary_backfill_maximum_topics_per_hour:
|
2024-11-07 11:40:18 -05:00
|
|
|
default: 0
|
2024-11-04 15:48:11 -05:00
|
|
|
min: 0
|
2024-11-07 11:40:18 -05:00
|
|
|
max: 10000
|
2024-11-04 15:48:11 -05:00
|
|
|
ai_summary_backfill_minimum_word_count:
|
|
|
|
default: 200
|
|
|
|
hidden: true
|
2023-05-05 14:28:31 -04:00
|
|
|
|
|
|
|
ai_bot_enabled:
|
|
|
|
default: false
|
|
|
|
client: true
|
2023-08-16 16:29:58 -04:00
|
|
|
ai_bot_enable_chat_warning:
|
|
|
|
default: false
|
|
|
|
client: true
|
2024-04-15 09:22:06 -04:00
|
|
|
ai_bot_debugging_allowed_groups:
|
|
|
|
type: group_list
|
|
|
|
list_type: compact
|
|
|
|
default: ""
|
|
|
|
allow_any: false
|
2023-05-05 14:28:31 -04:00
|
|
|
ai_bot_allowed_groups:
|
|
|
|
type: group_list
|
|
|
|
list_type: compact
|
2023-05-11 09:03:03 -04:00
|
|
|
default: "3|14" # 3: @staff, 14: @trust_level_4
|
2024-03-12 01:51:41 -04:00
|
|
|
ai_bot_public_sharing_allowed_groups:
|
|
|
|
client: false
|
|
|
|
type: group_list
|
|
|
|
list_type: compact
|
|
|
|
default: "1|2" # 1: admins, 2: moderators
|
|
|
|
allow_any: false
|
|
|
|
refresh: true
|
2024-07-03 20:48:18 -04:00
|
|
|
ai_bot_enabled_chat_bots: # TODO(roman): Deprecated. Remove by Sept 2024
|
2023-05-11 09:03:03 -04:00
|
|
|
type: list
|
|
|
|
default: "gpt-3.5-turbo"
|
2024-06-18 13:32:14 -04:00
|
|
|
hidden: true
|
|
|
|
choices: "DiscourseAi::Configuration::LlmEnumerator.available_ai_bots"
|
2023-08-31 00:42:28 -04:00
|
|
|
ai_bot_add_to_header:
|
2023-05-16 13:38:21 -04:00
|
|
|
default: true
|
|
|
|
client: true
|
2024-03-07 14:37:23 -05:00
|
|
|
ai_bot_github_access_token:
|
|
|
|
default: ""
|
|
|
|
secret: true
|
2024-05-16 02:49:44 -04:00
|
|
|
ai_automation_max_triage_per_minute:
|
|
|
|
default: 60
|
|
|
|
hidden: true
|
|
|
|
ai_automation_max_triage_per_post_per_minute:
|
|
|
|
default: 2
|
|
|
|
hidden: true
|
2024-08-28 14:57:58 -04:00
|
|
|
ai_automation_allowed_seeded_models:
|
|
|
|
default: ""
|
|
|
|
hidden: true
|
|
|
|
type: list
|
|
|
|
list_type: compact
|
2024-10-16 11:41:18 -04:00
|
|
|
|
|
|
|
ai_discord_app_id:
|
|
|
|
default: ""
|
|
|
|
client: false
|
|
|
|
ai_discord_app_public_key:
|
|
|
|
default: ""
|
|
|
|
client: false
|
|
|
|
ai_discord_search_mode:
|
|
|
|
default: "search"
|
|
|
|
type: enum
|
|
|
|
choices:
|
|
|
|
- search
|
|
|
|
- persona
|
|
|
|
ai_discord_search_persona:
|
|
|
|
default: ""
|
|
|
|
type: enum
|
|
|
|
enum: "DiscourseAi::Configuration::PersonaEnumerator"
|
|
|
|
ai_discord_allowed_guilds:
|
|
|
|
type: list
|
|
|
|
list_type: compact
|
|
|
|
default: ""
|