<!-- This is an auto-generated description by cubic. --> ## Summary by cubic Set “balanced” as the default smart context mode. Users now get balanced when Smart Files Context is enabled and no mode is set; “conservative” must be explicitly selected. - **Refactors** - Default fallback to balanced in UI and engine (proSmartContextOption undefined -> "balanced"). - ProModeSelector saves "conservative" explicitly; selector reads undefined as balanced. - Updated schema and types to allow "balanced" | "conservative". - Engine payload now includes smart_context_mode with "balanced" by default; e2e tests and snapshots updated. - **Migration** - No action needed. Existing users without an explicit mode will use balanced by default; selecting conservative persists. <!-- End of auto-generated description by cubic. -->
66 lines
2.7 KiB
Plaintext
66 lines
2.7 KiB
Plaintext
{
|
|
"body": {
|
|
"model": "gemini/gemini-2.5-pro",
|
|
"max_tokens": 65535,
|
|
"temperature": 0,
|
|
"messages": [
|
|
{
|
|
"role": "system",
|
|
"content": "[[SYSTEM_MESSAGE]]"
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": "[dump]"
|
|
},
|
|
{
|
|
"role": "assistant",
|
|
"content": "[[dyad-dump-path=*]]"
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": "[dump]"
|
|
}
|
|
],
|
|
"stream": true,
|
|
"thinking": {
|
|
"type": "enabled",
|
|
"include_thoughts": true,
|
|
"budget_tokens": 4000
|
|
},
|
|
"dyad_options": {
|
|
"files": [
|
|
{
|
|
"path": "src/components/ui/helper.ts",
|
|
"content": "// helper.ts\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "src/foo.ts",
|
|
"content": "// foo.ts\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "src/sub/sub1.ts",
|
|
"content": "// sub/sub1.ts\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "src/sub/sub2.tsx",
|
|
"content": "// sub/sub2.tsx\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "src/very-large-file.ts",
|
|
"content": "// very-large-file.ts\n\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n",
|
|
"force": false
|
|
}
|
|
],
|
|
"enable_lazy_edits": true,
|
|
"enable_smart_files_context": false,
|
|
"smart_context_mode": "balanced"
|
|
}
|
|
},
|
|
"headers": {
|
|
"authorization": "Bearer testdyadkey"
|
|
}
|
|
} |