Fix audit logging (#27): add kimi-k2.5/nemotron to tool-capable models and fix body.model resolution in invokeOllama - #87
Open
GitPawanGupta wants to merge 2 commits into
Open
Conversation
added 2 commits
August 1, 2026 18:43
…pable models and fix body.model resolution in invokeOllama
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes two bugs related to Ollama tool calling as described in PR #27:
Bug 1: Missing tool-capable model families (src/clients/ollama-utils.js)
Added kimi-k2.5 and
emotron to the TOOL_CAPABLE_MODELS set. These newer model families support tool calling but were missing from the list, causing their tool schemas to be silently dropped.
Bug 2: invokeOllama ignores �ody.model (src/clients/databricks.js)
Fixed the model resolution logic in invokeOllama. Previously it always used config.ollama.model (global default), ignoring any model name specified in the request body. Now it correctly uses �ody.model first, falling back to config.ollama.model only when absent.
Before:
\\js
const resolvedModel = config.ollama.model;
\\
After:
\\js
const resolvedModel = (body.model && body.model.trim()) || config.ollama.model;
\\
Testing