FEATURE: hide various api keys in site settings (#59)

Also... ensures that plugin has a link to more info and proper description
This commit is contained in:
Sam 2023-05-12 12:54:25 +10:00 committed by GitHub
parent 97124b30de
commit 93d9d9ea91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 7 deletions

View File

@ -10,6 +10,7 @@ plugins:
default: "https://disorder-testing.demo-by-discourse.com" default: "https://disorder-testing.demo-by-discourse.com"
ai_toxicity_inference_service_api_key: ai_toxicity_inference_service_api_key:
default: '' default: ''
secret: true
ai_toxicity_inference_service_api_model: ai_toxicity_inference_service_api_model:
type: enum type: enum
default: unbiased default: unbiased
@ -56,6 +57,7 @@ plugins:
default: "https://sentiment-testing.demo-by-discourse.com" default: "https://sentiment-testing.demo-by-discourse.com"
ai_sentiment_inference_service_api_key: ai_sentiment_inference_service_api_key:
default: '' default: ''
secret: true
ai_sentiment_models: ai_sentiment_models:
type: list type: list
list_type: compact list_type: compact
@ -64,12 +66,13 @@ plugins:
choices: choices:
- sentiment - sentiment
- emotion - emotion
ai_nsfw_detection_enabled: false ai_nsfw_detection_enabled: false
ai_nsfw_inference_service_api_endpoint: ai_nsfw_inference_service_api_endpoint:
default: "https://nsfw-testing.demo-by-discourse.com" default: "https://nsfw-testing.demo-by-discourse.com"
ai_nsfw_inference_service_api_key: ai_nsfw_inference_service_api_key:
default: "" default: ""
secret: true
ai_nsfw_flag_automatically: true ai_nsfw_flag_automatically: true
ai_nsfw_flag_threshold_general: 60 ai_nsfw_flag_threshold_general: 60
ai_nsfw_flag_threshold_drawings: 60 ai_nsfw_flag_threshold_drawings: 60
@ -87,8 +90,10 @@ plugins:
ai_openai_api_key: ai_openai_api_key:
default: "" default: ""
secret: true
ai_anthropic_api_key: ai_anthropic_api_key:
default: "" default: ""
secret: true
composer_ai_helper_enabled: composer_ai_helper_enabled:
default: false default: false
@ -111,11 +116,13 @@ plugins:
- gpt-4 - gpt-4
- claude-v1 - claude-v1
ai_embeddings_enabled: ai_embeddings_enabled:
default: false default: false
client: true client: true
ai_embeddings_discourse_service_api_endpoint: "" ai_embeddings_discourse_service_api_endpoint: ""
ai_embeddings_discourse_service_api_key: "" ai_embeddings_discourse_service_api_key:
default: ""
secret: true
ai_embeddings_models: ai_embeddings_models:
type: list type: list
list_type: compact list_type: compact
@ -158,7 +165,9 @@ plugins:
default: false default: false
client: true client: true
ai_summarization_discourse_service_api_endpoint: "" ai_summarization_discourse_service_api_endpoint: ""
ai_summarization_discourse_service_api_key: "" ai_summarization_discourse_service_api_key:
default: ""
secret: true
ai_summarization_model: ai_summarization_model:
type: enum type: enum
default: "bart-large-cnn-samsum" default: "bart-large-cnn-samsum"
@ -189,4 +198,4 @@ plugins:
choices: choices:
- gpt-3.5-turbo - gpt-3.5-turbo
- gpt-4 - gpt-4
- claude-v1 - claude-v1

View File

@ -1,10 +1,10 @@
# frozen_string_literal: true # frozen_string_literal: true
# name: discourse-ai # name: discourse-ai
# about: TODO # about: Enables AI modules features in Discourse
# version: 0.0.1 # version: 0.0.1
# authors: Discourse # authors: Discourse
# url: TODO # url: https://meta.discourse.org/t/discourse-ai/259214
# required_version: 2.7.0 # required_version: 2.7.0
gem "tokenizers", "0.3.2", platform: RUBY_PLATFORM gem "tokenizers", "0.3.2", platform: RUBY_PLATFORM