Conversation
Agent-Logs-Url: https://github.com/codomium/CODE/sessions/79046555-cc6d-488c-aed2-6c0b739f2c27 Co-authored-by: codomium <255525663+codomium@users.noreply.github.com>
…ing + model switch + sse errors) Agent-Logs-Url: https://github.com/codomium/CODE/sessions/9cfacfc2-d2db-44d8-aa57-1e9211270c08 Co-authored-by: codomium <255525663+codomium@users.noreply.github.com>
…G_MODELS constant Agent-Logs-Url: https://github.com/codomium/CODE/sessions/9a9ed1dc-8da0-4e2a-b460-3bee96c95209 Co-authored-by: codomium <255525663+codomium@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
codomium
April 17, 2026 19:50
View session
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.
NVIDIA NIM returns HTTP 400 when
chat_template_kwargs: {thinking: true}andtoolsare both present in the same request. The agent was unconditionally sending all registered tools to every NVIDIA model, breaking kimi-k2.5 and deepseek-r1 entirely.Changes
NVIDIA_THINKING_MODELSconstant — module-levelSetof models that usethinking: true; replaces duplicate inline definitionstoolsarray is omitted from the request body when the model is inNVIDIA_THINKING_MODELSsystemPromptStatic(tool-description-free prefix) in agent state; thinking-model calls use this instead of the full prompt, so the model isn't told about tools it can't callsystemPromptStaticwarning — logs to stderr if the static prefix is absent at call time, surfacing initialization issues early