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. Cách bật cửa sổ ngữ cảnh 1 triệu token trong Codex cho GPT-5.6 Sol

Cách bật cửa sổ ngữ cảnh 1 triệu token trong Codex cho GPT-5.6 Sol

Scheduled Pinned Locked Moved Blogs
cửa sổ ngữ cảnhgpt-5.6
1 Posts 1 Posters 48 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>Đây là cách bật cửa sổ ngữ cảnh 1 triệu token trong Codex cho GPT-5.6 Sol. </p><p>Mặc dù chúng tôi đã tinh chỉnh giới hạn ngữ cảnh trong Codex để tối ưu hiệu năng và chi phí, đây là một yêu cầu phổ biến, nên tài liệu này được cung cấp.</p><p>Cửa sổ ngữ cảnh lớn hơn cho phép Codex giữ lại nhiều mã, đầu ra công cụ và lịch sử hội thoại hơn trước khi tóm tắt nội dung cũ. Bạn cần một mô hình hỗ trợ tính năng này. Ví dụ, GPT-5.6 Sol có cửa sổ 1.050.000 token được ghi nhận trong tài liệu. </p><p>Mở ~/.codex/config.toml và thêm hoặc cập nhật các thiết lập này ở cấp cao nhất, trước mọi </p><p></p><p>tiêu đề [section]:</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></p><p>Thiết lập đầu tiên chọn mô hình. Thiết lập thứ hai yêu cầu Codex sử dụng ngân sách ngữ cảnh một triệu token. Thiết lập thứ ba bắt đầu tự động nén lịch sử ở khoảng 900.000 token, để lại một phần dung lượng dự phòng. Khởi động lại ứng dụng khách Codex và bắt đầu phiên mới sau khi lưu. </p><p>Để thử cấu hình cho một phiên CLI duy nhất mà không thay đổi thiết lập mặc định:</p><p></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>Hãy thử nghiệm, nhưng cũng lưu ý rằng chúng tôi đã tinh chỉnh cẩn thận thiết lập mặc định!</p><p></p><p>Từ Tibo: <a target="_blank" rel="noopener noreferrer nofollow" href="https://x.com/thsottiaux/status/2089082893804896524">https://x.com/thsottiaux/status/2089082893804896524</a></p><p></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