akhaliq HF Staff commited on
Commit
f25568c
·
1 Parent(s): 4acb12d

remove horizon models

Browse files
Files changed (1) hide show
  1. app.py +3 -30
app.py CHANGED
@@ -456,16 +456,7 @@ AVAILABLE_MODELS = [
456
  "id": "qwen3-coder-30b-a3b-instruct",
457
  "description": "Qwen3-Coder-30B-A3B-Instruct model for advanced code generation via Alibaba Cloud DashScope API"
458
  },
459
- {
460
- "name": "Horizon Alpha",
461
- "id": "openrouter/horizon-alpha",
462
- "description": "OpenRouter Horizon Alpha model for advanced code generation and multimodal tasks"
463
- },
464
- {
465
- "name": "Horizon Beta",
466
- "id": "openrouter/horizon-beta",
467
- "description": "OpenRouter Horizon Beta model for advanced code generation and multimodal tasks with vision support"
468
- },
469
  {
470
  "name": "StepFun Step-3",
471
  "id": "step-3",
@@ -576,26 +567,8 @@ def get_inference_client(model_id, provider="auto"):
576
  api_key=os.getenv("DASHSCOPE_API_KEY"),
577
  base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
578
  )
579
- elif model_id == "openrouter/horizon-alpha":
580
- # Use OpenRouter client for Horizon Alpha model
581
- return OpenAI(
582
- api_key=os.getenv("OPENROUTER_API_KEY"),
583
- base_url="https://openrouter.ai/api/v1",
584
- default_headers={
585
- "HTTP-Referer": os.getenv("OPENROUTER_SITE_URL", "https://huggingface.co/spaces/akhaliq/anycoder"),
586
- "X-Title": os.getenv("OPENROUTER_SITE_NAME", "AnyCoder")
587
- }
588
- )
589
- elif model_id == "openrouter/horizon-beta":
590
- # Use OpenRouter client for Horizon Beta model
591
- return OpenAI(
592
- api_key=os.getenv("OPENROUTER_API_KEY"),
593
- base_url="https://openrouter.ai/api/v1",
594
- default_headers={
595
- "HTTP-Referer": os.getenv("OPENROUTER_SITE_URL", "https://huggingface.co/spaces/akhaliq/anycoder"),
596
- "X-Title": os.getenv("OPENROUTER_SITE_NAME", "AnyCoder")
597
- }
598
- )
599
  elif model_id == "step-3":
600
  # Use StepFun API client for Step-3 model
601
  return OpenAI(
 
456
  "id": "qwen3-coder-30b-a3b-instruct",
457
  "description": "Qwen3-Coder-30B-A3B-Instruct model for advanced code generation via Alibaba Cloud DashScope API"
458
  },
459
+
 
 
 
 
 
 
 
 
 
460
  {
461
  "name": "StepFun Step-3",
462
  "id": "step-3",
 
567
  api_key=os.getenv("DASHSCOPE_API_KEY"),
568
  base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
569
  )
570
+
571
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
572
  elif model_id == "step-3":
573
  # Use StepFun API client for Step-3 model
574
  return OpenAI(