Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 3828370

Browse files
authored
DEV: Cleanup deprecations (#952)
1 parent 0abd4b1 commit 3828370

33 files changed

+7
-1591
lines changed

app/jobs/regular/evaluate_post_uploads.rb

Lines changed: 0 additions & 17 deletions
This file was deleted.

app/jobs/regular/toxicity_classify_chat_message.rb

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/jobs/regular/toxicity_classify_post.rb

Lines changed: 0 additions & 19 deletions
This file was deleted.

config/settings.yml

Lines changed: 0 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -10,55 +10,6 @@ discourse_ai:
1010
- "disabled"
1111
- "lax"
1212
- "strict"
13-
ai_toxicity_enabled:
14-
default: false
15-
client: true
16-
hidden: true
17-
ai_toxicity_inference_service_api_endpoint:
18-
default: ""
19-
ai_toxicity_inference_service_api_endpoint_srv:
20-
default: ""
21-
hidden: true
22-
ai_toxicity_inference_service_api_key:
23-
default: ""
24-
secret: true
25-
ai_toxicity_inference_service_api_model:
26-
type: enum
27-
default: unbiased
28-
choices:
29-
- unbiased
30-
- multilingual
31-
- original
32-
ai_toxicity_flag_automatically:
33-
default: false
34-
client: false
35-
ai_toxicity_flag_threshold_toxicity:
36-
default: 80
37-
client: false
38-
ai_toxicity_flag_threshold_severe_toxicity:
39-
default: 30
40-
client: false
41-
ai_toxicity_flag_threshold_obscene:
42-
default: 80
43-
client: false
44-
ai_toxicity_flag_threshold_identity_attack:
45-
default: 60
46-
client: false
47-
ai_toxicity_flag_threshold_insult:
48-
default: 60
49-
client: false
50-
ai_toxicity_flag_threshold_threat:
51-
default: 60
52-
client: false
53-
ai_toxicity_flag_threshold_sexual_explicit:
54-
default: 60
55-
client: false
56-
ai_toxicity_groups_bypass:
57-
type: group_list
58-
list_type: compact
59-
default: "3" # 3: @staff
60-
allow_any: false
61-
refresh: true
6213

6314
ai_sentiment_enabled:
6415
default: false
@@ -67,50 +18,6 @@ discourse_ai:
6718
default: ""
6819
json_schema: DiscourseAi::Sentiment::SentimentSiteSettingJsonSchema
6920

70-
ai_nsfw_detection_enabled:
71-
default: false
72-
hidden: true
73-
ai_nsfw_inference_service_api_endpoint:
74-
default: ""
75-
ai_nsfw_inference_service_api_endpoint_srv:
76-
default: ""
77-
hidden: true
78-
ai_nsfw_inference_service_api_key:
79-
default: ""
80-
secret: true
81-
ai_nsfw_flag_automatically: true
82-
ai_nsfw_flag_threshold_general: 60
83-
ai_nsfw_flag_threshold_drawings: 60
84-
ai_nsfw_flag_threshold_hentai: 60
85-
ai_nsfw_flag_threshold_porn: 60
86-
ai_nsfw_flag_threshold_sexy: 70
87-
ai_nsfw_models:
88-
type: list
89-
list_type: compact
90-
default: "opennsfw2"
91-
allow_any: false
92-
choices:
93-
- opennsfw2
94-
- nsfw_detector
95-
96-
ai_openai_gpt35_url:
97-
default: "https://api.openai.com/v1/chat/completions"
98-
hidden: true
99-
ai_openai_gpt35_16k_url:
100-
default: "https://api.openai.com/v1/chat/completions"
101-
hidden: true
102-
ai_openai_gpt4o_url:
103-
default: "https://api.openai.com/v1/chat/completions"
104-
hidden: true
105-
ai_openai_gpt4_url:
106-
default: "https://api.openai.com/v1/chat/completions"
107-
hidden: true
108-
ai_openai_gpt4_32k_url:
109-
default: "https://api.openai.com/v1/chat/completions"
110-
hidden: true
111-
ai_openai_gpt4_turbo_url:
112-
default: "https://api.openai.com/v1/chat/completions"
113-
hidden: true
11421
ai_openai_dall_e_3_url: "https://api.openai.com/v1/images/generations"
11522
ai_openai_embeddings_url: "https://api.openai.com/v1/embeddings"
11623
ai_openai_organization:
@@ -119,12 +26,6 @@ discourse_ai:
11926
ai_openai_api_key:
12027
default: ""
12128
secret: true
122-
ai_anthropic_api_key:
123-
default: ""
124-
hidden: true
125-
ai_cohere_api_key:
126-
default: ""
127-
hidden: true
12829
ai_stability_api_key:
12930
default: ""
13031
secret: true
@@ -139,18 +40,6 @@ discourse_ai:
13940
- "stable-diffusion-xl-1024-v1-0"
14041
- "stable-diffusion-768-v2-1"
14142
- "stable-diffusion-v1-5"
142-
ai_hugging_face_api_url:
143-
default: ""
144-
hidden: true
145-
ai_hugging_face_api_key:
146-
default: ""
147-
hidden: true
148-
ai_hugging_face_token_limit:
149-
default: 4096
150-
hidden: true
151-
ai_hugging_face_model_display_name:
152-
default: ""
153-
hidden: true
15443
ai_hugging_face_tei_endpoint:
15544
default: ""
15645
ai_hugging_face_tei_endpoint_srv:
@@ -168,16 +57,6 @@ discourse_ai:
16857
secret: true
16958
ai_google_custom_search_cx:
17059
default: ""
171-
ai_bedrock_access_key_id:
172-
default: ""
173-
secret: true
174-
hidden: true
175-
ai_bedrock_secret_access_key:
176-
default: ""
177-
hidden: true
178-
ai_bedrock_region:
179-
default: "us-east-1"
180-
hidden: true
18160
ai_cloudflare_workers_account_id:
18261
default: ""
18362
secret: true
@@ -187,30 +66,9 @@ discourse_ai:
18766
ai_gemini_api_key:
18867
default: ""
18968
hidden: false
190-
ai_vllm_endpoint:
191-
default: ""
192-
hidden: true
193-
ai_vllm_endpoint_srv:
194-
default: ""
195-
hidden: true
196-
ai_vllm_api_key:
197-
default: ""
198-
hidden: true
199-
ai_llava_endpoint:
200-
default: ""
201-
hidden: true
202-
ai_llava_endpoint_srv:
203-
default: ""
204-
hidden: true
205-
ai_llava_api_key:
206-
default: ""
207-
hidden: true
20869
ai_strict_token_counting:
20970
default: false
21071
hidden: true
211-
ai_ollama_endpoint:
212-
hidden: true
213-
default: ""
21472

21573
ai_helper_enabled:
21674
default: false

lib/chat_message_classificator.rb

Lines changed: 0 additions & 25 deletions
This file was deleted.

lib/classificator.rb

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)