For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
主要導覽

模型使用指南

瞭解 OpenAI 模型的最佳實務、功能與遷移指引。

使用 GPT-6 Astra

瞭解 GPT-6 Astra 的最佳實務、功能與遷移指引。

簡介

GPT-6 Astra 是我們迄今最聰明的模型,在操作電腦、瀏覽網頁、軟體工程、科學與專業工作方面都具備頂尖表現。它擅長跨程式碼、瀏覽器與專業軟體執行多步驟工作流程。在多項評估中,Astra 不僅取得更好的結果,使用的輸出 Token 也大幅減少。因此,儘管每個 Token 的定價較高,每項任務的預估 API 成本仍低於先前的模型。

GPT-6 Astra 也是我們迄今對齊程度最高的模型。它擅長審慎行事、遵守任務範圍,並以透明的方式溝通。當指示留有解釋空間時,它會根據已有的上下文補足一般細節;若某個答案可能改變結果,則會提出有針對性的問題。它能納入新需求、依要求調整方向,並在回答額外問題時,仍掌握整體任務。

若要使用 Astra 開發,請在 Responses API 請求中將 model 設為 gpt-6-astra

最新消息

  • 非同步工具呼叫: 當應用程式執行工具時,GPT-6 Astra 可以繼續推理、呼叫其他工具,或回答請求中互不相依的部分。在函式或自訂工具上設定 async: true,並在結果準備就緒時,使用原始的 call_id 傳回結果。工具仍由應用程式執行,待完成的工作也仍由應用程式管理。如需基本用法及由開發者定義的等待工具模式,請參閱非同步工具呼叫
  • 回合中調整方向: 在 GPT-6 Astra 工作期間傳送額外的使用者指示,例如更正內容或變更需求。透過 WebSocket 連線,Responses API 會保留已完成的工作,並在接續執行時納入更新。如需事件流程與工具結果處理方式,請參閱回合中調整方向
  • 在對話中途變更推理並保留快取: 新增 configuration_update 輸入項目,即可針對困難工作提高推理強度,或針對例行後續工作降低推理強度,無須重寫原始提示詞前綴。更新後的推理強度會持續生效,直到另一個 configuration_update 輸入項目將其覆寫。如需範例與相容性資訊,請參閱在對話中途變更推理
  • 失準監控: 我們為 GPT-6 Astra 強化的防護措施包括由系統以非同步方式監控失準情況,並在必要時觸發警示。如需詳細資訊,請參閱失準監控
  • 限制: GPT-6 Astra 不支援 none 推理強度。使用歐盟資料駐留時,GPT-6 Astra 無法使用快速模式

GPT-6 Astra 也支援 GPT-5.6 現有的 API 功能,包括電腦結構化輸出串流以程式呼叫工具多智慧體編排提示詞快取持久保留推理壓縮Pro 模式

提示詞最佳實務

GPT-6 Astra 比 GPT-5.6 Sol 等先前的模型更聰明、能力更強。它也有一些特定的行為模式,可以透過提示詞加以調整,以符合你的使用情境。

GPT-6 Astra 的行為

  • 主動性與貫徹執行:模型的設計目標是成為更有效的協作夥伴,因此,當額外資訊可能大幅改變結果時,它更傾向向使用者提問。這可能導致模型停下來,即使使用者原本期望它做出合理假設並繼續執行。
  • 遵循指示:GPT-6 Astra 在一般指示遵循方面比我們先前的模型更強,讓你更能掌控它的行為。它也可能更容易受到技能及其他檔案(例如 AGENTS.md)中指示的影響。我們 強烈建議 檢查模型可存取的技能及其他檔案,找出可能影響其行為的指示。
  • 個性與寫作風格:模型傾向提供詳細且經過格式編排的回覆,也可能在不同工作階段反覆使用相同措辭。請明確指定應用程式需要的寫作風格與結構。
  • 委派給子代理程式:模型委派工作的頻率可能低於工作流程所需。請明確指定它應在何時使用子代理程式進行平行作業,以及使用程度。
  • 測試與驗證:處理程式碼編寫任務時,模型傾向先進行周全的測試,才認定任務完成。對於較小的任務,這可能導致測試範圍超出實際需要。

主動性與貫徹執行

在長時間任務中,GPT-6 Astra 通常比 GPT-5.6 Sol 及更早的模型更能維持思路連貫。遇到先前模型會自行做出假設的情況時,它也更傾向要求釐清。

若要鼓勵模型更自主地工作,可以從這段提示詞開始:

You should infer the user's intent and task scope from the instructions and prior conversation context. Your job is to bias towards action and carry the user's intended task to completion.

When the user expresses intent to perform new work or fix an existing issue, persist until the user's intended goal is complete. Progress autonomously towards the user's goal (e.g. creating isolated worktrees / checkouts if needed, resolving merge conflicts, read-only actions, creating draft PRs etc.) unless they are clearly destructive or irreversible.

當使用者的意圖不明確時,模型更傾向先向使用者釐清,再繼續執行。請透過提示詞告訴模型,若使用者的提示詞已隱含授權,就應繼續完成工作:

When the user's prompt indicates a request for action, such as "can you...", "I want to...", "help me..." and similar expressions, treat these as instructions to do the work and take action. Do not stop at acknowledging capability (e.g. "Yes…"), proposing a plan, or offering to continue. Do not settle for a partial or "helpful enough" solution that does not fully satisfy the user's task to save time, effort or tokens. If a task requires sustained work, complete all the necessary work until the intended outcome is fulfilled.

請透過提示詞要求模型,先準備好具體、可供審查的成果,再要求核准。這能避免模型尚未完成可執行的工作就阻擋任務進度,也往往能更快完成任務。

Before asking the user clarifying questions, you should complete the work that is already authorized from context and necessary to make the proposed action concrete and reviewable. The user should be approving a concrete, reviewable result. For example, before deploying a change, writing to an external application, merging a PR or publishing a site, do all the required work first so that user approval is the final step. You don't need user permission for reversible tasks, read-only actions, reviews or fixes, or anything for which authorization is provided earlier in the session or strongly implied from the task instruction.

Do not introduce unsolicited warnings, disclaimers, approval flows, or safety/compliance checklists due to hypothetical risk.

模型預設也傾向在工作期間提出不會阻擋進度的問題,因此請依應用程式所需的自主程度調整這些提示詞。

遵循指示

GPT-6 Astra 更能遵循較長的指示,但也可能更容易受到上下文資訊的影響。例如,技能檔案中的指引若不清楚或互相衝突,可能導致模型提早暫停,阻擋工作進度。請明確說明使用者指示與技能之間的優先順序。

The user's instructions take precedence over guidelines provided in a skill. If explicit user instructions conflict with a skill's instructions, prioritize the user's instructions.

要求模型指出導致它暫停或改變方向的技能與指示,也能有效提高模型行為的透明度。

If a skill causes you to ask for permission or confirmation, pause, leave requested work unfinished, or diverge from the user's intent, name and link to the exact SKILL.md file you read, quote the relevant instruction, and briefly explain how it applies. Distinguish explicit skill requirements from your interpretation of guidelines.

當應用程式載入許多技能及 AGENTS.md 等指示檔案時,可使用這段提示詞找出未明說卻已影響行為的指引,以及互相衝突的指引。

個性與寫作風格

GPT-6 Astra 傾向使用清單、表格與 Markdown,讓回覆便於快速瀏覽。如果應用程式需要格式較少的敘述文字,請明確說明這項偏好。

Default to using clear, concise paragraphs, each developing one main idea. Use lists only when the information is genuinely parallel, sequential, or easier to compare, and avoid nested lists unless the hierarchy cannot be expressed clearly in prose. Use plain, simple language: familiar words, concrete examples, and precise verbs. Prefer active voice and direct statements.

Make sure to state the main point clearly and early, then develop it with the explanation and detail the reader needs. Let each sentence build on what came before. Develop the points that matter and provide enough support to be useful.

在技術溝通中,以下提示詞有助於讓文字清楚、連貫,同時符合專業領域的用語習慣:

Use plain language over jargon, and reference technical details only to the degree that it helps illustrate an idea or your work to the user. Communicate complex concepts in a clear and cohesive manner, and calibrate your writing to the level of background knowledge assumed from the user's prompt and context.

若要減少文章中的行話與制式措辭,可以從這段提示詞開始:

Avoid using slop words or phrases like "Bottom Line:" in conclusions, "delve," "foster," "leverage," "it's worth noting," "importantly," "Question? Answer." or "This isn't about X. It's about Y.", "genuinely" or hyphenated compound descriptions and adjectives. Do not use concluding summary statements such as "In short:..", "The simplest mental model is:...".

State the intended action directly. Avoid adding what you won't do, what will remain unchanged, or how you'll separate or categorize results. Do not use contrastive framing such as "X, not Y" or "X—not Y" that introduces an unprompted alternative that the user didn't ask about. Avoid invented compound labels like "exact-head checks" and "editorial-row layouts", vague qualifiers, and canned transitions; use plain verbs and prepositions to state the actual relationship directly.

委派給子代理程式

GPT-6 Astra 經過訓練,能將工作拆分並委派給平行作業的子代理程式。如果你正在任務執行框架中實作多智慧體系統,可使用以下提示詞調整 GPT-6 Astra 委派工作的程度:

If at any point you can parallelize work by delegating tasks to another agent (no matter if you are the root or subagent), you should do so using collaboration tools if it could save time or improve quality.

智慧體之間的訊息可能包含文法或空格錯誤。使用這段提示詞,讓智慧體間的訊息更容易閱讀:

Messages that you send to other agents and your final answer may be read by a human, so ensure they are legible. Always put proper spaces between words and/or numbers.

透過提示詞說明應如何及何時將工作委派給子代理程式,通常能有效調整模型的行為。請依你的任務執行框架與多智慧體實作方式加以調整。

測試與驗證

處理程式碼編寫任務時,請依變更的需要調整測試與驗證的程度。這有助於避免為小幅變更進行不必要的測試或重複檢查。

Do not write tests for reversible, low-impact changes that mirror the implementation. If you do choose to verify your work with tests, make sure that the tests are meaningful and necessary to verify implementation.

Run tests appropriate to the change and complete required checks. Once those pass, broaden or repeat testing only when new changes, failures, or unresolved concerns justify it; otherwise, continue toward completing the task.

遷移快速入門

使用 Codex 遷移

Codex 可使用 OpenAI 文件技能套用本指南建議的變更。

$openai-docs migrate this project to GPT-6 Astra

若要在其他程式設計智慧體中使用這項技能,請從 Codex 程式碼庫下載。

更新 API 與模型參數

model 設為 gpt-6-astra,然後檢查以下項目:

  • 推理強度: 如果目前使用 noneminimal,請先從 low 開始,並比較結果。否則,請保留目前實際生效的推理強度。在 Responses 中使用 reasoning.effort,在 Chat Completions 中則使用 reasoning_effort
  • 工具呼叫: 請使用 Responses API。GPT-6 Astra 支援 Chat Completions,但工具呼叫必須使用 Responses。
  • 不支援的參數: 移除 temperaturetop_ptop_logprobs。若使用 Chat Completions,也請移除 logprobs。若使用 Responses,請從 include 中移除 message.output_text.logprobs
  • 快速模式: 使用歐盟資料駐留時,請採用標準處理。在歐盟資料駐留設定下,GPT-6 Astra 不支援 service_tier: "fast"service_tier: "priority"。GPT-6 Astra 的快速模式不包含延遲 SLA。請參閱快速模式相容性
  • 變更推理強度: 如果應用程式會在不同回覆之間變更推理強度,請在標準的單一智慧體請求中使用 configuration_update 項目。請保持請求層級的 reasoning.effort 不變,以保留提示詞前綴供快取使用。採用此功能前,請先查看相容性限制
  • 提示詞快取: 從 GPT-5.5 或更早的版本遷移時,請以 prompt_cache_options.ttl 取代 prompt_cache_retention,並將其設為 "30m"。請查看提示詞快取的變更,包括快取邊界與快取寫入計費方式。
  • 不必要的核准等待: 如果模型反覆要求核准才繼續執行,請依照主動性與貫徹執行的指引調整提示詞,讓它更自主地執行。關於遵循指示、寫作風格、委派給子代理程式及測試的指引,請參閱提示詞最佳實務的其餘內容。