-
Notifications
You must be signed in to change notification settings - Fork 3.1k
fix(blueprint): disable native tool search for Nemotron managed inference #4800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...claw-blueprint/model-specific-setup/openclaw/nemotron-3-super-120b-managed-inference.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "$schema": "../schema.json", | ||
| "id": "nemotron-3-super-120b-managed-inference", | ||
| "agent": "openclaw", | ||
| "description": "Disables OpenClaw's native code-based tool search for nvidia/nemotron-3-super-120b-a12b on the NemoClaw managed inference.local route. The model emits invalid JavaScript for the tool_search_code surface (CommonJS require, openclaw.tools.search called with an object, bad describe/call ids), flooding successful runs with '[tools] tool_search_code failed' errors (#4780); routing it back to the structured tool-calling surface avoids the noise.", | ||
| "match": { | ||
| "modelIds": ["nvidia/nemotron-3-super-120b-a12b"], | ||
| "providerKey": "inference", | ||
| "inferenceApi": "openai-completions", | ||
| "baseUrl": "https://inference.local/v1" | ||
| }, | ||
| "effects": { | ||
| "openclawTools": { | ||
| "toolSearch": false | ||
| } | ||
| } | ||
| } | ||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing required SPDX header in this new JSON source file.
This manifest is a new
.jsonsource file but does not include the required SPDX header text.As per coding guidelines:
**/*.{js,ts,tsx,jsx,sh,md,mdx,json,yaml,yml,css,svg}files must include the specified SPDX copyright and license header.🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Declining this one — it's a false positive for this file class. Three reasons, all verifiable against the repo:
The SPDX hook deliberately excludes JSON.
.pre-commit-config.yaml'sspdx-headershook scopes tofiles: ^(nemoclaw/src/.*\.ts|scripts/export-catalog-skills\.py|scripts/.*\.ts|nemoclaw-blueprint/.*\.py|.*\.sh)$—.jsonis not matched, so model-specific-setup manifests are intentionally out of scope. The pre-commit run on this branch passed accordingly.The established precedent has no header. The sibling manifest
nemoclaw-blueprint/model-specific-setup/openclaw/kimi-k2.6-managed-inference.json(the pattern this PR mirrors) ships without an SPDX header and is green in CI.The schema forbids adding one. These manifests validate against
schema.json, which sets"additionalProperties": falseand allows only$schema, id, agent, description, match, effects. JSON has no comment syntax, so the only way to carry SPDX text would be an extra key (e.g.$comment), which would failvalidate-config-schemas.test.ts.So the header is unenforced for this path and, if added, would break schema validation. Leaving the manifest as-is to stay consistent with the kimi precedent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jason-ma-nv, you're absolutely right — I apologize for the noise. All three points are valid:spdx-headerspre-commit hook regex explicitly targets only.ts,.py, and.shpaths, not.json.kimi-k2.6-managed-inference.jsonsibling sets the precedent with no header.additionalProperties: falseschema makes it physically impossible to embed SPDX text without breaking validation.My comment was a false positive. I'll note this for future reviews.
🐇
✏️ Learnings added