Skip to content

Commit 5c28874

Browse files
authored
switch to using gpt-5-mini for free proxy (#2297)
1 parent c6554ed commit 5c28874

5 files changed

Lines changed: 15 additions & 9 deletions

File tree

aiprompts/config-system.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ waveterm/
4141
```
4242

4343
**Key Files:**
44+
4445
- **[`pkg/wconfig/settingsconfig.go`](pkg/wconfig/settingsconfig.go)** - Defines the `SettingsType` struct with all configuration fields
4546
- **[`schema/settings.json`](schema/settings.json)** - JSON Schema for validation and type checking
4647
- **[`pkg/wconfig/defaultconfig/settings.json`](pkg/wconfig/defaultconfig/settings.json)** - Default values for all settings
@@ -65,10 +66,12 @@ Wave Terminal supports block-level configuration overrides through the metadata
6566
3. **Block Metadata** - Override settings for individual blocks
6667

6768
**Key Files for Block Overrides:**
69+
6870
- **[`pkg/waveobj/wtypemeta.go`](pkg/waveobj/wtypemeta.go)** - Defines the `MetaTSType` struct for block-level metadata
6971
- Block metadata fields should match the corresponding settings fields for consistency
7072

7173
**Frontend Usage:**
74+
7275
```typescript
7376
// Use getOverrideConfigAtom for hierarchical config resolution
7477
const settingValue = useAtomValue(getOverrideConfigAtom(blockId, "namespace:setting"));
@@ -77,6 +80,7 @@ const settingValue = useAtomValue(getOverrideConfigAtom(blockId, "namespace:sett
7780
```
7881

7982
**Setting Block Metadata:**
83+
8084
```bash
8185
# Set for current block
8286
wsh setmeta namespace:setting=value
@@ -143,6 +147,7 @@ type MetaTSType struct {
143147
```
144148

145149
**Block Metadata Guidelines:**
150+
146151
- Use pointer types (`*string`, `*bool`, `*int`, `*float64`) for optional overrides
147152
- JSON tags should exactly match the corresponding settings field
148153
- This enables the hierarchical config system: block metadata → connection config → global settings
@@ -197,7 +202,7 @@ If your setting should have a default value, add it to [`pkg/wconfig/defaultconf
197202
```json
198203
{
199204
"ai:preset": "ai@global",
200-
"ai:model": "gpt-4o-mini",
205+
"ai:model": "gpt-5-mini",
201206
// ... existing defaults ...
202207

203208
"mynew:setting": "default value",
@@ -239,6 +244,7 @@ task generate
239244
```
240245

241246
Or run them individually:
247+
242248
```bash
243249
# Regenerate JSON schema
244250
task build:schema

docs/docs/config.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ For reference, this is the current default configuration (v0.11.5):
100100
```json
101101
{
102102
"ai:preset": "ai@global",
103-
"ai:model": "gpt-4o-mini",
104-
"ai:maxtokens": 2048,
103+
"ai:model": "gpt-5-mini",
104+
"ai:maxtokens": 4000,
105105
"ai:timeoutms": 60000,
106106
"app:defaultnewblock": "term",
107107
"autoupdate:enabled": true,

frontend/app/view/waveai/waveai.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export class WaveAiModel implements ViewModel {
223223
viewTextChildren.push({
224224
elemtype: "iconbutton",
225225
icon: "cloud",
226-
title: "Using Wave's AI Proxy (gpt-4o-mini)",
226+
title: "Using Wave's AI Proxy (gpt-5-mini)",
227227
noAction: true,
228228
});
229229
} else {

pkg/wconfig/defaultconfig/presets/ai.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
"ai:*": true
66
},
77
"ai@wave": {
8-
"display:name": "Wave Proxy - gpt-4o-mini",
8+
"display:name": "Wave Proxy - gpt-5-mini",
99
"display:order": 0,
1010
"ai:*": true,
1111
"ai:apitype": "",
1212
"ai:baseurl": "",
1313
"ai:apitoken": "",
1414
"ai:name": "",
1515
"ai:orgid": "",
16-
"ai:model": "gpt-4o-mini",
17-
"ai:maxtokens": 2048,
16+
"ai:model": "gpt-5-mini",
17+
"ai:maxtokens": 4000,
1818
"ai:timeoutms": 60000
1919
}
2020
}

pkg/wconfig/defaultconfig/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"ai:preset": "ai@global",
3-
"ai:model": "gpt-4o-mini",
4-
"ai:maxtokens": 2048,
3+
"ai:model": "gpt-5-mini",
4+
"ai:maxtokens": 4000,
55
"ai:timeoutms": 60000,
66
"app:defaultnewblock": "term",
77
"autoupdate:enabled": true,

0 commit comments

Comments
 (0)