From c8ebe4971f85d307bf217275262d9d45c4a97172 Mon Sep 17 00:00:00 2001 From: Lyon Liang Date: Tue, 3 Mar 2026 16:35:34 +0800 Subject: [PATCH 1/2] fix: restore anthropic-messages to APIType enum The anthropic-messages API type was accidentally removed from the jsonschema enum in PR #2602 when Google Gemini backend was added. This restores it so users can configure Anthropic Claude models through the UI. Backend support for anthropic-messages was already complete in pkg/aiusechat/anthropic/, only the schema enum was missing. --- pkg/wconfig/settingsconfig.go | 2 +- schema/waveai.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/wconfig/settingsconfig.go b/pkg/wconfig/settingsconfig.go index 387598e899..3bb541b78d 100644 --- a/pkg/wconfig/settingsconfig.go +++ b/pkg/wconfig/settingsconfig.go @@ -283,7 +283,7 @@ type AIModeConfigType struct { DisplayIcon string `json:"display:icon,omitempty"` DisplayDescription string `json:"display:description,omitempty"` Provider string `json:"ai:provider,omitempty" jsonschema:"enum=wave,enum=google,enum=groq,enum=openrouter,enum=nanogpt,enum=openai,enum=azure,enum=azure-legacy,enum=custom"` - APIType string `json:"ai:apitype,omitempty" jsonschema:"enum=google-gemini,enum=openai-responses,enum=openai-chat"` + APIType string `json:"ai:apitype,omitempty" jsonschema:"enum=anthropic-messages,enum=google-gemini,enum=openai-responses,enum=openai-chat"` Model string `json:"ai:model,omitempty"` ThinkingLevel string `json:"ai:thinkinglevel,omitempty" jsonschema:"enum=low,enum=medium,enum=high"` Verbosity string `json:"ai:verbosity,omitempty" jsonschema:"enum=low,enum=medium,enum=high,description=Text verbosity level (OpenAI Responses API only)"` diff --git a/schema/waveai.json b/schema/waveai.json index 8fc96c1528..8e71015cf9 100644 --- a/schema/waveai.json +++ b/schema/waveai.json @@ -32,6 +32,7 @@ "ai:apitype": { "type": "string", "enum": [ + "anthropic-messages", "google-gemini", "openai-responses", "openai-chat" @@ -113,4 +114,4 @@ "$ref": "#/$defs/AIModeConfigType" }, "type": "object" -} +} \ No newline at end of file From d4cec0cb48cff25163c6bded0a5afc0b52ef489d Mon Sep 17 00:00:00 2001 From: Lyon Liang Date: Tue, 3 Mar 2026 19:52:34 +0800 Subject: [PATCH 2/2] chore(schema): add final newline to waveai.json --- schema/waveai.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/waveai.json b/schema/waveai.json index 8e71015cf9..8522148627 100644 --- a/schema/waveai.json +++ b/schema/waveai.json @@ -114,4 +114,4 @@ "$ref": "#/$defs/AIModeConfigType" }, "type": "object" -} \ No newline at end of file +}