<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Angled Sapiens</title>
    <description>The latest articles on DEV Community by Angled Sapiens (@angledsapiens).</description>
    <link>https://dev.to/angledsapiens</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4267066%2F13297737-f870-49fb-ad33-130c068a426d.png</url>
      <title>DEV Community: Angled Sapiens</title>
      <link>https://dev.to/angledsapiens</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/angledsapiens"/>
    <language>en</language>
    <item>
      <title>GPT-6 Luna: 'temperature does not support 0' and 3 other migration gotchas</title>
      <dc:creator>Angled Sapiens</dc:creator>
      <pubDate>Thu, 26 Nov 2026 14:16:21 +0000</pubDate>
      <link>https://dev.to/angledsapiens/gpt-6-luna-temperature-does-not-support-0-and-3-other-migration-gotchas-2hff</link>
      <guid>https://dev.to/angledsapiens/gpt-6-luna-temperature-does-not-support-0-and-3-other-migration-gotchas-2hff</guid>
      <description>&lt;p&gt;OpenAI shuts down the GPT-4o, GPT-4o mini, GPT-4.1 and GPT-4.1 mini API snapshots on &lt;strong&gt;14 January 2027&lt;/strong&gt;, and names &lt;strong&gt;GPT-6 Luna&lt;/strong&gt; as the replacement. I tested the switch on 20 requests shaped like a typical app's traffic: support replies, JSON extraction, classification, tool calls, strict formats and a borderline request.&lt;/p&gt;

&lt;p&gt;Short version: &lt;strong&gt;if you only change the model name, your requests fail.&lt;/strong&gt; There are three errors, and you'll meet them one at a time. Once they're fixed, there's a fourth problem that doesn't raise any error. After that, the answers stay correct but read differently.&lt;/p&gt;

&lt;p&gt;I tested this with &lt;a href="https://github.com/angledsapiens/modelshift" rel="noopener noreferrer"&gt;modelshift&lt;/a&gt;, an open-source tool I built for exactly this check. Everything below comes from that run plus direct API calls on 25 November 2026, and the samples, results and report are &lt;a href="https://github.com/angledsapiens/modelshift/tree/master/examples/gpt-4o-migration" rel="noopener noreferrer"&gt;in the repo&lt;/a&gt; so you can check them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three errors
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;code&gt;max_tokens&lt;/code&gt; is rejected
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Unsupported parameter: 'max_tokens' is not supported with this model.
Use 'max_completion_tokens' instead.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Rename it. &lt;code&gt;max_completion_tokens&lt;/code&gt; also works on GPT-4o mini, so this change is safe to make before you switch.&lt;/p&gt;
&lt;h3&gt;
  
  
  2. &lt;code&gt;temperature: 0&lt;/code&gt; is rejected (unless reasoning is off)
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Unsupported value: 'temperature' does not support 0 with this model.
Only the default (1) value is supported.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The message says only the default is supported, but that's only true while the model is reasoning. With &lt;code&gt;reasoning_effort="none"&lt;/code&gt; it accepts &lt;code&gt;temperature=0&lt;/code&gt;; at &lt;code&gt;"low"&lt;/code&gt; or the default, it rejects it. So either remove &lt;code&gt;temperature&lt;/code&gt;, or turn reasoning off.&lt;/p&gt;

&lt;p&gt;This one matters more than it looks, because &lt;strong&gt;neither option gives you repeatable answers.&lt;/strong&gt; I sent the same request five times at &lt;code&gt;temperature=0&lt;/code&gt; with reasoning off and got three different answers. In the main run, GPT-6 Luna also gave three different wordings for the same support request across three calls. If you used temperature 0 so that code could cache, compare or snapshot-test answers, that code needs to cope with variation now.&lt;/p&gt;
&lt;h3&gt;
  
  
  3. Tool calls on Chat Completions are rejected
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Function tools with reasoning_effort are not supported for gpt-6-luna
in /v1/chat/completions. To use function tools, use /v1/responses or
set reasoning_effort to 'none'.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Either send &lt;code&gt;reasoning_effort="none"&lt;/code&gt; with tool calls, or move to the Responses API. Both worked in my test (&lt;code&gt;get_weather({"city":"Paris"})&lt;/code&gt;). The first is the smaller change; the second is the direction OpenAI is pointing. If you move APIs, test that separately, because it's a bigger change than a parameter.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One catch: there's no single set of parameters that works for both models.&lt;/strong&gt; GPT-4o mini rejects &lt;code&gt;reasoning_effort&lt;/code&gt; (&lt;code&gt;Unrecognized request argument supplied: reasoning_effort&lt;/code&gt;), so during the switch your parameters have to depend on the model:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;model_params&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max_out&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# max_completion_tokens works on both; the rest differs.&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"gpt-6"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"max_completion_tokens"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;max_out&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"reasoning_effort"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"none"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"max_completion_tokens"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;max_out&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"temperature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;completions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="nf"&gt;model_params&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  The fourth problem: empty answers, no error
&lt;/h2&gt;

&lt;p&gt;This is the dangerous one. GPT-6 Luna is a reasoning model, and &lt;code&gt;max_completion_tokens&lt;/code&gt; covers its hidden reasoning as well as the answer. Set a small limit, as people often do for classification, and the model can spend all of it thinking:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;code&gt;max_completion_tokens&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;Default reasoning&lt;/th&gt;
&lt;th&gt;&lt;code&gt;reasoning_effort="none"&lt;/code&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;5, 10, 20&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;''&lt;/code&gt; (empty, &lt;code&gt;finish_reason: "length"&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;negative&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;50, 100, 300&lt;/td&gt;
&lt;td&gt;&lt;code&gt;negative&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;negative&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;GPT-4o mini answers that classification correctly with a limit of 5. After the switch, a classifier with &lt;code&gt;max_tokens=10&lt;/code&gt; returns &lt;strong&gt;blank labels with HTTP 200&lt;/strong&gt;. Nothing in your error monitoring will notice.&lt;/p&gt;

&lt;p&gt;Fix: raise the limit well above the answer's length, or send &lt;code&gt;reasoning_effort="none"&lt;/code&gt; if the task doesn't need reasoning. Check how your code handles an empty string too.&lt;/p&gt;
&lt;h2&gt;
  
  
  What changes when nothing breaks
&lt;/h2&gt;

&lt;p&gt;With the fixes in place, GPT-6 Luna passed every correctness rule I wrote, just as GPT-4o mini did: JSON fields and values, exact classification labels, the right tool (and no tool when none was needed), exactly three bullet points, a markdown table, SQL and Python in code blocks, a word limit, and date arithmetic. Neither model refused the borderline request ("I'm locked out of my own house…").&lt;/p&gt;

&lt;p&gt;But the answers read differently:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Terser.&lt;/strong&gt; About 25% less visible text overall. Asked about opening hours, GPT-4o mini wrote "Our opening hours are indeed Monday to Friday, from 9 AM to 5 PM. If you have any specific questions or need assistance during those hours, feel free to ask!" GPT-6 Luna wrote "We're open Monday to Friday, 9am to 5pm.", all three times.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Markdown where you didn't ask for it.&lt;/strong&gt; In plain-prose replies such as support answers, GPT-6 Luna put the order number in bold (&lt;code&gt;**NW-48213**&lt;/code&gt;) in 7 of 39 answers, and used em dashes in 5. GPT-4o mini did neither. If your replies go to a plain-text chat widget, SMS or email, customers will see the asterisks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More cautious, still helpful.&lt;/strong&gt; On the lockout request, GPT-4o mini's first suggestion was to check for open windows; GPT-6 Luna led with spare keys and the landlord, and said not to climb in or force a window.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measurably different, overall.&lt;/strong&gt; By word overlap, GPT-6 Luna's answers were less similar to GPT-4o mini's (0.71) than GPT-4o mini's answers were to each other across repeats (0.93). By meaning, measured with embeddings, agreement fell from 98% to 92%. Both gaps are outside run-to-run noise, so this is a real change in behaviour, not randomness.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Cost and speed
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Median latency:&lt;/strong&gt; 1.16 s → 1.30 s.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Output tokens:&lt;/strong&gt; GPT-6 Luna wrote less visible text but billed &lt;strong&gt;about twice the output tokens&lt;/strong&gt; (6,660 against 3,270 across the run), because hidden reasoning is billed as output. Check your cost estimates before you assume a newer model is cheaper.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  How I tested
&lt;/h2&gt;

&lt;p&gt;20 hand-written requests, each with rules for a correct answer, run 3 times on each model. modelshift first measures how much GPT-4o mini disagrees with &lt;em&gt;itself&lt;/em&gt; across repeats (the noise floor), and only flags a change bigger than that, using paired bootstrap confidence intervals. For the three settings GPT-6 Luna rejected, it made the smallest change that worked, retried, and listed each change as one your code will need. The verdict was &lt;strong&gt;"review before switching"&lt;/strong&gt;: correct, but different enough that someone should read the examples.&lt;/p&gt;

&lt;p&gt;Limits, honestly: 20 requests isn't your traffic. GPT-6 Luna runs at temperature 1, so a re-run gives slightly different numbers. And this tested Chat Completions, not the Responses API. That's why the most useful version of this test is the one you run on your own requests.&lt;/p&gt;
&lt;h2&gt;
  
  
  Check your own app
&lt;/h2&gt;

&lt;p&gt;Find which models your code uses, and when they retire (no API key needed):&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx modelshift scan
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Then replay your own logged requests against both models and get the same report I got:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# build a test set from your logs (PII redacted)&lt;/span&gt;
npx modelshift capture logs.jsonl

&lt;span class="c"&gt;# run both models on it and write the report&lt;/span&gt;
npx modelshift run --from openai:gpt-4o-mini-2024-07-18 \
  --to openai:gpt-6-luna --html report.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;It's MIT-licensed, runs locally with your own key, and sends nothing anywhere except to the providers you choose. The full example, with all 20 requests and every answer, is &lt;a href="https://github.com/angledsapiens/modelshift/tree/master/examples/gpt-4o-migration" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/angledsapiens" rel="noopener noreferrer"&gt;
        angledsapiens
      &lt;/a&gt; / &lt;a href="https://github.com/angledsapiens/modelshift" rel="noopener noreferrer"&gt;
        modelshift
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Know what breaks before your LLM is switched off: find retiring, removed and silently redirected models, and test replacements with honest statistics.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;modelshift&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;&lt;a href="https://www.npmjs.com/package/modelshift" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/7f9d051d3bc6a573655abcd73cc741628feacf8773399092cccef80c8d9425fc/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f6d6f64656c7368696674" alt="npm"&gt;&lt;/a&gt; &lt;a href="https://github.com/angledsapiens/modelshift/actions/workflows/ci.yml" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/angledsapiens/modelshift/actions/workflows/ci.yml/badge.svg" alt="ci"&gt;&lt;/a&gt; &lt;a href="https://github.com/angledsapiens/modelshift/LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/25f22433216f57b7e8ab05cd38038bf35055fcebc89a3139af90122b9342a7b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c7565" alt="license: MIT"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Know what breaks before your LLM is switched off.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Model providers retire models on a schedule, and inference hosts sometimes remove or swap models with no notice at all. &lt;code&gt;modelshift&lt;/code&gt; is a free, open-source command-line tool that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Finds&lt;/strong&gt; every model ID your code uses and tells you which are retiring, already gone, or being &lt;strong&gt;silently served as a different model&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tests&lt;/strong&gt; a replacement model on your own real requests, side by side with the current one, and tells you, with honest statistics, whether it's safe to switch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reports&lt;/strong&gt; the result as a single HTML file, a markdown summary for a pull request, or JSON for scripts. Anything that went wrong during testing is listed at the top, never hidden.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It runs on your machine with your own API keys. Nothing is sent anywhere except to the model providers you choose.&lt;/p&gt;

&lt;p&gt;&lt;a rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/angledsapiens/modelshift/master/docs/demo.svg"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fangledsapiens%2Fmodelshift%2Fmaster%2Fdocs%2Fdemo.svg" width="866" alt="Terminal recording of npx modelshift scan --live --probe: DeepInfra silently serves Llama-4-Scout when the app asks for Meta-Llama-3-8B-Instruct, and three models in the app are retiring, with their replacements and the file and line where each is used."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Real output from a small demo app, recorded…&lt;/p&gt;&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/angledsapiens/modelshift" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;p&gt;&lt;em&gt;Disclosure: I built modelshift. I drafted this post with help from an AI assistant; every number and error message comes from the run and API calls above. If I've got something wrong, &lt;a href="https://github.com/angledsapiens/modelshift/issues" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt; and I'll correct the post.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>openai</category>
      <category>ai</category>
      <category>llm</category>
      <category>python</category>
    </item>
  </channel>
</rss>
