规则参考 · 具体性
缺少编程语言
触发条件: 请求代码但没有指明语言或框架。
没有指定语言时,模型通常会选 Python 或 JavaScript,这未必符合你的代码库、运行时版本或风格。
写明语言和版本,必要时再加上运行时或框架(“Node 22 上的 TypeScript 5”“Java 21 加 Spring Boot 3”)。
示例提示词以及引擎的消息、解释和修复,按引擎返回的原样以英文显示。
触发它的示例
Write a function that removes duplicate entries from a list while keeping the original order.警告 Code is requested but no language or framework is named.
为什么重要。 The model will pick a language for you, and it may not match your codebase.
修复。 Name the language and version, e.g. "TypeScript 5 targeting Node 22".
质量 90/100 · 16 个 token · 1 个发现
修复后的版本
Write a TypeScript 5 function that removes duplicate entries from an array while keeping the original order. Return only the code in one fenced block.质量 97/100(+7)· 29 个 token · 1 个发现
已被修复解决
missing_language: Code is requested but no language or framework is named.
本页的分数、token 数(GPT-4.1 分词器)和发现,都是在构建网站时由引擎计算的。
它如何影响分数
每个发现都会从 100 分中扣除固定的分数:严重 30,警告 10,提示 3。此规则计入具体性维度。完整公式参见评分模型。