fix: Do not inject tools when models don't support them; detect this conflict before API calls happen

This commit is contained in:
2026-03-17 09:35:51 -06:00
parent f41c85b703
commit d43c4232a2
3 changed files with 20 additions and 5 deletions
+4
View File
@@ -177,6 +177,10 @@ impl Model {
self.data.max_output_tokens
}
pub fn supports_function_calling(&self) -> bool {
self.data.supports_function_calling
}
pub fn no_stream(&self) -> bool {
self.data.no_stream
}