Skip to content

Default to gpt-6-luna with low reasoning effort; release 0.8.0 - #69

Merged
raghubetina merged 3 commits into
mainfrom
default-gpt-6-luna-low-effort
Oct 19, 2026
Merged

raghubetina merged 3 commits into
mainfrom
default-gpt-6-luna-low-effort

Conversation

@raghubetina

@raghubetina raghubetina commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

reasoning_effort: "none" broke the most common next step for a beginner, switching to a smarter model: gpt-6.1-sol and gpt-6-astra reject "none" with a 400, so chat.model = "gpt-6.1-sol" failed until you also changed the effort. "low" is accepted by all current flagship models (gpt-6-luna, gpt-6.1-sol, gpt-6-astra).

gpt-6-luna replaces gpt-5.6-terra as the default (and in generate_schema!): about 1/20 the per-token price, and roughly twice as fast on a sample prompt. Three runs each of "What's the best pizza in Chicago?":

none low
gpt-5.6-terra 6.9–9.2s 7.6–9.7s
gpt-6-luna 3.2–4.0s 4.4–5.3s

So the new default (luna/low, ~5s) is faster than the old one (terra/none, ~7.5s).

Three commits: the change, a behavior-neutral standardrb cleanup, then the 0.8.0 bump (mirroring #67/#68).

Testing

  • bundle exec rake with a live OPENAI_API_KEY: 117 examples, 0 failures.
  • examples/all.rb against the live API. One pre-existing mismatch unrelated to this change: 07_edge_cases.rb expects BadRequestError for an unknown model, but OpenAI now returns NotFoundError (404).
  • Every code sample in the AI::Chat Examples lesson, run against this branch, including gpt-6.1-sol with no effort set (previously a 400).
  • standardrb now passes cleanly (was 10 offenses on main). reek still reports its existing design-smell warnings; those need refactors and are left for a separate change.

The "none" default broke the most common next step for a beginner:
switching to a smarter model. gpt-6.1-sol and gpt-6-astra reject
"none" with a bare 400, so `chat.model = "gpt-6.1-sol"` failed until
you also changed reasoning_effort. Every current flagship model
accepts "low", so changing the model alone now works.

gpt-6-luna replaces gpt-5.6-terra as the default, including in
generate_schema!, because it costs about a twentieth as much per
token and answered a sample prompt about twice as fast. Even at
"low", it beat terra at "none" (about 5s vs 7.5s).

A non-"none" effort also requests a reasoning summary, so one is now
requested by default. Set reasoning_effort = "none" for the old
behavior on models that support it.
Gets `standardrb` back to a clean run so a new offense stands out
instead of hiding among old ones. Every fix is behavior-neutral: the
proxy= rescue still restores @proxy and re-raises, generate_schema!
uses ||= for the same fallback, and the verbosity example drops
unused assignments and fixes its indentation.
@raghubetina
raghubetina force-pushed the default-gpt-6-luna-low-effort branch from ff61fbd to 79016b8 Compare October 19, 2026 15:54
@raghubetina
raghubetina merged commit c493a28 into main Oct 19, 2026
2 checks passed
@raghubetina
raghubetina deleted the default-gpt-6-luna-low-effort branch October 19, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant