Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,6 @@ MODELS = {
|
|
| 77 |
"speed": "⚡⚡⚡",
|
| 78 |
"description": "Hızlı ve hafif genel amaçlı model",
|
| 79 |
"plans": ["free", "starter", "pro", "plus"],
|
| 80 |
-
"daily_limit": 14400
|
| 81 |
},
|
| 82 |
"allam-2-7b": {
|
| 83 |
"provider": "groq",
|
|
@@ -88,7 +87,6 @@ MODELS = {
|
|
| 88 |
"speed": "⚡⚡",
|
| 89 |
"description": "Türkçe ve Arapça optimizeli model",
|
| 90 |
"plans": ["free", "starter", "pro", "plus"],
|
| 91 |
-
"daily_limit": 300
|
| 92 |
},
|
| 93 |
"gpt54-nano": {
|
| 94 |
"provider": "pollinations",
|
|
@@ -99,7 +97,6 @@ MODELS = {
|
|
| 99 |
"speed": "⚡⚡⚡",
|
| 100 |
"description": "Yeni nesil, hizli ve dengeli genel amacli model",
|
| 101 |
"plans": ["free", "starter", "pro", "plus"],
|
| 102 |
-
"daily_limit": 1000
|
| 103 |
},
|
| 104 |
"step-3.5-flash": {
|
| 105 |
"provider": "openrouter",
|
|
@@ -110,7 +107,6 @@ MODELS = {
|
|
| 110 |
"speed": "⚡⚡⚡",
|
| 111 |
"description": "OpenRouter uzerinden hizli StepFun modeli",
|
| 112 |
"plans": ["free", "starter", "pro", "plus"],
|
| 113 |
-
"daily_limit": 1000
|
| 114 |
},
|
| 115 |
"nemotron-3-super-120b-a12b": {
|
| 116 |
"provider": "openrouter",
|
|
@@ -121,7 +117,6 @@ MODELS = {
|
|
| 121 |
"speed": "⚡⚡",
|
| 122 |
"description": "OpenRouter uzerinden NVIDIA Nemotron modeli",
|
| 123 |
"plans": ["free", "starter", "pro", "plus"],
|
| 124 |
-
"daily_limit": 1000
|
| 125 |
},
|
| 126 |
|
| 127 |
# ============ STARTER PLAN MODELS ============
|
|
@@ -136,7 +131,6 @@ MODELS = {
|
|
| 136 |
"speed": "⚡⚡⚡",
|
| 137 |
"description": "OpenAI GPT-4 tabanlı hızlı model",
|
| 138 |
"plans": ["starter", "pro", "plus"],
|
| 139 |
-
"daily_limit": 1000
|
| 140 |
},
|
| 141 |
|
| 142 |
# Groq Models (Starter+)
|
|
@@ -149,7 +143,6 @@ MODELS = {
|
|
| 149 |
"speed": "⚡⚡",
|
| 150 |
"description": "Türkçe ve Çince optimize edilmiş model",
|
| 151 |
"plans": ["starter", "pro", "plus"],
|
| 152 |
-
"daily_limit": 1000
|
| 153 |
},
|
| 154 |
"llama-70b": {
|
| 155 |
"provider": "groq",
|
|
@@ -160,7 +153,6 @@ MODELS = {
|
|
| 160 |
"speed": "⚡⚡",
|
| 161 |
"description": "Güçlü ve çok yönlü büyük model",
|
| 162 |
"plans": ["starter", "pro", "plus"],
|
| 163 |
-
"daily_limit": 1000
|
| 164 |
},
|
| 165 |
"llama-maverick-17b": {
|
| 166 |
"provider": "groq",
|
|
@@ -171,7 +163,6 @@ MODELS = {
|
|
| 171 |
"speed": "⚡⚡",
|
| 172 |
"description": "Deneysel maverick model",
|
| 173 |
"plans": ["starter", "pro", "plus"],
|
| 174 |
-
"daily_limit": 1000
|
| 175 |
},
|
| 176 |
"llama-scout-17b": {
|
| 177 |
"provider": "groq",
|
|
@@ -182,7 +173,6 @@ MODELS = {
|
|
| 182 |
"speed": "⚡⚡⚡",
|
| 183 |
"description": "Keşif odaklı hızlı model",
|
| 184 |
"plans": ["starter", "pro", "plus"],
|
| 185 |
-
"daily_limit": 1000
|
| 186 |
},
|
| 187 |
"gpt-oss-20b": {
|
| 188 |
"provider": "groq",
|
|
@@ -193,7 +183,6 @@ MODELS = {
|
|
| 193 |
"speed": "⚡⚡",
|
| 194 |
"description": "Açık kaynak GPT alternatifleri",
|
| 195 |
"plans": ["starter", "pro", "plus"],
|
| 196 |
-
"daily_limit": 1000
|
| 197 |
},
|
| 198 |
"glm-4.5-air": {
|
| 199 |
"provider": "openrouter",
|
|
@@ -204,7 +193,6 @@ MODELS = {
|
|
| 204 |
"speed": "⚡⚡",
|
| 205 |
"description": "OpenRouter uzerinden GLM 4.5 Air modeli",
|
| 206 |
"plans": ["starter", "pro", "plus"],
|
| 207 |
-
"daily_limit": 1000
|
| 208 |
},
|
| 209 |
"qwen3-coder": {
|
| 210 |
"provider": "openrouter",
|
|
@@ -215,7 +203,6 @@ MODELS = {
|
|
| 215 |
"speed": "⚡⚡",
|
| 216 |
"description": "OpenRouter uzerinden kod odakli Qwen modeli",
|
| 217 |
"plans": ["starter", "pro", "plus"],
|
| 218 |
-
"daily_limit": 1000
|
| 219 |
},
|
| 220 |
"lfm-2.5-1.2b-thinking": {
|
| 221 |
"provider": "openrouter",
|
|
@@ -226,7 +213,6 @@ MODELS = {
|
|
| 226 |
"speed": "⚡⚡⚡",
|
| 227 |
"description": "OpenRouter uzerinden hizli dusunme odakli model",
|
| 228 |
"plans": ["starter", "pro", "plus"],
|
| 229 |
-
"daily_limit": 1000
|
| 230 |
},
|
| 231 |
|
| 232 |
# ============ PRO PLAN MODELS ============
|
|
@@ -240,7 +226,6 @@ MODELS = {
|
|
| 240 |
"speed": "⚡⚡",
|
| 241 |
"description": "En büyük açık kaynak model",
|
| 242 |
"plans": ["pro", "plus"],
|
| 243 |
-
"daily_limit": 1000
|
| 244 |
},
|
| 245 |
"kimi-k2": {
|
| 246 |
"provider": "groq",
|
|
@@ -251,7 +236,6 @@ MODELS = {
|
|
| 251 |
"speed": "⚡⚡",
|
| 252 |
"description": "Çince uzmanı güçlü model",
|
| 253 |
"plans": ["pro", "plus"],
|
| 254 |
-
"daily_limit": 1000
|
| 255 |
}
|
| 256 |
}
|
| 257 |
|
|
@@ -865,8 +849,7 @@ def list_models(x_user_plan: str = Header(default="free", alias="X-User-Plan")):
|
|
| 865 |
"language": config["language"],
|
| 866 |
"speed": config["speed"],
|
| 867 |
"description": config.get("description", ""),
|
| 868 |
-
"provider": config["provider"]
|
| 869 |
-
"daily_limit": config["daily_limit"]
|
| 870 |
})
|
| 871 |
|
| 872 |
# Provider'a göre grupla
|
|
@@ -969,4 +952,4 @@ if __name__ == "__main__":
|
|
| 969 |
port=8000,
|
| 970 |
reload=True,
|
| 971 |
log_level="info"
|
| 972 |
-
)
|
|
|
|
| 77 |
"speed": "⚡⚡⚡",
|
| 78 |
"description": "Hızlı ve hafif genel amaçlı model",
|
| 79 |
"plans": ["free", "starter", "pro", "plus"],
|
|
|
|
| 80 |
},
|
| 81 |
"allam-2-7b": {
|
| 82 |
"provider": "groq",
|
|
|
|
| 87 |
"speed": "⚡⚡",
|
| 88 |
"description": "Türkçe ve Arapça optimizeli model",
|
| 89 |
"plans": ["free", "starter", "pro", "plus"],
|
|
|
|
| 90 |
},
|
| 91 |
"gpt54-nano": {
|
| 92 |
"provider": "pollinations",
|
|
|
|
| 97 |
"speed": "⚡⚡⚡",
|
| 98 |
"description": "Yeni nesil, hizli ve dengeli genel amacli model",
|
| 99 |
"plans": ["free", "starter", "pro", "plus"],
|
|
|
|
| 100 |
},
|
| 101 |
"step-3.5-flash": {
|
| 102 |
"provider": "openrouter",
|
|
|
|
| 107 |
"speed": "⚡⚡⚡",
|
| 108 |
"description": "OpenRouter uzerinden hizli StepFun modeli",
|
| 109 |
"plans": ["free", "starter", "pro", "plus"],
|
|
|
|
| 110 |
},
|
| 111 |
"nemotron-3-super-120b-a12b": {
|
| 112 |
"provider": "openrouter",
|
|
|
|
| 117 |
"speed": "⚡⚡",
|
| 118 |
"description": "OpenRouter uzerinden NVIDIA Nemotron modeli",
|
| 119 |
"plans": ["free", "starter", "pro", "plus"],
|
|
|
|
| 120 |
},
|
| 121 |
|
| 122 |
# ============ STARTER PLAN MODELS ============
|
|
|
|
| 131 |
"speed": "⚡⚡⚡",
|
| 132 |
"description": "OpenAI GPT-4 tabanlı hızlı model",
|
| 133 |
"plans": ["starter", "pro", "plus"],
|
|
|
|
| 134 |
},
|
| 135 |
|
| 136 |
# Groq Models (Starter+)
|
|
|
|
| 143 |
"speed": "⚡⚡",
|
| 144 |
"description": "Türkçe ve Çince optimize edilmiş model",
|
| 145 |
"plans": ["starter", "pro", "plus"],
|
|
|
|
| 146 |
},
|
| 147 |
"llama-70b": {
|
| 148 |
"provider": "groq",
|
|
|
|
| 153 |
"speed": "⚡⚡",
|
| 154 |
"description": "Güçlü ve çok yönlü büyük model",
|
| 155 |
"plans": ["starter", "pro", "plus"],
|
|
|
|
| 156 |
},
|
| 157 |
"llama-maverick-17b": {
|
| 158 |
"provider": "groq",
|
|
|
|
| 163 |
"speed": "⚡⚡",
|
| 164 |
"description": "Deneysel maverick model",
|
| 165 |
"plans": ["starter", "pro", "plus"],
|
|
|
|
| 166 |
},
|
| 167 |
"llama-scout-17b": {
|
| 168 |
"provider": "groq",
|
|
|
|
| 173 |
"speed": "⚡⚡⚡",
|
| 174 |
"description": "Keşif odaklı hızlı model",
|
| 175 |
"plans": ["starter", "pro", "plus"],
|
|
|
|
| 176 |
},
|
| 177 |
"gpt-oss-20b": {
|
| 178 |
"provider": "groq",
|
|
|
|
| 183 |
"speed": "⚡⚡",
|
| 184 |
"description": "Açık kaynak GPT alternatifleri",
|
| 185 |
"plans": ["starter", "pro", "plus"],
|
|
|
|
| 186 |
},
|
| 187 |
"glm-4.5-air": {
|
| 188 |
"provider": "openrouter",
|
|
|
|
| 193 |
"speed": "⚡⚡",
|
| 194 |
"description": "OpenRouter uzerinden GLM 4.5 Air modeli",
|
| 195 |
"plans": ["starter", "pro", "plus"],
|
|
|
|
| 196 |
},
|
| 197 |
"qwen3-coder": {
|
| 198 |
"provider": "openrouter",
|
|
|
|
| 203 |
"speed": "⚡⚡",
|
| 204 |
"description": "OpenRouter uzerinden kod odakli Qwen modeli",
|
| 205 |
"plans": ["starter", "pro", "plus"],
|
|
|
|
| 206 |
},
|
| 207 |
"lfm-2.5-1.2b-thinking": {
|
| 208 |
"provider": "openrouter",
|
|
|
|
| 213 |
"speed": "⚡⚡⚡",
|
| 214 |
"description": "OpenRouter uzerinden hizli dusunme odakli model",
|
| 215 |
"plans": ["starter", "pro", "plus"],
|
|
|
|
| 216 |
},
|
| 217 |
|
| 218 |
# ============ PRO PLAN MODELS ============
|
|
|
|
| 226 |
"speed": "⚡⚡",
|
| 227 |
"description": "En büyük açık kaynak model",
|
| 228 |
"plans": ["pro", "plus"],
|
|
|
|
| 229 |
},
|
| 230 |
"kimi-k2": {
|
| 231 |
"provider": "groq",
|
|
|
|
| 236 |
"speed": "⚡⚡",
|
| 237 |
"description": "Çince uzmanı güçlü model",
|
| 238 |
"plans": ["pro", "plus"],
|
|
|
|
| 239 |
}
|
| 240 |
}
|
| 241 |
|
|
|
|
| 849 |
"language": config["language"],
|
| 850 |
"speed": config["speed"],
|
| 851 |
"description": config.get("description", ""),
|
| 852 |
+
"provider": config["provider"]
|
|
|
|
| 853 |
})
|
| 854 |
|
| 855 |
# Provider'a göre grupla
|
|
|
|
| 952 |
port=8000,
|
| 953 |
reload=True,
|
| 954 |
log_level="info"
|
| 955 |
+
)
|