把思考强度收到接口配置里,并支持分组、嗅探和切换同一接口下的模型。

预设不再保存思考强度。设置页会在首屏套用主题。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-30 12:00:27 +08:00
co-authored by Cursor
parent defd6739b7
commit 39fe2732fb
24 changed files with 3047 additions and 157 deletions
+2 -1
View File
@@ -24,7 +24,7 @@ const samplePreset: PresetPackage = {
},
],
promptOrder: [{ promptId: "sys", enabled: true, orderIndex: 0 }],
generation: { temperature: 0.91, maxOutputTokens: 1234 },
generation: { temperature: 0.91, maxOutputTokens: 1234, reasoningEffort: "max" },
unsupported: [],
importedAt: "2026-01-01T00:00:00.000Z",
};
@@ -72,6 +72,7 @@ describe("wrapLlmForSession", () => {
temperature: 0.91,
maxOutputTokens: 1234,
});
expect(received[0].generation).not.toHaveProperty("reasoningEffort");
expect(ctx.pendingContextTrace?.messages).toEqual(received[0].messages);
expect(ctx.pendingContextTrace?.generation).toMatchObject({
temperature: 0.91,