Skip to content

Commit a2fe984

Browse files
committed
fix: resolve syntax errors after rebase
1 parent bc18cdc commit a2fe984

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/semantic-router/cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func main() {
114114
observability.Infof("Starting vLLM Semantic Router ExtProc with config: %s", *configPath)
115115

116116
// Initialize embedding models if configured (Long-context support)
117-
cfg, err := config.LoadConfig(*configPath)
117+
cfg, err = config.LoadConfig(*configPath)
118118
if err != nil {
119119
observability.Warnf("Failed to load config for embedding models: %v", err)
120120
} else if cfg.EmbeddingModels.Qwen3ModelPath != "" || cfg.EmbeddingModels.GemmaModelPath != "" {

src/semantic-router/pkg/api/server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,9 @@ func (s *ClassificationAPIServer) handleUpdateSystemPrompts(w http.ResponseWrite
13601360
http.Error(w, "Failed to encode response", http.StatusInternalServerError)
13611361
return
13621362
}
1363+
}
1364+
1365+
// handleEmbeddings handles embedding generation requests
13631366
func (s *ClassificationAPIServer) handleEmbeddings(w http.ResponseWriter, r *http.Request) {
13641367
// Parse request
13651368
var req EmbeddingRequest
@@ -1591,6 +1594,7 @@ func (s *ClassificationAPIServer) handleBatchSimilarity(w http.ResponseWriter, r
15911594
ProcessingTimeMs: result.ProcessingTimeMs,
15921595
}
15931596

1597+
observability.Infof("Calculated batch similarity: query='%s', %d candidates, top-%d matches (model: %s, took: %.2fms)",
15941598
req.Query, len(req.Candidates), len(matches), result.ModelType, result.ProcessingTimeMs)
15951599

15961600
s.writeJSONResponse(w, http.StatusOK, response)

0 commit comments

Comments
 (0)