akhaliq HF Staff commited on
Commit
55971a2
·
1 Parent(s): f2cd5ba

add stepfun 3 model

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -410,6 +410,11 @@ AVAILABLE_MODELS = [
410
  "name": "Horizon Alpha",
411
  "id": "openrouter/horizon-alpha",
412
  "description": "OpenRouter Horizon Alpha model for advanced code generation and multimodal tasks"
 
 
 
 
 
413
  }
414
  ]
415
 
@@ -511,6 +516,12 @@ def get_inference_client(model_id, provider="auto"):
511
  "X-Title": os.getenv("OPENROUTER_SITE_NAME", "AnyCoder")
512
  }
513
  )
 
 
 
 
 
 
514
  elif model_id == "moonshotai/Kimi-K2-Instruct":
515
  provider = "groq"
516
  elif model_id == "Qwen/Qwen3-235B-A22B":
 
410
  "name": "Horizon Alpha",
411
  "id": "openrouter/horizon-alpha",
412
  "description": "OpenRouter Horizon Alpha model for advanced code generation and multimodal tasks"
413
+ },
414
+ {
415
+ "name": "StepFun Step-3",
416
+ "id": "step-3",
417
+ "description": "StepFun Step-3 model - AI chat assistant by 阶跃星辰 with multilingual capabilities"
418
  }
419
  ]
420
 
 
516
  "X-Title": os.getenv("OPENROUTER_SITE_NAME", "AnyCoder")
517
  }
518
  )
519
+ elif model_id == "step-3":
520
+ # Use StepFun API client for Step-3 model
521
+ return OpenAI(
522
+ api_key=os.getenv("STEP_API_KEY"),
523
+ base_url="https://api.stepfun.com/v1"
524
+ )
525
  elif model_id == "moonshotai/Kimi-K2-Instruct":
526
  provider = "groq"
527
  elif model_id == "Qwen/Qwen3-235B-A22B":