Browse Source

feat(emoji): move from gpt-4o-mini to GPT-6 Luna

GPT-6 Luna is OpenAI's current model for small, high-volume tasks.
It costs less than gpt-4o-mini ($0.10/$0.50 vs $0.15/$0.60 per 1M
tokens) and knows about 2.5 more years of the world. With reasoning
off it answers like a non-reasoning model; reasoning models take
max_completion_tokens instead of max_tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ericwu 1 month ago
parent
commit
9fa2cad82b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/api/emoji/route.ts

+ 3 - 2
app/api/emoji/route.ts

@@ -31,8 +31,9 @@ export async function POST(req: NextRequest) {
   try {
     const openai = new OpenAI();
     const completion = await openai.chat.completions.create({
-      model: "gpt-4o-mini",
-      max_tokens: 8,
+      model: "gpt-6-luna",
+      reasoning_effort: "none",
+      max_completion_tokens: 8,
       messages: [
         {
           role: "system",