Feat: add VLLM (#5380)

### What problem does this PR solve?

Read to add VLMM.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Yongteng Lei
2025-02-26 16:04:53 +08:00
committed by GitHub
parent 96e9d50060
commit cdcaae17c6
4 changed files with 16 additions and 0 deletions

View File

@ -172,6 +172,10 @@ def add_llm():
llm_name = req["llm_name"] + "___OpenAI-API"
api_key = req.get("api_key", "xxxxxxxxxxxxxxx")
elif factory == "VLLM":
llm_name = req["llm_name"] + "___OpenAI-API"
api_key = req.get("api_key", "xxxxxxxxxxxxxxx")
elif factory == "XunFei Spark":
llm_name = req["llm_name"]
if req["model_type"] == "chat":