Skip to content

fix: proper error handling for missing elements in messages array (OpenAI compatible backend) #13540

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 1 commit into from
May 15, 2025

Conversation

pwilkin
Copy link
Contributor

@pwilkin pwilkin commented May 14, 2025

Supersedes #13521

Per discussion in that PR, implement proper logic for checking messages array elements, with meaningful error messages.

@jasonmcaffee
Copy link

FWIW I pulled down these changes, verified they fixed the issue I was having with the latest bartowski-Qwen2.5-7B-Instruct-1M-GGUF-Qwen2.5-7B-Instruct-1M-Q4_K_M.gguf model, and also verified that the logic adheres to the OpenAI platform docs specification.

Nice work!

@CISC CISC merged commit c753d7b into ggml-org:master May 15, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Eval bug: bizarre Jinja bug when trying to fix Qwen3 tool calling
3 participants