mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-28 03:42:50 +01:00
fix: decouple AiSettingsType from SettingsType (#1961)
While there is significant overlap between SettingsType and AiSettingsType, they are distinct entities and should be treated as such until more changes have been made.
This commit is contained in:
parent
4978ea459f
commit
3062286cd0
@ -46,6 +46,8 @@ type AiSettingsType struct {
|
|||||||
AiTimeoutMs float64 `json:"ai:timeoutms,omitempty"`
|
AiTimeoutMs float64 `json:"ai:timeoutms,omitempty"`
|
||||||
AiFontSize float64 `json:"ai:fontsize,omitempty"`
|
AiFontSize float64 `json:"ai:fontsize,omitempty"`
|
||||||
AiFixedFontSize float64 `json:"ai:fixedfontsize,omitempty"`
|
AiFixedFontSize float64 `json:"ai:fixedfontsize,omitempty"`
|
||||||
|
DisplayName string `json:"display:name,omitempty"`
|
||||||
|
DisplayOrder float64 `json:"display:order,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type SettingsType struct {
|
type SettingsType struct {
|
||||||
@ -54,7 +56,19 @@ type SettingsType struct {
|
|||||||
AppDismissArchitectureWarning bool `json:"app:dismissarchitecturewarning,omitempty"`
|
AppDismissArchitectureWarning bool `json:"app:dismissarchitecturewarning,omitempty"`
|
||||||
AppDefaultNewBlock string `json:"app:defaultnewblock,omitempty"`
|
AppDefaultNewBlock string `json:"app:defaultnewblock,omitempty"`
|
||||||
|
|
||||||
AiSettingsType
|
AiClear bool `json:"ai:*,omitempty"`
|
||||||
|
AiPreset string `json:"ai:preset,omitempty"`
|
||||||
|
AiApiType string `json:"ai:apitype,omitempty"`
|
||||||
|
AiBaseURL string `json:"ai:baseurl,omitempty"`
|
||||||
|
AiApiToken string `json:"ai:apitoken,omitempty"`
|
||||||
|
AiName string `json:"ai:name,omitempty"`
|
||||||
|
AiModel string `json:"ai:model,omitempty"`
|
||||||
|
AiOrgID string `json:"ai:orgid,omitempty"`
|
||||||
|
AIApiVersion string `json:"ai:apiversion,omitempty"`
|
||||||
|
AiMaxTokens float64 `json:"ai:maxtokens,omitempty"`
|
||||||
|
AiTimeoutMs float64 `json:"ai:timeoutms,omitempty"`
|
||||||
|
AiFontSize float64 `json:"ai:fontsize,omitempty"`
|
||||||
|
AiFixedFontSize float64 `json:"ai:fixedfontsize,omitempty"`
|
||||||
|
|
||||||
TermClear bool `json:"term:*,omitempty"`
|
TermClear bool `json:"term:*,omitempty"`
|
||||||
TermFontSize float64 `json:"term:fontsize,omitempty"`
|
TermFontSize float64 `json:"term:fontsize,omitempty"`
|
||||||
|
@ -41,6 +41,12 @@
|
|||||||
},
|
},
|
||||||
"ai:fixedfontsize": {
|
"ai:fixedfontsize": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
|
},
|
||||||
|
"display:name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"display:order": {
|
||||||
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
Loading…
Reference in New Issue
Block a user