|
|
@@ -586,18 +586,11 @@ func checkTopics(Topics string) ([]string, string) { |
|
|
|
topics = strings.Split(topicsStr, ",") |
|
|
|
} |
|
|
|
|
|
|
|
validTopics, invalidTopics := models.SanitizeAndValidateTopics(topics) |
|
|
|
|
|
|
|
if len(validTopics) > 25 { |
|
|
|
return nil, "repo.topic.count_prompt" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if len(invalidTopics) > 0 { |
|
|
|
if len(topics) > 25 { |
|
|
|
return nil, "repo.topic.count_prompt" |
|
|
|
|
|
|
|
} |
|
|
|
return validTopics, "" |
|
|
|
return topics, "" |
|
|
|
} |
|
|
|
|
|
|
|
func CloudBrainStop(ctx *context.Context) { |
|
|
|