Spaces:
Sleeping
Sleeping
Chunhua Liao
commited on
Commit
·
c64b342
1
Parent(s):
0a2ee26
Remove ALLOWED_MODELS_PRODUCTION list completely
Browse files- app/api.py +0 -11
app/api.py
CHANGED
@@ -44,17 +44,6 @@ async def fetch_available_models():
|
|
44 |
logger.info(f"Is Hugging Face Spaces: {is_hf_spaces}")
|
45 |
logger.info("Fetching available models from OpenRouter...")
|
46 |
|
47 |
-
# Define cost-effective models for production deployment
|
48 |
-
ALLOWED_MODELS_PRODUCTION = [
|
49 |
-
"google/gemini-2.0-flash-001",
|
50 |
-
"google/gemini-flash-1.5",
|
51 |
-
"openai/gpt-3.5-turbo",
|
52 |
-
"anthropic/claude-3-haiku",
|
53 |
-
"meta-llama/llama-3.1-8b-instruct",
|
54 |
-
"mistralai/mistral-7b-instruct",
|
55 |
-
"microsoft/phi-3-mini-4k-instruct"
|
56 |
-
]
|
57 |
-
|
58 |
try:
|
59 |
response = requests.get("https://openrouter.ai/api/v1/models", timeout=10)
|
60 |
response.raise_for_status()
|
|
|
44 |
logger.info(f"Is Hugging Face Spaces: {is_hf_spaces}")
|
45 |
logger.info("Fetching available models from OpenRouter...")
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
try:
|
48 |
response = requests.get("https://openrouter.ai/api/v1/models", timeout=10)
|
49 |
response.raise_for_status()
|