GPT-6 Luna and DeepSeek-V4.1 Flash are making me lose my mind

  1. GPT-6 Luna: Constantly fires the end_call tool for zero reason mid-conversation. The text output is completely normal and engaged, but it just randomly hangs up the phone anyway.

  2. DeepSeek-V4.1 Flash: Incredible speed, but it keeps leaking its raw internal reasoning traces straight into the user-facing output stream.

    am i doing smth wrong…

Some models emit their reasoning between the or tags, you can use the LLM.node method to intercept it and filter its content before passing to the TTS model. Regardless the end_call being called abruptly, it’s more a prompt logic than a code, once that LLM models are non-deterministic

I don’t think the reason the calls hang up is because of the LLM. Can you check your logs from your SIP Provider and LiveKit. You might get some hints as to why the calls are dropping.

Have you tried other models and if yes, how is the experience?

If you can, test using LiveKit’s Gemma 4 31B Hosted by LiveKit | LiveKit Documentation. It’s the recommended LLM for running LiveKit agents.

Yes its the LLM pretty clearly outputting an end call tool i checked, more expensive LLMs dont have this issue and even gpt 5.6 luna doesnt, but it seems like its a weird quirk of gpt 6 luna, also deepseek is the only model that ever leaks reasoning traces