fix: Do not inject tools when models don't support them; detect this conflict before API calls happen
This commit is contained in:
1 parent
cc7f963b89
commit
64529ba5cc
3 files changed
+20
-5
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user