An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Hi baris erol,
Thanks for reporting this. The behavior you’re seeing (Python code losing newlines and indentation and being returned as a single line) has been identified as a service-side regression affecting GPT‑4.1 (2024‑12‑01‑preview). This issue is being tracked under INC 747008667.
Root cause
Engineering confirmed that a backend formatting regression caused newline and indentation tokens to be dropped in model output. This was not related to any prompt changes, client-side logic, or API version changes on customer workloads.
Resolution
The issue has been mitigated service-side. The fix restores proper handling of newline and indentation tokens in model responses.
Action required
No changes are required from your side. Existing deployments will automatically reflect the fix as the rollout completes.
If you continue to see the issue, please share the deployment name and region so we can investigate further. We’ll be glad to provide further clarification or guidance.
If this answers your query, please do click Accept Answer and Yes for was this answer helpful.
Thank you!