Update api/config.py
Browse files- api/config.py +2 -7
api/config.py
CHANGED
@@ -3,17 +3,13 @@ from dotenv import load_dotenv
|
|
3 |
|
4 |
load_dotenv()
|
5 |
|
6 |
-
#
|
7 |
-
# BASE_URL = "https://www.blackbox.ai"
|
8 |
-
# headers = { ... }
|
9 |
-
|
10 |
-
# Add DDG-specific configurations if any
|
11 |
DDG_API_ENDPOINT = "https://duckduckgo.com/duckchat/v1/chat"
|
12 |
DDG_STATUS_URL = "https://duckduckgo.com/duckchat/v1/status"
|
13 |
|
14 |
APP_SECRET = os.getenv("APP_SECRET")
|
15 |
|
16 |
-
#
|
17 |
ALLOWED_MODELS = [
|
18 |
{"id": "gpt-4o-mini", "name": "GPT-4o Mini"},
|
19 |
{"id": "claude-3-haiku-20240307", "name": "Claude 3 Haiku"},
|
@@ -31,7 +27,6 @@ MODEL_MAPPING = {
|
|
31 |
}
|
32 |
|
33 |
# Remove or update AGENT_MODE, TRENDING_AGENT_MODE, MODEL_PREFIXES, MODEL_REFERERS as necessary
|
34 |
-
# For example:
|
35 |
AGENT_MODE = {
|
36 |
'flux': {'mode': True, 'id': "ImageGenerationLV45LJp", 'name': "flux"},
|
37 |
'Niansuh': {'mode': True, 'id': "NiansuhAIk1HgESy", 'name': "Niansuh"},
|
|
|
3 |
|
4 |
load_dotenv()
|
5 |
|
6 |
+
# DDG API Configurations
|
|
|
|
|
|
|
|
|
7 |
DDG_API_ENDPOINT = "https://duckduckgo.com/duckchat/v1/chat"
|
8 |
DDG_STATUS_URL = "https://duckduckgo.com/duckchat/v1/status"
|
9 |
|
10 |
APP_SECRET = os.getenv("APP_SECRET")
|
11 |
|
12 |
+
# Allowed Models for DDG
|
13 |
ALLOWED_MODELS = [
|
14 |
{"id": "gpt-4o-mini", "name": "GPT-4o Mini"},
|
15 |
{"id": "claude-3-haiku-20240307", "name": "Claude 3 Haiku"},
|
|
|
27 |
}
|
28 |
|
29 |
# Remove or update AGENT_MODE, TRENDING_AGENT_MODE, MODEL_PREFIXES, MODEL_REFERERS as necessary
|
|
|
30 |
AGENT_MODE = {
|
31 |
'flux': {'mode': True, 'id': "ImageGenerationLV45LJp", 'name': "flux"},
|
32 |
'Niansuh': {'mode': True, 'id': "NiansuhAIk1HgESy", 'name': "Niansuh"},
|