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

This commit is contained in:
Dark-Alex-17 committed 2026-03-17 09:35:51 -06:00
1 parent cc7f963b89
commit 64529ba5cc
3 files changed
+20 -5

No files matched your search

+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
}