OpenAI 发布 GPT-6.2 Astra 与 Sol 提示技巧
Nano Banana Pro 生成,提示词由 THE DECODER 提供
OpenAI 建议开发者更新 GPT-6.2 Astra 和 Sol 的系统提示词。这两个模型默认回答更简短,且应当自行做出合理假设,而不是用提问打断工作流。
在编程方面,该模板要求模型复用已有代码、避免不必要的抽象,并且只在被要求时或针对特定错误才编写新测试。
在 API 中,编辑对话历史会丢弃此前的推理步骤,这可能影响 Token 成本和响应质量。诸如 "temperature" 和 "top_p" 之类的参数也已被取消。
OpenAI 发布了针对 GPT-6.2 Astra 和 Sol 的新提示词模板,涵盖写作风格、主动性和编程,同时还有可能丢弃推理内容的 API 变更。
OpenAI 表示,迁移到 GPT-6.2 Astra 或 Sol 的开发者应当重新检查自己的系统提示词。该公司在这两个模型的文档中发布了可直接复制的提示词,以抑制它在两个版本中观察到的某些行为。Astra 面向要求最高的任务,而 Sol 则以更低的成本处理复杂工作。
默认的简洁性改变了开发者编写写作类提示词的方式
据 OpenAI 称,Astra 默认的写作比早期模型更简短、更直接。这意味着迁移过来的开发者应重新考虑诸如“保持简洁”之类的指令。在将其作为日常工作中的同事来使用时,该公司推荐这样一段提示词:采用用户和来源方的术语,使用主动语态,并把关键要点放在最前面。在面向外部读者写作时,模型应考虑到他们缺乏上下文。在进行编辑时,它应保留作者的意图和措辞。
在长任务中,模型有时会将其推理过程或其他智能体消息中的简写带入最终回复。一条专门的提示词要求它把最终答案写得能够独立成立。
把最终答案视为用户第一次看到你的工作,而不是中间评论的延续。最终答案必须始终完全自包含:用户绝不应需要阅读之前的评论更新来获取上下文,因为在向用户展示最终答案时,这些更新会被折叠。
为预期读者重新撰写最终答案以及所有其他面向人类的材料。不要复制或紧密改写你的推理,也不要采用其写作风格。不要将你的推理、工具调用,或发给子智能体和自动化流程的指令中的工作简写、术语或缩写沿用到其中。
GPT-6.2 应基于假设采取行动,而不是等待许可
OpenAI 表示,当用户意图不明确时,GPT-6.2 有时会建议下一步并等待确认。该公司建议使用一条提示词,告诉模型只要获得授权,就自行执行这些步骤。它只应在任务范围发生重大变化、遇到真正的阻碍、需要用户做出决定,或涉及不可逆或破坏性操作时暂停。
OpenAI 补充说,当细节不明确时,模型应做出可逆的假设,将其标明,并继续工作。更高的推理努力程度也有助于它在长任务中坚持完成最终检查。
避免在任务尚未完成时停下以结束本轮,或在你可以采取经授权的下一步时停下;相反,应在任务范围内采取后续步骤,推进用户的请求。如果你在结束本轮前的最终回复是一个建议的下一步、一份计划、就常规决策向用户提出的请求、待执行任务的说明,或类似的交接给用户的内容,那就自己执行这些步骤,向用户所要求的目标推进。确保你有权这样做,并向用户标明你做出的任何假设或决定。
只有当任务范围发生重大变化、你确实被阻塞、有需要用户解决的决策,或在进行不可逆或破坏性操作之前,才停下来与用户确认。
更精简的代码输出意味着默认更少的测试和更少的抽象
OpenAI 称 GPT-6.2 编写的代码比其前代更高效。其模板指示模型复用现有逻辑、避免不必要的辅助函数,仅在用户要求、仓库所需或需要捕捉特定回归时才添加新测试。更少的行数和更短的变量名并不能替代简洁。
对于前端,开发者应直接指定图像与字体排版。默认情况下,模板偏好来自图像生成或搜索的写实图像,仅在要求时使用 SVG。装饰性编号、填充式徽章,以及只是重复界面已有信息的辅助文字,都应省去。
最重要的是,要周全地产出高质量、正确的代码,完整地完成用户的任务。保持代码易于阅读,并验证用户所要求的结果能如其所愿地运作。编写代码时请遵循以下指示:
(a) 尽可能复用用户仓库中已有的逻辑。只要不破坏正确性,就应复用代码库中现有的类、方法、表示形式和 API。在合并或删除代码之前,除非任务要求更改,否则要保留调用方所依赖的行为。(b) 除非被要求、仓库要求,或需要捕获现有测试会遗漏的特定回归,否则跳过新增测试。(c) 确保代码对人可读。不要用更少的行数、更短的变量名、压缩格式或密集的一行式写法来替代简洁。确保注释和变量名对人类可读、易懂。当代码高尔夫式的表达式编码了大量分支、条件或隐含假设时,应视为过度复杂。(d) 避免不必要的间接层和抽象。辅助函数、工具函数和类抽象即便不增加分支,也可能增加认知复杂度。
编辑聊天历史可能会从 API 中抹去此前的推理内容
API 也在发生变化。从 GPT-6.2 开始,如果开发者编辑对话历史、切换到某些其他模型,或更改最终用户或组织,Responses API 就会丢弃此前的推理内容。这会损害响应质量,并因模型重复工作而增加 Token 用量。对于新的集成,OpenAI 建议使用“medium”推理级别,而使用“none”或“minimal”的现有配置应迁移到“low”。temperature 和 top_p 等参数已不再支持。
4月,OpenAI 建议不要将旧提示词栈沿用到 GPT-5.5,并敦促开发者重新开始,使用简短、以结果为导向的提示词。9月,GPT-6 Astra 提示词发布,以减少频繁的追问并禁止 AI 陈词滥调。OpenAI 开发者 Eric Provencher 当时还警告称,臃肿的技能和 AGENTS.md 文件会拖慢模型。当时,即使很小的改动也会触发 Astra 进行全面测试。如今,GPT-6.2 的设定是仅在收到请求时编写新测试。
OpenAI 于 11 月 17 日发布了 GPT-6.2 Astra 和 Sol。Astra 的 API 定价为每百万输入 Token 8 美元、每百万输出 Token 40 美元,适用上限为 272,000 Token。超过该上限后,Astra 6.2 的输入和输出价格分别跳升至 16 美元和 60 美元,缓存读取为每百万 Token 0.80 美元。超过上限后,Astra 6.0 的成本更高,每百万 Token 输入达 20 美元、输出达 75 美元。较长的编程或工作会话可能很快突破这一上限,因此 Codex 会在 272,000 Token 时自动压缩上下文。据 OpenAI 的 Ted Sanders 称,选择合适模型取决于预算和质量需求。
没有炒作的 AI 新闻——由人工精选
每篇 Plus 文章及完整存档
前沿雷达:每年 6 篇深度解析
通过你的 Decoder 订阅使用“Ask AI”
关于该主题的 AI 视角
来自存档的更多背景信息
获取技术术语解释
就文章内容或 AI 话题提问。你可以继续追问。
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(OpenAI shares new prompting tips for GPT-6.2 Astra and Sol to fix brief answers and unnecessary questions)
Nano Banana Pro prompted by THE DECODER
OpenAI advises developers to update GPT-6.2 Astra and Sol system prompts. The models answer more briefly by default and should make assumptions instead of interrupting workflows with questions.
For coding, the template instructs the models to reuse existing code, avoid unnecessary abstractions, and write new tests only on request or for specific errors.
In the API, editing conversation history discards earlier reasoning steps, which can affect token costs and response quality. Parameters like "temperature" and "top_p" are also gone.
OpenAI has released new prompt templates for GPT-6.2 Astra and Sol covering writing style, initiative, and coding, alongside API changes that can discard reasoning content.
OpenAI says developers moving to GPT-6.2 Astra or Sol should review their system prompts. The company published copy-ready prompts in the models' documentation to curb behaviors it observed in both releases. Astra is built for the most demanding tasks, while Sol handles complex work at lower cost.
Default conciseness changes how developers should prompt for writing
Astra writes more briefly and directly by default than earlier models, according to OpenAI. That means developers switching over should reconsider instructions like "be concise." For use as a colleague in everyday work, the company recommends a prompt that adopts user and source terminology, uses active voice, and puts key points first. When writing for external readers, the model should account for their lack of context. When editing, it should preserve the author's meaning and phrasing.
On long tasks, the model sometimes carries shorthand from its reasoning or other agents' messages into the final response. A dedicated prompt tells it to write that final answer so it stands on its own.
Treat your final answer as the user's first look at your work, and not as a continuation of intermediate commentary. The final answer must always be fully self-contained: users should never need to read earlier commentary updates for context, since they are collapsed when the final answer is shown to the user.
Write the final answer and all other human-facing material anew for the intended reader. Do not copy or closely paraphrase your reasoning or adopt its writing style. Do not carry over working shorthand, jargon, or abbreviations from your reasoning, tool calls, or instructions to subagents and automations.
GPT-6.2 should act on assumptions rather than wait for permission
When user intent is unclear, GPT-6.2 sometimes suggests a next step and waits for confirmation, OpenAI says. The company recommends a prompt telling the model to carry out those steps itself whenever it is authorized to do so. It should pause only for a major change in task scope, a real blocker, a decision the user must make, or an irreversible or destructive action.
When details are unclear, the model should make reversible assumptions, flag them, and keep working. Higher reasoning effort also helps it follow through on final checks during long tasks, OpenAI adds.
Avoid stopping to end the turn while the task is incomplete or if there is an authorized next step you can take, and instead take the next steps within task scope to progress the user's request. If your final response before ending the turn is a suggested next step, a plan, a request to the user for a routine decision, instructions for a task to execute, or similar handoff to the user, take these steps yourself to make progress towards what the user asked for. Make sure that you have authorization to do so, and flag any assumptions or decisions you make to the user.
Only stop to clarify with the user if there is significant change in task scope, you are concretely blocked, have a decision that the user needs to resolve, or before irreversible or destructive actions.
Leaner code output means fewer tests and less abstraction by default
OpenAI says GPT-6.2 writes more efficient code than its predecessors. Its template instructs the model to reuse existing logic and avoid unnecessary helper functions, while adding new tests only when requested, required by the repo, or needed to catch specific regressions. Fewer lines and shorter variable names are not a substitute for simplicity.
For frontends, developers should specify imagery and typography directly. By default, the template favors realistic images from image generation or search and uses SVGs only on request. Decorative numbering, filler badges, and helper text that only repeats what the interface already shows should be left out.
Above all, be thorough in producing high-quality, correct code that completely fulfills the user's task. Keep the code easy to read and verify that the user-requested outcome works as they intend. Follow these instructions when coding:
(a) Reuse existing logic in the user's repo when you can. You should reuse existing classes, methods, representations, and APIs in the codebase as long as they preserve correctness. Before consolidating or removing code, preserve the behavior its callers rely on unless the task requires changing it.
(b) Skip new tests unless requested, required by the repo, or needed to catch a specific regression existing tests would miss.
(c) Make sure that code is human readable. Do not use fewer lines, shorter variable names, minified formatting, or dense one-liners as substitutes for simplicity. Ensure that comments and variable names are readable and understandable to a human. Code-golfed expressions count as overly complex when they encode many branches, conditions, or hidden assumptions.
(d) Avoid unnecessary indirection and abstraction. Helper functions, utility functions, and class abstractions can add cognitive complexity even when they do not add branches.
Editing chat history can wipe earlier reasoning from the API
The API is changing too. Starting with GPT-6.2, the Responses API discards earlier reasoning content if developers edit conversation history, switch to certain other models, or change the end user or organization. That can hurt response quality and increase token usage as the model repeats work. For new integrations, OpenAI recommends the "medium" reasoning level, while existing setups using "none" or "minimal" should move to "low." Parameters like temperature and top_p aren't supported anymore.
In April, OpenAI advised against carrying over old prompt stacks for GPT-5.5 and urged developers to start fresh with short, outcome-focused prompts. September brought GPT-6 Astra prompts to curb frequent follow-up questions and ban AI clichés. OpenAI developer Eric Provencher also warned then that bloated skills and AGENTS.md files slow the model down. Back then, even small changes triggered thorough testing from Astra. GPT-6.2 is now meant to write new tests only on request.
OpenAI launched GPT-6.2 Astra and Sol on November 17. Astra's API pricing starts at $8 per million input tokens and $40 per million output tokens for up to 272,000 tokens. Go past that limit, and Astra 6.2 jumps to $16 and $60, with cache reads running $0.80 per million tokens. Astra 6.0 costs even more beyond the cutoff, hitting $20 for input and $75 for output per million tokens. Longer coding or work sessions can blow through that cap pretty quickly, so Codex automatically compresses context at 272,000 tokens. Picking the right model comes down to budget and quality needs, according to OpenAI's Ted Sanders.
AI News Without the Hype – Curated by Humans
Every Plus article and the full archive
Frontier Radar: 6 deep dives a year
"Ask AI" with your Decoder subscription
AI perspectives on the topic
More context from the archive
Get technical terms explained
Ask a question about the article or an AI topic. You can ask follow-up questions.
原文为英文,正文由自动抓取并保留原文。
原文发布于 The Decoder(OpenAI shares new prompting tips for GPT-6.2 Astra and Sol to fix brief answers and unnecessary questions),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。