ethiotech4848 commited on
Commit
09d87c8
·
verified ·
1 Parent(s): b06ae13

Create api_info.py

Browse files
Files changed (1) hide show
  1. api_info.py +152 -0
api_info.py ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ developer_info = {
2
+ 'developer': 'Hey Yo Me',
3
+ 'contact': {
4
+ 'Telegram': 'https://t.me/heyo',
5
+ 'YouTube Channel': 'https://www.youtube.com/@heyo',
6
+ 'LinkedIn': 'https://www.linkedin.com/in/heyo/',
7
+ 'Discord Server': 'https://discord.gg/heyo',
8
+ 'Instagram': {
9
+ 'Personal': 'https://www.instagram.com/heyo/',
10
+ 'Channel': 'https://www.instagram.com/heyo/'
11
+ }
12
+ }
13
+ }
14
+
15
+ endpoint = {
16
+ 'route': "/generate",
17
+ 'params': {
18
+ "query": "[SEARCH QUERY]"
19
+ },
20
+ 'optional_params': {
21
+ "model": "[]",
22
+ "temperature": "[]",
23
+ "system_prompt": "[]"
24
+ },
25
+ 'url_demo' : '/generate?query=Who is heyo&&model=command-r-plus&&temperature=0.7&&system_prompt=Your Owner is "heyo"'
26
+ }
27
+
28
+ model_providers = {
29
+ "OpenAI": {
30
+ "models": [
31
+ "gpt-3.5-turbo",
32
+ "gpt-3.5-turbo-202201",
33
+ "gpt-4o",
34
+ "gpt-4o-2024-05-13",
35
+ "o1-preview"
36
+ ],
37
+ "description": "OpenAI's GPT language models"
38
+ },
39
+ "Anthropic": {
40
+ "models": [
41
+ "claude",
42
+ "claude-3-5-sonnet",
43
+ "claude-sonnet-3.5",
44
+ "claude-3-5-sonnet-20240620"
45
+ ],
46
+ "description": "Anthropic's Claude language models"
47
+ },
48
+ "Meta": {
49
+ "models": [
50
+ "llama-2-7b-chat",
51
+ "llama-2-7b-chat-int8",
52
+ "llama-3-8b-instruct",
53
+ "llama-3.1-8b-instruct",
54
+ "llama-3.1-405b",
55
+ "llama-3.1-70b",
56
+ "llama-3.1-8b",
57
+ "llama-3.2-11b-vision",
58
+ "llama-3.2-1b",
59
+ "llama-3.2-3b",
60
+ "llama-3.2-90b-vision",
61
+ "llama-guard-3-8b"
62
+ ],
63
+ "description": "Meta's LLaMA language models"
64
+ },
65
+ "Mistral": {
66
+ "models": [
67
+ "mistral",
68
+ "mistral-large",
69
+ "mistral-7b-instruct-v0.1",
70
+ "mistral-7b-instruct-v0.2",
71
+ "mistral-7b-instruct-v0.3",
72
+ "mixtral-8x22b",
73
+ "mixtral-8x7b"
74
+ ],
75
+ "description": "Mistral AI's language models"
76
+ },
77
+ "Qwen": {
78
+ "models": [
79
+ "qwen1.5-0.5b-chat",
80
+ "qwen1.5-1.8b-chat",
81
+ "qwen1.5-7b-chat",
82
+ "qwen1.5-14b-chat",
83
+ "qwen2.5-3b",
84
+ "qwen2.5-72b",
85
+ "qwen2.5-coder-32b"
86
+ ],
87
+ "description": "Qwen's language models"
88
+ },
89
+ "Google": {
90
+ "models": [
91
+ "gemma-2b",
92
+ "gemma-7b",
93
+ "gemini-pro",
94
+ "gemini-1.5-pro",
95
+ "gemini-1.5-pro-latest",
96
+ "gemini-1.5-flash"
97
+ ],
98
+ "description": "Google's Gemini and Gemma models"
99
+ },
100
+ "Cohere": {
101
+ "models": [
102
+ "aya-23-35b",
103
+ "aya-23-8b",
104
+ "command",
105
+ "command-light",
106
+ "command-nightly",
107
+ "command-r",
108
+ "command-r-plus",
109
+ "rerank-english-v2.0",
110
+ "rerank-english-v3.0",
111
+ "rerank-multilingual-v2.0",
112
+ "rerank-multilingual-v3.0"
113
+ ],
114
+ "description": "Cohere's language models"
115
+ },
116
+ "Microsoft": {
117
+ "models": [
118
+ "phi-2",
119
+ "dialogpt-medium",
120
+ "phi-3-medium-4k",
121
+ "phi-3-mini-4k",
122
+ "phi-3.5-mini",
123
+ "wizardlm-2-8x22b"
124
+ ],
125
+ "description": "Microsoft's language models"
126
+ },
127
+ "Yi": {
128
+ "models": [
129
+ "yi-1.5-34b-chat",
130
+ "yi-34b-chat"
131
+ ],
132
+ "description": "01.AI's Yi language models"
133
+ }
134
+ }
135
+
136
+ error_message = {
137
+ 'developer_contact': {
138
+ 'Telegram': 'https://t.me/heyo',
139
+ 'Instagram': 'https://www.instagram.com/heyo/',
140
+ 'Discord': 'https://discord.gg/heyo',
141
+ 'LinkedIn': 'https://www.linkedin.com/in/heyo/',
142
+ 'Twitter': 'https://twitter.com/heyo'
143
+ },
144
+ 'error': 'Oops! Something went wrong. Please contact the developer heyo.'
145
+ }
146
+
147
+ default_info = """This API is developed and being maintained by heyo.
148
+
149
+ **About the Developer**
150
+
151
+ heyo is chill guy
152
+ """