"Tool call start and end tokens must have the same length"
returnOk((vec![],Some(trimmed.to_string())));
);
}
// Iterate over all start and end tokens and try to extract the content between them
// Iterate over all start and end tokens and try to extract the content between them
// Assumption : One message will not contain different tags for tool calls. Iteration over tags is to support different tags by default for multiple models
// Assumption : One message will not contain different tags for tool calls. Iteration over tags is to support different tags by default for multiple models
assert_eq!(content,Some("<think>\nOkay, the user is asking for the weather in San Francisco in Fahrenheit. Let me check the tools available.\n</think>".to_string()));
assert_eq!(content,Some("<think>\nOkay, the user is asking for the weather in San Francisco in Fahrenheit. Let me check the tools available.\n</think>".to_string()));
assert_eq!(content,Some("<think>\nOkay, the user is asking for the weather in San Francisco in Fahrenheit. Let me check the tools available.\n</think>".to_string()));
@@ -729,7 +889,8 @@ Okay, the user is asking for the weather in San Francisco in Fahrenheit. Let me
...
@@ -729,7 +889,8 @@ Okay, the user is asking for the weather in San Francisco in Fahrenheit. Let me
- **Summer (June to August)**: Average highs range from the mid-60s to low 70s Fahrenheit, with cooler mornings and evenings. Coastal areas may be cooler than inland spots.
- **Summer (June to August)**: Average highs range from the mid-60s to low 70s Fahrenheit, with cooler mornings and evenings. Coastal areas may be cooler than inland spots.
Remember, San Francisco weather can be quite unpredictable, particularly with its famous fog, which can significantly lower temperatures. Always check a local weather forecast for the most accurate and up-to-date information."#;
Remember, San Francisco weather can be quite unpredictable, particularly with its famous fog, which can significantly lower temperatures. Always check a local weather forecast for the most accurate and up-to-date information."#;