Skip to content

Commit c8ebe49

Browse files
committed
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.
1 parent df24959 commit c8ebe49

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

pkg/wconfig/settingsconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ type AIModeConfigType struct {
283283
DisplayIcon string `json:"display:icon,omitempty"`
284284
DisplayDescription string `json:"display:description,omitempty"`
285285
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"`
286-
APIType string `json:"ai:apitype,omitempty" jsonschema:"enum=google-gemini,enum=openai-responses,enum=openai-chat"`
286+
APIType string `json:"ai:apitype,omitempty" jsonschema:"enum=anthropic-messages,enum=google-gemini,enum=openai-responses,enum=openai-chat"`
287287
Model string `json:"ai:model,omitempty"`
288288
ThinkingLevel string `json:"ai:thinkinglevel,omitempty" jsonschema:"enum=low,enum=medium,enum=high"`
289289
Verbosity string `json:"ai:verbosity,omitempty" jsonschema:"enum=low,enum=medium,enum=high,description=Text verbosity level (OpenAI Responses API only)"`

schema/waveai.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"ai:apitype": {
3333
"type": "string",
3434
"enum": [
35+
"anthropic-messages",
3536
"google-gemini",
3637
"openai-responses",
3738
"openai-chat"
@@ -113,4 +114,4 @@
113114
"$ref": "#/$defs/AIModeConfigType"
114115
},
115116
"type": "object"
116-
}
117+
}

0 commit comments

Comments
 (0)