Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/openhuman/inference/provider/compatible.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,16 @@ impl OpenAiCompatibleProvider {
Some(native_request.model.as_str()),
status,
);
} else if Self::is_native_tool_schema_unsupported(status, &body) {
// Model rejects tool definitions (e.g. Ollama "does not support tools").
// The caller's retry loop already handles this by re-issuing without
// tools — suppress the Sentry event so noise doesn't accumulate for
// every model that lacks tool-calling support (TAURI-RUST-4K7).
log::info!(
"[stream] {} model rejected tool schema (status={}) — caller will retry without tools",
self.name,
status,
);
} else if super::should_report_provider_http_failure(status) {
crate::core::observability::report_error(
message.as_str(),
Expand Down
Loading