feat: 优化Gemini模型版本获取逻辑

This commit is contained in:
CalciumIon
2024-08-02 17:23:59 +08:00
parent 54657ec27b
commit e504665f68
4 changed files with 35 additions and 26 deletions

View File

@@ -55,6 +55,8 @@ func main() {
common.FatalLog("failed to initialize Redis: " + err.Error())
}
// Initialize constants
constant.InitEnv()
// Initialize options
model.InitOptionMap()
if common.RedisEnabled {