Fix: Exclude chat_template for Mistral tokenizers in NVIDIA NIM (#130) by anujbharambe · Pull Request #131 · Alishahryar1/free-claude-code · GitHub
Skip to content

Fix: Exclude chat_template for Mistral tokenizers in NVIDIA NIM (#130)#131

Merged
Alishahryar1 merged 1 commit intoAlishahryar1:mainfrom
anujbharambe:fix-mistral-chat-template
Apr 23, 2026
Merged

Fix: Exclude chat_template for Mistral tokenizers in NVIDIA NIM (#130)#131
Alishahryar1 merged 1 commit intoAlishahryar1:mainfrom
anujbharambe:fix-mistral-chat-template

Conversation

@anujbharambe
Copy link
Copy Markdown
Contributor

Fixes #130. This PR updates the NVIDIA NIM provider to omit \chat_template_kwargs\ and \chat_template\ when using a Mistral tokenizer model. This resolves the 400 Bad Request error returned by the API.

@Alishahryar1 Alishahryar1 force-pushed the fix-mistral-chat-template branch from 3690a91 to 943216a Compare April 23, 2026 00:15
@Alishahryar1 Alishahryar1 merged commit 4fdf7e8 into Alishahryar1:main Apr 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chat_template is not supported for Mistral tokenizers

2 participants