baid appid remove hardcode

This commit is contained in:
zhangkun9038@dingtalk.com 2025-02-13 11:05:07 +08:00
parent 1be1c2bbbd
commit 3e94b5bd0c

View File

@ -285,7 +285,7 @@ M.parse_curl_args = function(provider, prompt_opts)
-- Add appid header for baidu provider
if Config.provider == "baidu" then
local baidu_config = Config.get_provider("baidu") or {}
local baidu_config = Config.get_provider("baidu")
if not baidu_config.appid or baidu_config.appid == "" then
error("Baidu provider requires 'appid' to be set in config")
end