[router] Fix all unused_qualifications (#11341)
This commit is contained in:
@@ -827,8 +827,7 @@ impl StreamingProcessor {
|
||||
|
||||
// Store latest output logprobs (cumulative from proto, convert to SGLang format)
|
||||
if let Some(ref output_logprobs) = chunk.output_logprobs {
|
||||
let converted =
|
||||
super::utils::convert_generate_output_logprobs(output_logprobs);
|
||||
let converted = utils::convert_generate_output_logprobs(output_logprobs);
|
||||
accumulated_output_logprobs.insert(index, Some(converted));
|
||||
}
|
||||
|
||||
|
||||
@@ -522,7 +522,7 @@ pub fn parse_json_schema_response(
|
||||
match serde_json::from_str::<Value>(processed_text) {
|
||||
Ok(params) => {
|
||||
let tool_call = ToolCall {
|
||||
id: format!("call_{}", uuid::Uuid::new_v4()),
|
||||
id: format!("call_{}", Uuid::new_v4()),
|
||||
tool_type: "function".to_string(),
|
||||
function: FunctionCallResponse {
|
||||
name: function.name.clone(),
|
||||
@@ -553,7 +553,7 @@ pub fn parse_json_schema_response(
|
||||
let parameters = obj.get("parameters")?;
|
||||
|
||||
Some(ToolCall {
|
||||
id: format!("call_{}_{}", i, uuid::Uuid::new_v4()),
|
||||
id: format!("call_{}_{}", i, Uuid::new_v4()),
|
||||
tool_type: "function".to_string(),
|
||||
function: FunctionCallResponse {
|
||||
name,
|
||||
|
||||
Reference in New Issue
Block a user