Skip to content

Studio: follow-up fix for GGUF developer prompts - #6115

Merged
wasimysaid merged 2 commits into
unslothai:mainfrom
wasimysaid:fix/gguf-developer-system-prompt
Jun 9, 2026
Merged

wasimysaid merged 2 commits into
unslothai:mainfrom
wasimysaid:fix/gguf-developer-system-prompt

Conversation

@wasimysaid

@wasimysaid wasimysaid commented Jun 9, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to merged PR #6010.

That PR fixed OpenAI and Anthropic API compatibility. A live smoke test after merge found one GGUF chat case still failing when a request includes both system and developer messages.

Qwen templates reject duplicate system turns with:

System message must be at the beginning.

This change sends one merged system prompt to standard GGUF chat and the GGUF passthrough paths for response_format and native tools.

Verified:

  • ruff check
  • py_compile
  • test_openai_tool_passthrough.py

@wasimysaid
wasimysaid requested a review from danielhanchen as a code owner June 9, 2026 15:32

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the audio_input_stream endpoint in studio/backend/routes/inference.py to prepend or set system messages for GGUF messages, and adds a corresponding unit test in studio/backend/tests/test_openai_tool_passthrough.py. The reviewer suggests parameterizing this new unit test to cover both streaming and non-streaming execution paths to ensure complete coverage.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@wasimysaid

Copy link
Copy Markdown
Collaborator Author

@codex review

@wasimysaid wasimysaid changed the title Studio: merge developer prompts for GGUF chat Studio: follow-up fix for GGUF developer prompts Jun 9, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a00c4430db

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread studio/backend/routes/inference.py Resolved
@wasimysaid
wasimysaid force-pushed the fix/gguf-developer-system-prompt branch from a00c443 to 39df496 Compare June 9, 2026 15:49
@wasimysaid
wasimysaid merged commit 2554636 into unslothai:main Jun 9, 2026
27 of 28 checks 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.

1 participant