Spaces:
Running
Running
Upload config.py
Browse files- src/config.py +24 -0
src/config.py
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# AI Configuration
|
2 |
+
ALGORITHM = 'g4f'
|
3 |
+
|
4 |
+
# Model Configuration
|
5 |
+
DEFAULT_MODEL = 'gpt-4o-mini'
|
6 |
+
MODELS = {
|
7 |
+
'GPT-4o': 'gpt-4o',
|
8 |
+
'GPT-4o Mini': 'gpt-4o-mini'
|
9 |
+
}
|
10 |
+
|
11 |
+
# Rate Limiting (Session based) - Note: Implementing robust user-based rate limiting in Streamlit alone is complex and usually requires a backend. This is a basic session-based limit.
|
12 |
+
RPM = 10
|
13 |
+
RPH = 300
|
14 |
+
RPD = 500
|
15 |
+
|
16 |
+
# Queue System - Note: Implementing a full queue system in Streamlit alone is complex and usually requires a backend.
|
17 |
+
QUEUE_ENABLED = 'enabled'
|
18 |
+
QUEUE_LIMIT = 5
|
19 |
+
MAX_QUEUE = 40
|
20 |
+
QUEUE_WARNING = 10
|
21 |
+
|
22 |
+
# App Information
|
23 |
+
APP_NAME = 'GPT-4o'
|
24 |
+
APP_DESCRIPTION = 'Simple AI chatbot for users'
|