Spaces:
Paused
Paused
| 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 | |
| - 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. | |
| """ | |