-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbase-config.yml
107 lines (90 loc) · 3.6 KB
/
base-config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
###### BOT Configuration ######
# The bot will only respond to messages that start with this prefix along with "!" such as !command
search_trigger: "fsearch"
post_trigger: "fpost"
help_trigger: "fhelp"
url_post_trigger: "furl"
target_audience: "community members in a community forum"
###### Discourse Configuration ######
# To get your API key, go to https://discourse.example.com/admin/api/keys
# replace "discourse.example.com" with your Discourse URL
discourse_api_key: "discourse_api_key"
discourse_api_username: "discourse_api_username"
discourse_base_url: "https://discourse.example.com"
# To get your category ID, go to https://discourse.example.com/c/your-category-name.json
matrix_to_discourse_topic:
"!roomID1:server": "topic_id_1"
"!roomID2:server": "topic_id_2"
# The category ID for the unsorted category
unsorted_category_id: "topic_id_9"
######### AI Model Configuration #########
## GPT is used for creating titles and descriptions for new topics based on a post.
###### AI Model Configuration ######
# Choose the AI model type: "openai", "google", "local", or "none"
# If ai_model_type is set to "none", no AI model will be used
ai_model_type: "none"
###### OpenAI API Configuration ######
# Use these settings if ai_model_type is set to "openai"
# To get your API key, sign up at https://platform.openai.com/signup or log in at https://platform.openai.com/login
openai:
api_key: "gpt_api_key"
api_endpoint: "https://api.openai.com/v1/chat/completions"
model: "gpt-4o-mini"
max_tokens: 3000
temperature: 1
###### Local LLM Configuration ######
# Use these settings if ai_model_type is set to "local"
# Note: This could be a locally running model or a model accessed via a local server like Ollama
local_llm:
# For a local model file:
# model_path is typically a file with a .gguf extension
model_path: "/path/to/your/local/model"
# For a local server (e.g., Ollama):
# api_endpoint: "http://localhost:11434/api/chat"
# model: "llama2"
# Add any other necessary configuration for your local LLM
# For example:
# max_tokens: 3000
# temperature: 1
###### Google Gemini Configuration ######
# Use these settings if ai_model_type is set to "google"
google:
api_key: "google_api_key"
api_endpoint: "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro:generateContent"
model: "gemini-1.5-pro"
max_tokens: 3000
temperature: 1
###### URL Pattern Configuration ######
# The bot will only respond to URLs that match these patterns
# Examples:
# - Match All URLs:
# - https?://.*
# - Match Only PDF Files:
# - https?://.*\.pdf$
# - Match Only Image Files (e.g., JPG, PNG, GIF, WebP):
# - https?://.*\.(jpg|jpeg|png|gif|webp)$
# - Match Only Reddit URLs:
# - https?://(www\.)?reddit\.com/.*
# - Match Only Specific Domains (e.g., Reddit and Twitter):
# - https?://(www\.)?reddit\.com/.*
# - https?://(www\.)?twitter\.com/.*
# - Match YouTube URLs (Including Shortened Links):
# - https?://(www\.)?youtube\.com/.*
# - https?://youtu\.be/.*
# - Match Files of Specific Types (e.g., PDFs and Images):
# - https?://.*\.(pdf|jpg|jpeg|png|gif|webp)$
# - Combined Example:
# - Matches all URLs, Reddit URLs, PDFs, and images:
# - https?://.* # All URLs
# - https?://(www\.)?reddit\.com/.* # Reddit URLs
# - https?://.*\.(pdf)$ # PDFs
# - https?://.*\.(jpg|jpeg|png|gif|webp)$ # Images
url_patterns:
- https?://.* # Match all URLs
# Match URLs regular expressions that should not be posted
url_blacklist:
- https?://.*\.pdf$
- https?://.*\.doc$
- https?://.*\.docx$
- https?://.*\.ppt$
- https?://.*\.pptx$