瀏覽代碼

fix: remove completion_params from validation of llm scope

Yeuoly 6 月之前
父節點
當前提交
cc2ae5a2c7
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      internal/types/entities/plugin_entities/config.go

+ 1 - 4
internal/types/entities/plugin_entities/config.go

@@ -349,10 +349,7 @@ func ValidateProviderConfigs(settings map[string]any, configs []ProviderConfig)
 				case string(MODEL_CONFIG_SCOPE_ALL):
 					// do nothing
 				case string(MODEL_CONFIG_SCOPE_LLM):
-					// completion_params
-					if _, ok := m["completion_params"]; !ok {
-						return errors.New("setting " + config_name + " is missing completion_params")
-					}
+					// do nothing
 				case string(MODEL_CONFIG_SCOPE_TEXT_EMBEDDING):
 					// do nothing
 				case string(MODEL_CONFIG_SCOPE_RERANK):