คำชี้แจงเกี่ยวกับการเรียกเก็บค่าบริการแบบขั้นบันไดสำหรับบริบทที่ยาวเป็นพิเศษของ GPT-5.6 Sol
-
<p>ตามกฎการเรียกเก็บค่าบริการล่าสุดของ OpenAI โมเดลอย่าง GPT-5.6 Sol ใช้ราคาแบบขั้นบันไดสำหรับคำขอที่มีบริบทยาวเป็นพิเศษ</p><p>เมื่อบริบทของคำขอเดียวมีขนาดเกิน 272K tokens ค่าอินพุต การอ่านแคช และเอาต์พุตอาจถูกคำนวณตามราคาขั้นบันไดที่สูงขึ้น กฎนี้มาจากการกำหนดราคาอย่างเป็นทางการของ OpenAI ไม่ใช่การบวกค่าบริการชั่วคราวหรือการเรียกเก็บเงินผิดปกติจาก AI-ROUTER</p><p></p><p>ตัวอย่างราคามาตรฐานของ GPT-5.6 Sol:</p><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> รายการ ภายใน 272K เกิน 272K</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> ━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> อินพุต $5 / 1M tokens $10 / 1M tokens</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> ────────── ─────────────────── ─────────────────</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> การอ่านแคช $0.50 / 1M tokens $1 / 1M tokens</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> ────────── ─────────────────── ─────────────────</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> เอาต์พุต $30 / 1M tokens $45 / 1M tokens</code></pre><p></p><p>ค่าใช้จ่ายสุดท้ายยังคงคำนวณตามกลุ่มที่กำหนด อัตราคูณของบัญชี และการตั้งค่าการเรียกเก็บค่าบริการอื่น ๆ</p><p></p><p>หากในประวัติการใช้งานปรากฏเครื่องหมาย x2 หมายความว่าคำขอนี้เรียกใช้การเรียกเก็บค่าบริการแบบขั้นบันไดสำหรับบริบทยาว เครื่องหมายนี้โดยหลักหมายถึงอินพุต/การอ่านแคชเข้าสู่ขั้นราคาที่สูงขึ้น ไม่ได้หมายความว่าค่าใช้จ่ายทั้งหมดของคำขอจะเพิ่มเป็นสองเท่าแบบตรง ๆ โดยเอาต์พุตอาจใช้อัตราคูณของขั้นราคาที่แตกต่างกัน</p><p></p><p><strong> ## วิธีหลีกเลี่ยงการเรียกเก็บค่าบริการแบบขั้นบันได</strong></p><p>หากไม่จำเป็นต้องใช้หน้าต่างบริบทขนาด 1M Token แนะนำให้ปรับขีดจำกัดบริบทของ Codex กลับมาให้อยู่ภายใน 272K</p><p></p><p>เปิดไฟล์:</p><p> ~/.codex/config.toml</p><p></p><p>เปลี่ยนการตั้งค่า 1M ที่ระบุไว้ในบทความเดิม:</p><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> model = "gpt-5.6-sol"</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> model_context_window = 1000000</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> model_auto_compact_token_limit = 900000</code></pre><p> </p><p>เป็น:</p><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> model = "gpt-5.6-sol"</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> model_context_window = 272000</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> model_auto_compact_token_limit = 250000</code></pre><p> </p><p>บันทึกการตั้งค่าแล้วรีสตาร์ต Codex จากนั้นสร้างเซสชันใหม่</p><p></p><p>หากต้องการให้มีผลชั่วคราวกับเซสชันเดียว สามารถใช้คำสั่งต่อไปนี้:</p><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code>codex -m gpt-5.6-sol -c model_context_window=272000 -c model_auto_compact_token_limit=250000</code></pre><p> นอกจากนี้ยังแนะนำให้:</p><p> - เปิดใช้การบีบอัดอัตโนมัติอย่างทันท่วงที;</p><p> - แบ่งงานที่มีความยาวมากออกเป็นหลายเซสชัน;</p><p> - ลดปริมาณเอาต์พุตจากเครื่องมือที่ส่งกลับมาในครั้งเดียว;</p><p> - สรุปและล้างเนื้อหาการสนทนาเก่าเป็นระยะ</p><p></p><p>หากจำเป็นต้องใช้หน้าต่างบริบทขนาด 1M Token จริง ๆ ก็ยังสามารถใช้การตั้งค่าเดิมต่อไปได้ แต่ส่วนที่เกิน 272K จะถูกเรียกเก็บตามราคาขั้นบันไดที่สูงขึ้นของ OpenAI</p><p></p><p>โปรดดูรายละเอียดการตั้งค่าเดิมที่: <a target="_blank" rel="noopener noreferrer nofollow" href="https://ai-router.dev/blog/post-g-677aa3e043912838-how-to-enable-a-1m-token-context-window-in-codex-for-gpt-5-6-sol">วิธีเปิดใช้หน้าต่างบริบทขนาด 1 ล้าน Token สำหรับ GPT-5.6 Sol ใน Codex </a></p><p></p><p>ขอขอบคุณสำหรับความเข้าใจและการสนับสนุน</p>
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login