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
|
2023-02-22 18:46:53 -05:00
|
|
|
|
|
|
|
ai_toxicity_enabled:
|
|
|
|
default: false
|
|
|
|
client: true
|
|
|
|
ai_toxicity_inference_service_api_endpoint:
|
|
|
|
default: "https://disorder-testing.demo-by-discourse.com"
|
2024-01-10 17:23:07 -05:00
|
|
|
ai_toxicity_inference_service_api_endpoint_srv:
|
|
|
|
default: ""
|
|
|
|
hidden: true
|
2023-02-22 18:46:53 -05:00
|
|
|
ai_toxicity_inference_service_api_key:
|
2023-09-25 14:12:54 -04:00
|
|
|
default: ""
|
2023-05-11 22:54:25 -04:00
|
|
|
secret: true
|
2023-02-22 18:46:53 -05:00
|
|
|
ai_toxicity_inference_service_api_model:
|
|
|
|
type: enum
|
|
|
|
default: unbiased
|
|
|
|
choices:
|
|
|
|
- unbiased
|
|
|
|
- multilingual
|
|
|
|
- original
|
|
|
|
ai_toxicity_flag_automatically:
|
2023-05-03 15:44:33 -04:00
|
|
|
default: false
|
2023-02-22 18:46:53 -05:00
|
|
|
client: false
|
|
|
|
ai_toxicity_flag_threshold_toxicity:
|
2023-03-31 12:03:44 -04:00
|
|
|
default: 80
|
2023-02-22 18:46:53 -05:00
|
|
|
client: false
|
|
|
|
ai_toxicity_flag_threshold_severe_toxicity:
|
2023-03-31 12:03:44 -04:00
|
|
|
default: 30
|
2023-02-22 18:46:53 -05:00
|
|
|
client: false
|
|
|
|
ai_toxicity_flag_threshold_obscene:
|
2023-03-31 12:03:44 -04:00
|
|
|
default: 80
|
2023-02-22 18:46:53 -05:00
|
|
|
client: false
|
|
|
|
ai_toxicity_flag_threshold_identity_attack:
|
|
|
|
default: 60
|
|
|
|
client: false
|
|
|
|
ai_toxicity_flag_threshold_insult:
|
|
|
|
default: 60
|
|
|
|
client: false
|
|
|
|
ai_toxicity_flag_threshold_threat:
|
|
|
|
default: 60
|
|
|
|
client: false
|
|
|
|
ai_toxicity_flag_threshold_sexual_explicit:
|
|
|
|
default: 60
|
|
|
|
client: false
|
|
|
|
ai_toxicity_groups_bypass:
|
|
|
|
client: true
|
|
|
|
type: group_list
|
|
|
|
list_type: compact
|
|
|
|
default: "3" # 3: @staff
|
|
|
|
allow_any: false
|
|
|
|
refresh: true
|
|
|
|
|
|
|
|
ai_sentiment_enabled:
|
|
|
|
default: false
|
|
|
|
client: true
|
|
|
|
ai_sentiment_inference_service_api_endpoint:
|
2023-02-27 14:44:11 -05:00
|
|
|
default: "https://sentiment-testing.demo-by-discourse.com"
|
2024-01-10 17:23:07 -05:00
|
|
|
ai_sentiment_inference_service_api_endpoint_srv:
|
|
|
|
default: ""
|
|
|
|
hidden: true
|
2023-02-22 18:46:53 -05:00
|
|
|
ai_sentiment_inference_service_api_key:
|
2023-09-25 14:12:54 -04:00
|
|
|
default: ""
|
2023-05-11 22:54:25 -04:00
|
|
|
secret: true
|
2023-02-22 18:46:53 -05:00
|
|
|
ai_sentiment_models:
|
|
|
|
type: list
|
2023-02-23 10:13:26 -05:00
|
|
|
list_type: compact
|
2023-02-22 18:46:53 -05:00
|
|
|
default: "emotion"
|
|
|
|
allow_any: false
|
|
|
|
choices:
|
2023-09-25 14:12:54 -04:00
|
|
|
- sentiment
|
|
|
|
- emotion
|
2023-05-11 22:54:25 -04:00
|
|
|
|
2023-02-24 05:53:43 -05:00
|
|
|
ai_nsfw_detection_enabled: false
|
2023-02-23 09:08:34 -05:00
|
|
|
ai_nsfw_inference_service_api_endpoint:
|
2023-02-27 14:44:11 -05:00
|
|
|
default: "https://nsfw-testing.demo-by-discourse.com"
|
2024-01-10 17:23:07 -05:00
|
|
|
ai_nsfw_inference_service_api_endpoint_srv:
|
|
|
|
default: ""
|
|
|
|
hidden: true
|
2023-02-23 09:08:34 -05:00
|
|
|
ai_nsfw_inference_service_api_key:
|
|
|
|
default: ""
|
2023-05-11 22:54:25 -04:00
|
|
|
secret: true
|
2023-02-23 10:13:26 -05:00
|
|
|
ai_nsfw_flag_automatically: true
|
|
|
|
ai_nsfw_flag_threshold_general: 60
|
|
|
|
ai_nsfw_flag_threshold_drawings: 60
|
|
|
|
ai_nsfw_flag_threshold_hentai: 60
|
|
|
|
ai_nsfw_flag_threshold_porn: 60
|
|
|
|
ai_nsfw_flag_threshold_sexy: 70
|
|
|
|
ai_nsfw_models:
|
|
|
|
type: list
|
|
|
|
list_type: compact
|
|
|
|
default: "opennsfw2"
|
|
|
|
allow_any: false
|
|
|
|
choices:
|
2023-09-25 14:12:54 -04:00
|
|
|
- opennsfw2
|
|
|
|
- nsfw_detector
|
2023-03-07 14:14:39 -05:00
|
|
|
|
2023-06-20 20:39:51 -04:00
|
|
|
ai_openai_gpt35_url: "https://api.openai.com/v1/chat/completions"
|
2023-08-16 21:00:11 -04:00
|
|
|
ai_openai_gpt35_16k_url: "https://api.openai.com/v1/chat/completions"
|
2023-06-20 20:39:51 -04:00
|
|
|
ai_openai_gpt4_url: "https://api.openai.com/v1/chat/completions"
|
2023-08-16 21:00:11 -04:00
|
|
|
ai_openai_gpt4_32k_url: "https://api.openai.com/v1/chat/completions"
|
2023-12-10 22:59:57 -05:00
|
|
|
ai_openai_gpt4_turbo_url: "https://api.openai.com/v1/chat/completions"
|
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"
|
2023-10-05 19:23:18 -04:00
|
|
|
ai_openai_organization: ""
|
2023-03-07 14:14:39 -05:00
|
|
|
ai_openai_api_key:
|
|
|
|
default: ""
|
2023-05-11 22:54:25 -04:00
|
|
|
secret: true
|
2023-04-10 10:04:42 -04:00
|
|
|
ai_anthropic_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:
|
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-07-27 12:55:32 -04:00
|
|
|
ai_hugging_face_api_url:
|
|
|
|
default: ""
|
2023-08-02 16:00:00 -04:00
|
|
|
ai_hugging_face_api_key:
|
|
|
|
default: ""
|
|
|
|
secret: true
|
2023-08-03 14:29:30 -04:00
|
|
|
ai_hugging_face_token_limit:
|
|
|
|
default: 4096
|
|
|
|
ai_hugging_face_model_display_name:
|
|
|
|
default: ""
|
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: ""
|
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-02 11:58:36 -04:00
|
|
|
ai_bedrock_access_key_id:
|
|
|
|
default: ""
|
|
|
|
secret: true
|
|
|
|
ai_bedrock_secret_access_key:
|
|
|
|
default: ""
|
|
|
|
secret: true
|
|
|
|
ai_bedrock_region:
|
|
|
|
default: "us-east-1"
|
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: ""
|
|
|
|
secret: true
|
2023-12-26 12:49:55 -05:00
|
|
|
ai_vllm_endpoint:
|
|
|
|
default: ""
|
|
|
|
ai_vllm_endpoint_srv:
|
|
|
|
default: ""
|
|
|
|
hidden: true
|
2024-01-10 17:23:07 -05:00
|
|
|
ai_vllm_api_key: ""
|
2023-03-15 16:02:20 -04:00
|
|
|
|
|
|
|
composer_ai_helper_enabled:
|
|
|
|
default: false
|
|
|
|
client: true
|
|
|
|
ai_helper_allowed_groups:
|
|
|
|
client: true
|
|
|
|
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:
|
|
|
|
default: gpt-3.5-turbo
|
|
|
|
type: enum
|
|
|
|
choices:
|
|
|
|
- gpt-3.5-turbo
|
|
|
|
- gpt-4
|
2023-07-13 11:32:08 -04:00
|
|
|
- claude-2
|
2023-08-25 14:54:51 -04:00
|
|
|
- stable-beluga-2
|
2023-12-06 15:47:53 -05:00
|
|
|
- Llama2-chat-hf
|
2023-12-15 12:32:01 -05:00
|
|
|
- gemini-pro
|
2023-12-26 12:49:55 -05:00
|
|
|
- mistralai/Mixtral-8x7B-Instruct-v0.1
|
|
|
|
- mistralai/Mistral-7B-Instruct-v0.2
|
2023-09-25 14:12:54 -04:00
|
|
|
ai_helper_custom_prompts_allowed_groups:
|
|
|
|
client: true
|
|
|
|
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:
|
|
|
|
client: true
|
|
|
|
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
|
2023-03-15 16:21:45 -04:00
|
|
|
|
2023-05-11 22:54:25 -04:00
|
|
|
ai_embeddings_enabled:
|
2023-03-31 14:29:56 -04:00
|
|
|
default: false
|
|
|
|
client: true
|
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
|
2023-03-15 16:21:45 -04:00
|
|
|
list_type: compact
|
2024-01-11 12:16:25 -05:00
|
|
|
default: "bge-large-en"
|
2023-03-15 16:21:45 -04:00
|
|
|
allow_any: false
|
|
|
|
choices:
|
2023-09-25 14:12:54 -04:00
|
|
|
- all-mpnet-base-v2
|
|
|
|
- text-embedding-ada-002
|
|
|
|
- multilingual-e5-large
|
2023-10-04 12:47:51 -04:00
|
|
|
- bge-large-en
|
2023-12-28 08:28:01 -05:00
|
|
|
- gemini
|
2024-01-23 20:09:27 -05:00
|
|
|
ai_embeddings_per_post_enabled: false
|
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
|
2023-09-05 10:08:23 -04:00
|
|
|
ai_embeddings_semantic_search_hyde_model:
|
|
|
|
default: "gpt-3.5-turbo"
|
|
|
|
type: enum
|
|
|
|
allow_any: false
|
|
|
|
choices:
|
|
|
|
- Llama2-*-chat-hf
|
2023-09-25 14:12:54 -04:00
|
|
|
- claude-instant-1
|
|
|
|
- claude-2
|
2023-09-05 10:08:23 -04:00
|
|
|
- gpt-3.5-turbo
|
2023-09-25 14:12:54 -04:00
|
|
|
- gpt-4
|
|
|
|
- StableBeluga2
|
2023-09-05 10:08:23 -04:00
|
|
|
- Upstage-Llama-2-*-instruct-v2
|
2023-12-15 12:32:01 -05:00
|
|
|
- gemini-pro
|
2023-12-26 12:49:55 -05:00
|
|
|
- mistralai/Mixtral-8x7B-Instruct-v0.1
|
|
|
|
- mistralai/Mistral-7B-Instruct-v0.2
|
2023-04-04 10:24:09 -04:00
|
|
|
|
|
|
|
ai_summarization_discourse_service_api_endpoint: ""
|
2024-01-10 17:23:07 -05:00
|
|
|
ai_summarization_discourse_service_api_endpoint_srv:
|
|
|
|
default: ""
|
|
|
|
hidden: true
|
2023-05-11 22:54:25 -04:00
|
|
|
ai_summarization_discourse_service_api_key:
|
|
|
|
default: ""
|
|
|
|
secret: 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
|
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
|
2023-05-17 14:59:48 -04:00
|
|
|
# Adding a new bot? Make sure to create a user for it on the seed file and update translations.
|
2023-05-11 09:03:03 -04:00
|
|
|
ai_bot_enabled_chat_bots:
|
|
|
|
type: list
|
|
|
|
default: "gpt-3.5-turbo"
|
|
|
|
client: true
|
|
|
|
choices:
|
2023-09-25 14:12:54 -04:00
|
|
|
- gpt-3.5-turbo
|
|
|
|
- gpt-4
|
2023-12-10 22:59:57 -05:00
|
|
|
- gpt-4-turbo
|
2023-09-25 14:12:54 -04:00
|
|
|
- claude-2
|
2024-01-04 16:15:34 -05:00
|
|
|
- gemini-pro
|
2024-01-04 10:22:43 -05:00
|
|
|
- mixtral-8x7B-Instruct-V0.1
|
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
|