Fix: model type error. (#9308)

### What problem does this PR solve?

#9240

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2025-08-07 16:14:47 +08:00
committed by GitHub
parent a2e1f5618d
commit 5749aa30b0
2 changed files with 4 additions and 1 deletions

View File

@ -225,6 +225,9 @@ class TenantLLMService(CommonService):
if llm_id == llm["llm_name"]:
return llm["model_type"].split(",")[-1]
for llm in TenantLLMService.query(llm_name=llm_id):
return llm.model_type
for llm in LLMService.query(llm_name=llm_id):
return llm.model_type