File size: 2,133 Bytes
573a402
 
 
 
 
e58fde0
8a8e797
 
 
573a402
 
e58fde0
573a402
8a8e797
 
 
 
 
573a402
 
 
8a8e797
 
 
 
 
573a402
 
6bf0a1e
573a402
 
 
8a8e797
573a402
 
 
8a8e797
 
 
 
 
573a402
 
 
8a8e797
 
 
 
 
573a402
 
 
8a8e797
 
 
 
 
573a402
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
import os
from dotenv import load_dotenv

load_dotenv()

# DDG API Configurations
DDG_API_ENDPOINT = "https://duckduckgo.com/duckchat/v1/chat"
DDG_STATUS_URL = "https://duckduckgo.com/duckchat/v1/status"

APP_SECRET = os.getenv("APP_SECRET")

# Allowed Models for DDG
ALLOWED_MODELS = [
    {"id": "gpt-4o-mini", "name": "GPT-4o Mini"},
    {"id": "claude-3-haiku-20240307", "name": "Claude 3 Haiku"},
    {"id": "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo", "name": "Meta LLaMA 3.1-70B Instruct Turbo"},
    {"id": "mistralai/Mixtral-8x7B-Instruct-v0.1", "name": "Mistral Mixtral 8x7B Instruct v0.1"},
    # Add more DDG models as needed
]

MODEL_MAPPING = {
    "gpt-4o-mini": "gpt-4o-mini",
    "claude-3-haiku": "claude-3-haiku-20240307",
    "llama-3.1-70b": "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo",
    "mixtral-8x7b": "mistralai/Mixtral-8x7B-Instruct-v0.1",
    # Add more mappings as needed
}

# AGENT_MODE, TRENDING_AGENT_MODE, MODEL_PREFIXES, MODEL_REFERERS for DDG models
AGENT_MODE = {
    'flux': {'mode': True, 'id': "ImageGenerationLV45LJp", 'name': "flux"},
    'Niansuh': {'mode': True, 'id': "NiansuhAIk1HgESy", 'name': "Niansuh"},
    # Add DDG-specific agent modes if required
}

TRENDING_AGENT_MODE = {
    "gpt-4o-mini": {},
    "claude-3-haiku-20240307": {},
    "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo": {},
    "mistralai/Mixtral-8x7B-Instruct-v0.1": {},
    # Add more DDG-specific trending agent modes if required
}

MODEL_PREFIXES = {
    'gpt-4o-mini': '@GPT-4o Mini',
    'claude-3-haiku-20240307': '@Claude-3-Haiku',
    'meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo': '@Meta-LLaMA-3.1-70B',
    'mistralai/Mixtral-8x7B-Instruct-v0.1': '@Mistral-Mixtral-8x7B',
    # Add more DDG-specific prefixes as needed
}

MODEL_REFERERS = {
    "gpt-4o-mini": "/?model=gpt-4o-mini",
    "claude-3-haiku-20240307": "/?model=claude-3-haiku-20240307",
    "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo": "/?model=meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo",
    "mistralai/Mixtral-8x7B-Instruct-v0.1": "/?model=mistralai/Mixtral-8x7B-Instruct-v0.1",
    # Add more DDG-specific referers as needed
}