Browse Source

fix: remove completion_params from validation of llm scope

Yeuoly 6 months ago
parent
commit
cc2ae5a2c7
1 changed files with 1 additions and 4 deletions
  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):