akhaliq HF Staff commited on
Commit
f2cd5ba
·
1 Parent(s): 01fa717

add new qwen model

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -401,6 +401,11 @@ AVAILABLE_MODELS = [
401
  "id": "qwen3-30b-a3b-thinking-2507",
402
  "description": "Qwen3-30B-A3B-Thinking model with advanced reasoning via Alibaba Cloud DashScope API"
403
  },
 
 
 
 
 
404
  {
405
  "name": "Horizon Alpha",
406
  "id": "openrouter/horizon-alpha",
@@ -490,6 +495,12 @@ def get_inference_client(model_id, provider="auto"):
490
  api_key=os.getenv("DASHSCOPE_API_KEY"),
491
  base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
492
  )
 
 
 
 
 
 
493
  elif model_id == "openrouter/horizon-alpha":
494
  # Use OpenRouter client for Horizon Alpha model
495
  return OpenAI(
 
401
  "id": "qwen3-30b-a3b-thinking-2507",
402
  "description": "Qwen3-30B-A3B-Thinking model with advanced reasoning via Alibaba Cloud DashScope API"
403
  },
404
+ {
405
+ "name": "Qwen3-Coder-30B-A3B-Instruct",
406
+ "id": "qwen3-coder-30b-a3b-instruct",
407
+ "description": "Qwen3-Coder-30B-A3B-Instruct model for advanced code generation via Alibaba Cloud DashScope API"
408
+ },
409
  {
410
  "name": "Horizon Alpha",
411
  "id": "openrouter/horizon-alpha",
 
495
  api_key=os.getenv("DASHSCOPE_API_KEY"),
496
  base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
497
  )
498
+ elif model_id == "qwen3-coder-30b-a3b-instruct":
499
+ # Use DashScope OpenAI client for Coder model
500
+ return OpenAI(
501
+ api_key=os.getenv("DASHSCOPE_API_KEY"),
502
+ base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
503
+ )
504
  elif model_id == "openrouter/horizon-alpha":
505
  # Use OpenRouter client for Horizon Alpha model
506
  return OpenAI(