fix: don't automatically setup openai when its not the configured provider (#237)

This commit is contained in:
kaiix
2024-08-26 18:35:04 +08:00
committed by GitHub
parent c75dc48356
commit 26409d94b5

View File

@@ -251,7 +251,9 @@ M = setmetatable(M, {
end
end
t[k].setup()
if k == Config.provider then
t[k].setup()
end
return t[k]
end,