[router][grpc] Refine streaming processes (#11277)

This commit is contained in:
Chang Su
2025-10-06 15:15:01 -07:00
committed by GitHub
parent 748f86f3de
commit b07c9c76c5
9 changed files with 77 additions and 32 deletions
@@ -69,6 +69,11 @@ pub trait ReasoningParser: Send + Sync {
/// Get the model type this parser is designed for.
fn model_type(&self) -> &str;
/// Check if the parser is currently in reasoning mode.
///
/// Returns true if the parser is currently parsing reasoning content.
fn is_in_reasoning(&self) -> bool;
}
/// Error types for reasoning parsing operations.