From 163e71d06f0e820a82d3332710dc06b51a1ce393 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Wed, 26 Mar 2025 10:33:33 +0800 Subject: [PATCH] Fix: Hunyuan model adding error. (#6531) ### What problem does this PR solve? #6523 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/apps/llm_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/apps/llm_app.py b/api/apps/llm_app.py index d67692b52..771418e42 100644 --- a/api/apps/llm_app.py +++ b/api/apps/llm_app.py @@ -139,7 +139,7 @@ def add_llm(): req = request.json factory = req["llm_factory"] api_key = req.get("api_key", "x") - llm_name = req["llm_name"] + llm_name = req.get("llm_name") def apikey_json(keys): nonlocal req