Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. Blogs
  3. วิธีเปิดใช้หน้าต่างบริบท 1 ล้านโทเค็นใน Codex สำหรับ GPT-5.6 Sol

วิธีเปิดใช้หน้าต่างบริบท 1 ล้านโทเค็นใน Codex สำหรับ GPT-5.6 Sol

Scheduled Pinned Locked Moved Blogs
หน้าต่างบริบทgpt-5.6
1 Posts 1 Posters 66 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Online
    A Online
    admin
    wrote on last edited by
    #1

    <p>ต่อไปนี้คือวิธีเปิดใช้หน้าต่างบริบท 1 ล้านโทเค็นใน Codex สำหรับ GPT-5.6 Sol</p><p>แม้ว่าเราจะปรับขีดจำกัดบริบทใน Codex ให้เหมาะสมที่สุดในแง่ประสิทธิภาพและต้นทุนแล้ว แต่มีผู้ขอฟีเจอร์นี้บ่อยครั้ง จึงบันทึกวิธีการไว้ที่นี่</p><p>หน้าต่างบริบทที่ใหญ่ขึ้นช่วยให้ Codex เก็บโค้ด เอาต์พุตจากเครื่องมือ และประวัติการสนทนาได้มากขึ้นก่อนสรุปเนื้อหาเก่า คุณต้องใช้โมเดลที่รองรับ และตัวอย่างเช่น GPT-5.6 Sol มีหน้าต่างบริบท 1,050,000 โทเค็นตามเอกสาร</p><p>เปิด <code>~/.codex/config.toml</code> แล้วเพิ่มหรืออัปเดตการตั้งค่าต่อไปนี้ในระดับบนสุด ก่อนส่วนหัว <code>[section]</code> ใดๆ:</p><p></p><p>model = "gpt-5.6-sol"</p><p>model_context_window = 1000000</p><p>model_auto_compact_token_limit = 900000</p><p></p><p>การตั้งค่าแรกใช้เลือกโมเดล การตั้งค่าที่สองบอกให้ Codex ใช้งบประมาณบริบทหนึ่งล้านโทเค็น การตั้งค่าที่สามจะเริ่มย่อประวัติโดยอัตโนมัติเมื่อมีประมาณ 900,000 โทเค็น เพื่อเหลือพื้นที่สำรองไว้บ้าง หลังบันทึกแล้ว ให้รีสตาร์ตไคลเอนต์ Codex และเริ่มเซสชันใหม่</p><p>หากต้องการลองการกำหนดค่าสำหรับ CLI เพียงหนึ่งเซสชัน โดยไม่เปลี่ยนค่าเริ่มต้น:</p><p></p><p>codex -m gpt-5.6-sol \</p><p> -c model_context_window=1000000 \</p><p> -c model_auto_compact_token_limit=900000</p><p></p><p>ลองใช้งานได้ตามสบาย แต่โปรดทราบว่าเราได้ปรับค่าเริ่มต้นอย่างรอบคอบแล้ว</p><p>จาก Tibo: <a target="_blank" rel="noopener noreferrer nofollow" href="https://x.com/thsottiaux/status/2089082893804896524">https://x.com/thsottiaux/status/2089082893804896524</a></p>

    1 Reply Last reply
    0

    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
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    Powered by NodeBB Contributors
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups