[router][tool call] Clean up redundant detect_format and has_tool_markers (#11270)
This commit is contained in:
@@ -1859,7 +1859,7 @@ impl GrpcPDRouter {
|
||||
// Check format detection first
|
||||
let can_parse = {
|
||||
let parser = pooled_parser.lock().await;
|
||||
parser.detect_format(processed_text)
|
||||
parser.has_tool_markers(processed_text)
|
||||
// Lock is dropped here
|
||||
};
|
||||
|
||||
|
||||
@@ -306,7 +306,7 @@ impl GrpcRouter {
|
||||
// Check format detection first
|
||||
let can_parse = {
|
||||
let parser = pooled_parser.lock().await;
|
||||
parser.detect_format(processed_text)
|
||||
parser.has_tool_markers(processed_text)
|
||||
// Lock is dropped here
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user