File size: 6,185 Bytes
501c69f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
developer_info = {
        'developer': 'Devs Do Code',
        'contact': {
            'Telegram': 'https://t.me/devsdocode',
            'YouTube Channel': 'https://www.youtube.com/@DevsDoCode',
            'LinkedIn': 'https://www.linkedin.com/in/developer-sreejan/',
            'Discord Server': 'https://discord.gg/ehwfVtsAts',
            'Instagram': {
                'Personal': 'https://www.instagram.com/sree.shades_/',
                'Channel': 'https://www.instagram.com/devsdocode_/'
            }
        }
    }

endpoint = {
    'route': "/generate",
    'params': {
        "query": "[SEARCH QUERY]"
    },
    'optional_params': {
        "model": "[]",
        "temperature": "[]",
        "system_prompt": "[]"
    },
    'url_demo' : '/generate?query=Who is Devs Do Code&&model=command-r-plus&&temperature=0.7&&system_prompt=Your Owner is "Devs Do Code"'
}

model_providers = {
    "OpenAI": {
        "models": [
            "gpt-3.5-turbo",
            "gpt-3.5-turbo-202201",
            "gpt-4o",
            "gpt-4o-2024-05-13",
            "o1-preview"
        ],
        "description": "OpenAI's GPT language models"
    },
    "Anthropic": {
        "models": [
            "claude",
            "claude-3-5-sonnet",
            "claude-sonnet-3.5",
            "claude-3-5-sonnet-20240620"
        ],
        "description": "Anthropic's Claude language models"
    },
    "Meta": {
        "models": [
            "llama-2-7b-chat",
            "llama-2-7b-chat-int8",
            "llama-3-8b-instruct",
            "llama-3.1-8b-instruct",
            "llama-3.1-405b",
            "llama-3.1-70b",
            "llama-3.1-8b",
            "llama-3.2-11b-vision",
            "llama-3.2-1b",
            "llama-3.2-3b",
            "llama-3.2-90b-vision",
            "llama-guard-3-8b"
        ],
        "description": "Meta's LLaMA language models"
    },
    "Mistral": {
        "models": [
            "mistral",
            "mistral-large",
            "mistral-7b-instruct-v0.1",
            "mistral-7b-instruct-v0.2",
            "mistral-7b-instruct-v0.3",
            "mixtral-8x22b",
            "mixtral-8x7b"
        ],
        "description": "Mistral AI's language models"
    },
    "Qwen": {
        "models": [
            "qwen1.5-0.5b-chat",
            "qwen1.5-1.8b-chat",
            "qwen1.5-7b-chat",
            "qwen1.5-14b-chat",
            "qwen2.5-3b",
            "qwen2.5-72b",
            "qwen2.5-coder-32b"
        ],
        "description": "Qwen's language models"
    },
    "Google": {
        "models": [
            "gemma-2b",
            "gemma-7b",
            "gemini-pro",
            "gemini-1.5-pro",
            "gemini-1.5-pro-latest",
            "gemini-1.5-flash"
        ],
        "description": "Google's Gemini and Gemma models"
    },
    "Cohere": {
        "models": [
            "aya-23-35b",
            "aya-23-8b",
            "command",
            "command-light",
            "command-nightly",
            "command-r",
            "command-r-plus",
            "rerank-english-v2.0",
            "rerank-english-v3.0",
            "rerank-multilingual-v2.0",
            "rerank-multilingual-v3.0"
        ],
        "description": "Cohere's language models"
    },
    "Microsoft": {
        "models": [
            "phi-2",
            "dialogpt-medium",
            "phi-3-medium-4k",
            "phi-3-mini-4k",
            "phi-3.5-mini",
            "wizardlm-2-8x22b"
        ],
        "description": "Microsoft's language models"
    },
    "Yi": {
        "models": [
            "yi-1.5-34b-chat",
            "yi-34b-chat"
        ],
        "description": "01.AI's Yi language models"
    }
}

error_message = {
        'developer_contact': {
            'Telegram': 'https://t.me/DevsDoCode',
            'Instagram': 'https://www.instagram.com/sree.shades_/',
            'Discord': 'https://discord.gg/ehwfVtsAts',
            'LinkedIn': 'https://www.linkedin.com/in/developer-sreejan/',
            'Twitter': 'https://twitter.com/Anand_Sreejan'
        },
        'error': 'Oops! Something went wrong. Please contact the developer Devs Do Code.'
    }

default_info = """This API is developed and being maintained by Devs Do Code (Sreejan).



**About the Developer**



Sreejan, a high school student from Patna, Bihar, India, has emerged as a notable figure in the technology sector. 

His creation of an API is a testament to his dedication and expertise. Despite his youth, Sreejan's contributions 

to artificial intelligence and machine learning are significant. As an AI & ML Engineer, he specializes in Deep Learning, 

Natural Language Processing (NLP), and Robotics, with proficiency in Python, Java, and Mobile App Development. 

Beyond his role as a technology consumer, Sreejan is an active open-source contributor, notably to projects like Hugging Face.



He is also recognized for his role in community development, particularly through "Devs Do Code," a platform he 

founded to provide quality coding resources, tutorials, and projects. His mission is to equip developers with the 

necessary skills to thrive in the ever-evolving tech landscape. Sreejan's commitment to sharing knowledge and 

fostering collaboration is evident in his accessibility and engagement with the community across various platforms.



Connect with Sreejan and follow his journey in technology and innovation:



- Telegram: https://t.me/devsdocode

- YouTube Channel: https://www.youtube.com/@DevsDoCode

- LinkedIn: https://www.linkedin.com/in/developer-sreejan/

- Discord Server: https://discord.gg/ehwfVtsAts

- Instagram 

    - Personal: https://www.instagram.com/sree.shades_/

    - Channel: https://www.instagram.com/devsdocode_/



Sreejan stands out not only as a developer but as a visionary and leader, driving change in the tech industry 

with his passion, expertise, and unwavering commitment to community building. He continues to shape the 

future of technology, one line of code at a time.

"""