Kaynağa Gözat

fix: remove completion_params from validation of llm scope

Yeuoly 6 ay önce
ebeveyn
işleme
cc2ae5a2c7

+ 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):