Skip to content

[🐞 BUG] AI Request formed in a way that is much more likely to lead to failed instruction following (answering the transcript instead of cleaning it). #388

Description

@kernkraft235

The AI prompts really need to put the user instructions in the system prompt NOT in the user message w/ the transcript payload appended directly after it. I was wondering why my prompt was having some relatively decent models fail miserably (like gpt-oss-120b w/ cerebras for insane speed)

Dumb failure #1
Image

Dumb failure #2
Image

But then this works??? lol
Image

I would just use a different model, but gpt-oss-120b from cerebras really occupies a special place: It's cheap, it can be smart and clean up transcripts well, and most importantly it's insanely fast (up to ~1000 tokens/second

CURRENT METHOD OF SENDING AI PROMPTS using {{placeholders}}:

{
  "messages": [
    {
      "role": "user",
      "content": "{{INSTRUCTIONS}}\n\n{{TRANSCRIPT}}"
    }
  ],
  "model": "gpt-oss-120b",
  "reasoning_effort": "low"
}

the \n\n inst a clean enough seperation for some of the more persnickety models like gpt-oss-120b. This is a very important model for dictation cleanup though because it gets ~1000+ tokens/second w/ cerebras API. The model IS smart enough for the task, you just need to put the dictation cleanup instructions in the system prompt

HOW IT SHOULD BE:

{
  "messages": [
    {
      "role": "system",
      "content": "{{INSTRUCTIONS}}"
    }
    {
      "role": "user",
      "content": "<transcript>\n{{TRANSCRIPT}}\n</transcript>"
    }
  ],
  "model": "gpt-oss-120b",
  "reasoning_effort": "low"
}

OR FOR THE GUIDED EDIT FEATURE:

{
  "messages": [
    {
      "role": "system",
      "content": "{{INSTRUCTIONS}}"
    }
    {
      "role": "user",
      "content": "<verbal_instructions>\n{{VERBAL_INSTRUCTIONS}}\n</verbal_instructions>\n\n{{<context>\n{{SELECTED_TEXT}}\n</context>"
    }
  ],
  "model": "gpt-oss-120b",
  "reasoning_effort": "low"
}
  • Some older local LLMs don't support system prompts, but that is the exception, not the rule, the app already kicks back bad requests when something like wrong reasoning-level chosen, so i don't think creating this edge case by using system prompt is a major issue, just provide a toggle in the AI instructions for "put instructions in user message instead of system prompt";

  • OR better yet, make a manual mode where you just let the user form the entire json payload using {{...}} placeholders like {{SYSTEM_PROMPT}}, {{TRANSCRIPT}}, {{EDIT_INSTRUCTIONS}}, {{SELECTED_TEXT}} or %transcript%, %system_prompt%, etc.

None of the dictation apps do this which inevitebly leaves me at an impasse when i'm trying to work with a stubborn model like gpt-oss-120b that really needs so deliberate request structuring.

Activity

  1. added
    bug
    on Jun 19, 2026
  2. altic-dev commented on Jun 19, 2026

    @altic-dev
    Owner

    I think this is related to #277. Wanna take a look at that conversation and see what you think? Some models work better with the way 120b did not work is what I remember. Eitherway here to have a discussion to see what would be the best solution to this!

    Also I am releasing a new model and would love for you to test it to see if you like it! It's a 4B model tuned for post processing :) lmk!

  3. adlnk commented on Jul 14, 2026

    @adlnk

    I've also experienced this with Claude Opus 4.7 as the cleanup model. Got so bad I abandoned using a cleanup model entirely. Fixing system prompt placement would help, but some amount of tweaking of the prompt given to cleanup models might also be necessary.

  4. kernkraft235 commented on Aug 10, 2026

    @kernkraft235
    Author

    I think this is related to #277. Wanna take a look at that conversation and see what you think? Some models work better with the way 120b did not work is what I remember. Eitherway here to have a discussion to see what would be the best solution to this!

    Yea it is addressing a similar issue, I think we just have different ideas on how to fix it. I think a combination of things can be done to reduce this failure mode, but exposing the system prompt and instruction prompt to be customized would probably be the most flexible, I'm willing to spend my time to find what works for my model choice. The main reason that I don't want to use another model is that gpt-oss-120b from cerebras outputs 1000+ tokens per second since it's basically running the model on an ASIC.

    1. I still think having the instruction prompt is system prompt is a good idea, or even just a boilerplate generic "clean up role" prompt then put custom instructions inside the user message.
    2. wrapping the raw transcript in <raw_transcript> ... </raw_transcript> and user instructions with <instructions> ... </instructions> with instructions in the system prompt on what these mean.
    3. Some kind of statistical analysis on the output, that checks for similarity %, that causes this failure mode to register as a failed AI step so that at least the raw transcript is what is inserted rather than seeing the bad AI text as a valid output since it's not seen as a failure due to it still returning a successful reply

    Also I am releasing a new model and would love for you to test it to see if you like it! It's a 4B model tuned for post processing :) lmk!

    I foolishly bought a 48gb MBP M3 Max back in the day before I realized how valuable RAM would be, so unfortunately I've already got several things competing for my precious RAM. I'm willing to try it, and if it consistently works AND does a good job on my looser instructions that prescribe a little bit of "enhancement" vs raw "only-clean" I would use it.

  5. altic-dev commented on Aug 10, 2026

    @altic-dev
    Owner

    I am so down for you guys to play n figure out a good all rounder prompt! Fully down for exploration here or a minimal PR targetin this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions