We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b7e9ae commit ae39fe2Copy full SHA for ae39fe2
src/semantic-router/pkg/extproc/request_handler.go
@@ -411,10 +411,8 @@ func (r *OpenAIRouter) handleRequestBody(v *ext_proc.ProcessingRequest_RequestBo
411
} else if len(nonUserMessages) > 0 {
412
classificationText = strings.Join(nonUserMessages, " ")
413
}
414
- if classificationText != "" {
415
- categoryName = r.findCategoryForClassification(classificationText)
416
- observability.Debugf("Classified request to category: %s", categoryName)
417
- }
+ categoryName = r.findCategoryForClassification(classificationText)
+ observability.Debugf("Classified request to category: %s", categoryName)
418
419
420
// Handle caching with category-specific settings
0 commit comments