Skip to content

Commit 05544ec

Browse files
Added support for Claude 4 models to Anthropic provider (#482)
1 parent baa80be commit 05544ec

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

app/MindWork AI Studio/Provider/Anthropic/ProviderAnthropic.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public override Task<IEnumerable<Model>> GetTextModels(string? apiKeyProvisional
8989
{
9090
var additionalModels = new[]
9191
{
92+
new Model("claude-opus-4-0", "Claude Opus 4.0 (Latest)"),
93+
new Model("claude-sonnet-4-0", "Claude Sonnet 4.0 (Latest)"),
9294
new Model("claude-3-7-sonnet-latest", "Claude 3.7 Sonnet (Latest)"),
9395
new Model("claude-3-5-sonnet-latest", "Claude 3.5 Sonnet (Latest)"),
9496
new Model("claude-3-5-haiku-latest", "Claude 3.5 Haiku (Latest)"),
@@ -114,6 +116,14 @@ public override IReadOnlyCollection<Capability> GetModelCapabilities(Model model
114116
{
115117
var modelName = model.Id.ToLowerInvariant().AsSpan();
116118

119+
// Claude 4.x models:
120+
if(modelName.StartsWith("claude-opus-4") || modelName.StartsWith("claude-sonnet-4"))
121+
return [
122+
Capability.TEXT_INPUT, Capability.MULTIPLE_IMAGE_INPUT,
123+
Capability.TEXT_OUTPUT,
124+
125+
Capability.OPTIONAL_REASONING, Capability.FUNCTION_CALLING];
126+
117127
// Claude 3.7 is able to do reasoning:
118128
if(modelName.StartsWith("claude-3-7"))
119129
return [

app/MindWork AI Studio/wwwroot/changelog/v0.9.45.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# v0.9.45, build 220 (2025-05-xx xx:xx UTC)
22
- Added chat templates. They are similar to common AI companies' playgrounds, where you can define your own system prompts and leverage assistant prompts for providers that support them. We thank Peer `peerschuett` for the work on this feature.
33
- Added Russian as a language option for various assistants (e.g., translations, text summarization).
4-
- Improved password and API key input fields: they now optionally display their content to allow users to verify manual input.
4+
- Improved the password and API key input fields: they now optionally display their content to allow users to verify manual input.
5+
- Improved the Anthropic provider by adding aliase and capabilities for the new Claude 4 models.
56
- Improved the German translation.
67
- Changed the design of the data source settings to match the new design.
78
- Moved the chat options: you can access them directly from the chat interface.

0 commit comments

Comments
 (0)