Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/semantic-router/pkg/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,16 @@ func (s *ClassificationAPIServer) handleIntentClassification(w http.ResponseWrit
return
}

response, err := s.classificationSvc.ClassifyIntent(req)
// Use unified classifier if available, otherwise fall back to legacy
var response *services.IntentResponse
var err error

if s.classificationSvc.HasUnifiedClassifier() {
response, err = s.classificationSvc.ClassifyIntentUnified(req)
} else {
response, err = s.classificationSvc.ClassifyIntent(req)
}

if err != nil {
s.writeErrorResponse(w, http.StatusInternalServerError, "CLASSIFICATION_ERROR", err.Error())
return
Expand Down
Loading