KI wird abgeschnitten, bevor sie fertig schreibt

So I’ve been getting reports on the forum (and experienced them myself too) that the AI is just not finishing writing. At first I thought it was the model being a model so I didn’t think much of it… except that today I was checking and turns out the model is replying completely, but something on the UI is just cutting it off. Happens also with automation posts. I did one to do a weekly summary of the forum and it just doesn’t “finish” writing the post.

data: {"nonce": "e90626a4a8", "candidates": [{"content": {"parts": [{"text": "Longitudinal control on HKG (Hyundai, Kia, Genesis) cars with angle steering (LFA2) is an area of active development in sunnypilot. It's not a matter of simply finishing a \"regular car port","thoughtSignature": "CiQBcsjafFMGRiE4o6w0sZw7zZuBte9C9oTrfuwIjpQbPpnU6LcKagFyyNp80bv/vTM9jEh7sXozJX9m4GNmtqQNBRvWMKCoXmyhWHMpmW23o4jDekxbAxK465e1GXi3reCTEl6+21CUt9lIcqzyatOnIhAnGxXBspsD+t8+V0j2wC+YZDjkQW9Mr0jyNXKoELgKhQIBcsjafG5PrYkNwgx9YUITe3HZjvx5SzncZ2Ojy5sxTUuEUn/nyPubl1+JuTag9iAI5momjZYGu2Ikq2GQsrweK4FSZP8KJtZ0fnyY6hEYN//6a7gubhoO/rzu1/sTKc/NDt3oVx0kPZ+sW1XlYaRk3CbKfboRV+6BTcBfto0QL7ybvEQI9TpKrh7bEwESz1P1/HMip/XFdIzUxFRbIxXoBk2E/6WZkiO59uNePOixBScYV5MqzTgh+k06cUKXH8Jo+GKR6psIqwRluCiPLMkIatBp3wAnBdVjXFy1HRP1XxBGGYlrm/IxKSKryOl1OCOmG7+p4hQgms528e6jzClI7XPJ4zkK5QEBcsjafCXaY4ii0jCt1BWnhv7OLCOZsFsJUndy+KGnLoPD8MoNgoZm8lo6jf/V+NIFnMKCsdbB8zuGN4vzsuIFVNOKF4T96cvvAr1c7cMFhrapkeHBgHElQ8oVqVJbAWs9bYSMYisp1ir4zrYku8OAmia7PGfIpGDuRjKftW7qRtUftiba6SWcS0IX+fHwkmop6IZzB7CpWXkOJUso9fZzF2ZIzKkxSWM0HrKCr0kXF4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6Y8d989U4ORaixkC4WQEIywlFZf8HiMthqXlbf1VSD9OgfAfZc7chyD2aydT1xQd+gjhIu1vXaHbBO0qSfTt+B/z+JRDGEiww1XjYYSdCGRm9/XSI8npyowXXXlcVYUsKsLIqu5IVA8IslzWhIFbhkKMe0kP/FS6zqR66oXX2t/nlJ95cmrD/wC9oqFaXCx7qcSDljXwL06tBHWdKwWrkO6YP0733d8jCHcWtVrfbxGus5T8FkUAJnBY3oKSPLQPA5d7hvPovyrFMl+xs5Mv3iSKTIFlc3VfQgJjO8Kq4QqoLP57qcHBeYeO4D9Ab5cVDXNOR/0V7Ur+cZdjQUWib+99bIW3NmWQ8wrdAQFyyNp8wAY11eQeRNEY9azg+mu/DGxbhqhOGziyEjLF6sXUDgTGHN6PJXY142XdwCyGNI+EXTUpxpOImxoaSK0GNzKr8kNTVhMs/L4QzbJOWFEGQli8biuYlky36BwAVzX9NVKAFmuzPdbPqpK6jfAnr3pdvNnayoBRIp5KPNNqDQwwgWXjn8NJTZ9pq5OztlvR4WS/nwhxuCUbh8+8AkYyKX2xz0QNbDyogiavC8RRbUntPhgj04f945hlVK4LpahO8fFiqJJRkDha02ALGZCISVrlpZvTnSgZP1ej"}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 20565,"candidatesTokenCount": 48,"totalTokenCount": 21305,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 20565}],"thoughtsTokenCount": 692},"modelVersion": "gemini-2.5-flash","responseId": "3q8saZzqKaWOjMcPgPj5oA4"}

data: {"nonce": "f743860cb8", "candidates": [{"content": {"parts": [{"text": "\" in the traditional sense, as these vehicles utilize a newer control API that requires specialized implementation.\n\nHere's a summary of the situation based on discussions in the community:\n\n*   **New Control API:** Angle steering (LFA2)"}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 20565,"candidatesTokenCount": 98,"totalTokenCount": 21355,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 20565}],"thoughtsTokenCount": 692},"modelVersion": "gemini-2.5-flash","responseId": "3q8saZzqKaWOjMcPgPj5oA4"}

data: {"nonce": "fd16d9ff", "candidates": [{"content": {"parts": [{"text": " refers to a new control API from Hyundai, Kia, and Genesis, which primarily applies to 2025+ models. sunnypilot's implementation needs to adapt to this new system.\n*   **Development Branches:**"}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 20565,"candidatesTokenCount": 147,"totalTokenCount": 21404,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 20565}],"thoughtsTokenCount": 692},"modelVersion": "gemini-2.5-flash","responseId": "3q8saZzqKaWOjMcPgPj5oA4"}

data: {"nonce": "4f85", "candidates": [{"content": {"parts": [{"text": " There are specific development branches for angle steering, such as `hkg-angle-steering-2025` (active development) and `hkg-angle-steering-2025-prebuilt` (stable testing"}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 20565,"candidatesTokenCount": 195,"totalTokenCount": 21452,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 20565}],"thoughtsTokenCount": 692},"modelVersion": "gemini-2.5-flash","responseId": "3q8saZzqKaWOjMcPgPj5oA4"}

data: {"nonce": "9ca7bd", "candidates": [{"content": {"parts": [{"text": ").\n*   **Work in Progress:** Some branches, like `hkg-angle-steering-2025-hda1`, are currently on hold as other core branches (`ccnc` and `hkg-angle-steering-branch"}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 20565,"candidatesTokenCount": 246,"totalTokenCount": 21503,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 20565}],"thoughtsTokenCount": 692},"modelVersion": "gemini-2.5-flash","responseId": "3q8saZzqKaWOjMcPgPj5oA4"}

data: {"nonce": "fb9ecd1b15a7", "candidates": [{"content": {"parts": [{"text": "-2025`) need to converge first. This means that full longitudinal control on all angle steering configurations is still being developed.\n*   **Limitations and Recommendations:**\n    *   If you're on a non-HDA1"}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 20565,"candidatesTokenCount": 296,"totalTokenCount": 21553,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 20565}],"thoughtsTokenCount": 692},"modelVersion": "gemini-2.5-flash","responseId": "3q8saZzqKaWOjMcPgPj5oA4"}

data: {"nonce": "fd3cac2dd11ba065", "candidates": [{"content": {"parts": [{"text": " angle steering branch, you might not have full longitudinal control and could see dashboard warnings, though other functionalities should work.\n    *   NNLC (Neural Network Longitudinal Control) is not currently supported for any angle steering cars in sunnypilot"}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 20565,"candidatesTokenCount": 345,"totalTokenCount": 21602,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 20565}],"thoughtsTokenCount": 692},"modelVersion": "gemini-2.5-flash","responseId": "3q8saZzqKaWOjMcPgPj5oA4"}

data: {"nonce": "549c58", "candidates": [{"content": {"parts": [{"text": " or openpilot.\n    *   For optimal and safe operation, proper car porting is recommended. If your specific vehicle model isn't officially ported, using a similar model might work, but it's advised to provide a route and"}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 20565,"candidatesTokenCount": 394,"totalTokenCount": 21651,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 20565}],"thoughtsTokenCount": 692},"modelVersion": "gemini-2.5-flash","responseId": "3q8saZzqKaWOjMcPgPj5oA4"}

data: {"nonce": "9cfd63cbefcde6", "candidates": [{"content": {"parts": [{"text": " request proper porting for safety reasons.\n    *   If you're using a prebuilt angle steering branch and find the longitudinal control a bit limited, some users have found success by adjusting \"min active torque\" in the steering settings"}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 20565,"candidatesTokenCount": 442,"totalTokenCount": 21699,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 20565}],"thoughtsTokenCount": 692},"modelVersion": "gemini-2.5-flash","responseId": "3q8saZzqKaWOjMcPgPj5oA4"}

data: {"nonce": "998628", "candidates": [{"content": {"parts": [{"text": " (e.g., to 90% or 95%).\n\nIn essence, special work is indeed needed due to the new control API for LFA2 cars, and while progress is being made on dedicated branches, it's still an"}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 20565,"candidatesTokenCount": 493,"totalTokenCount": 21750,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 20565}],"thoughtsTokenCount": 692},"modelVersion": "gemini-2.5-flash","responseId": "3q8saZzqKaWOjMcPgPj5oA4"}

data: {"nonce": "2f", "candidates": [{"content": {"parts": [{"text": " evolving feature set with some current limitations.\n\nYou can follow the ongoing discussions and updates in the #Vehicle-Talk:Hyundai-Kia-Genesis category, especially in the thread [Support for newer vehicles equipped with Angle Steering (LFA2"}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 20565,"candidatesTokenCount": 541,"totalTokenCount": 21798,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 20565}],"thoughtsTokenCount": 692},"modelVersion": "gemini-2.5-flash","responseId": "3q8saZzqKaWOjMcPgPj5oA4"}

data: {"nonce": "15d69a6453c811", "candidates": [{"content": {"parts": [{"text": ")](https://community.sunnypilot.ai/t/support-for-newer-vehicles-equipped-with-angle-steering-lfa2/22)."}],"role": "model"},"finishReason": "STOP","index": 0}],"usageMetadata": {"promptTokenCount": 20565,"candidatesTokenCount": 578,"totalTokenCount": 21835,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 20565}],"thoughtsTokenCount": 692},"modelVersion": "gemini-2.5-flash","responseId": "3q8saZzqKaWOjMcPgPj5oA4"}


Any hint to where to look and investigate would help me a ton. Thank you !

1 „Gefällt mir“

Ich habe einige Probleme genau um dieses Problem herum behoben in:

Konkret bestand die konsistente Reproduktion des Problems darin, 2 Konversationen zu führen und zwischen ihnen hin und her zu wechseln.
Sie sind … fast … bei diesem Commit, der Commit sollte Mitte dieser Woche veröffentlicht werden.

Ich wollte nur bestätigen: Wenn Sie die Seite neu laden, nachdem alles erledigt ist, sehen Sie dann alles korrekt angezeigt?

Leider ist das nicht der Fall, es ist so, als wäre die Nachricht abgeschnitten gesendet worden und das war’s, obwohl das Debugging eindeutig zeigt, dass die Antwort vollständig war… Ich befürchte also, dass dies ein anderes Problem sein könnte? Es fing ungefähr am 25. November an, vielleicht ein paar Tage früher? Ein anderer Einfall, den ich habe, ist, dass es irgendwie zu passieren scheint, wenn dem Gespräch ein Titel gegeben wird, aber ich könnte mich da irren oder es ist nur ein Zufall.

Danke, tut mir leid, ich dachte, du würdest von uns gehostet werden :hugs: Ich wollte anbieten, mich einzuloggen und bei der Untersuchung zu helfen.

Kannst du in /logs nachsehen, ob dort Fehler sind? Es sieht so aus, als würdest du den OpenAI-Kompatibilitäts-Endpunkt für Gemini verwenden. Kannst du den Gemini-Endpunkt versuchen, um zu sehen, ob die Ergebnisse anders sind?

1 „Gefällt mir“

Nichts Besonderes fällt mir in den Protokollen auf

(Entschuldigung für die Screenshots vom Telefon, ich war den ganzen Tag unterwegs wegen meines Geburtstags, aber das hier kann ich nicht ignorieren hahaha)

Das wusste ich nicht, dass ich diesen verwende, aber das passiert bei allen Modellen … sogar bei ChatGPT-Modellen oder sogar bei gemini3. Ich verwende jedoch das AI Gateway von Cloudflare. Aber ich habe es auch ohne getestet und das gleiche Ergebnis

Edit:

Bezüglich des Kompatibilitätsendpunkts… ich bin mir nicht sicher, ob ich es falsch mache, aber ich glaube nicht, dass ich den Kompatibilitätsendpunkt aufrufe. Ich weiß, dass er auf /openai endet, aber das ist bei mir nicht der Fall. Ich teile die Konfiguration, die ich habe, falls sie einen Hinweis gibt.

Außerdem habe ich das Gefühl, dass dies auch angefangen haben könnte, als ich Kontingente aktiviert habe, aber ich unterliege ihnen nicht, und dies geschieht bei Modellen oder Assistenten ohne Kontingent. Es könnte also auch reiner Zufall sein