From e7b663c82fc86f656f4df707d158575aff765056 Mon Sep 17 00:00:00 2001 From: Meleki Date: Sat, 25 Apr 2026 16:39:41 +0200 Subject: [PATCH] feat: Opus 4.7 + 1M-Context-Varianten und neue Krea-Bildmodelle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Claude Opus 4.7 als neues Default-Modell, 1M-Context-Varianten für Sonnet/Opus - 5 neue Krea-Bildmodelle (z-image, qwen-2512, nano-banana-2, seedream-5-lite, seededit) Co-Authored-By: Claude Opus 4.6 --- Models/AgentRecord.cs | 2 +- Services/ChatService.cs | 8 +++++++- Services/KreaService.cs | 7 ++++++- wwwroot/index.html | 6 +++++- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/Models/AgentRecord.cs b/Models/AgentRecord.cs index 6ea5b18..9fe1c7a 100644 --- a/Models/AgentRecord.cs +++ b/Models/AgentRecord.cs @@ -8,7 +8,7 @@ public class AgentRecord public string Avatar { get; set; } // base64 data url (512px) public string AvatarSmall { get; set; } // base64 data url (256px, für Listen) public string Description { get; set; } - public string Model { get; set; } // sonnet, sonnet-4-5, sonnet-4-6, opus, opus-4-5, opus-4-6, haiku, haiku-4-5 + public string Model { get; set; } public string ToolChoice { get; set; } // "any" oder "auto" public string CustomCommands { get; set; } public string AutoCommit { get; set; } = ""; // "", "mention", "forbid" diff --git a/Services/ChatService.cs b/Services/ChatService.cs index 8d9a3ab..bb132f0 100644 --- a/Services/ChatService.cs +++ b/Services/ChatService.cs @@ -37,11 +37,17 @@ public class ChatService return model switch { "sonnet" => "claude-sonnet-4-6", + "sonnet[1m]" => "claude-sonnet-4-6[1m]", "sonnet-4-5" => "claude-sonnet-4-5", "sonnet-4-6" => "claude-sonnet-4-6", - "opus" => "claude-opus-4-6", + "sonnet-4-6[1m]" => "claude-sonnet-4-6[1m]", + "opus" => "claude-opus-4-7", + "opus[1m]" => "claude-opus-4-7[1m]", "opus-4-5" => "claude-opus-4-5", "opus-4-6" => "claude-opus-4-6", + "opus-4-6[1m]" => "claude-opus-4-6[1m]", + "opus-4-7" => "claude-opus-4-7", + "opus-4-7[1m]" => "claude-opus-4-7[1m]", "haiku" => "claude-haiku-4-5", "haiku-4-5" => "claude-haiku-4-5", _ => "claude-sonnet-4-6" diff --git a/Services/KreaService.cs b/Services/KreaService.cs index b76fd61..cae78b2 100644 --- a/Services/KreaService.cs +++ b/Services/KreaService.cs @@ -39,12 +39,17 @@ namespace Gott.Services { "seedream-4", "/generate/image/bytedance/seedream-4" }, { "chatgpt-image", "/generate/image/openai/gpt-image" }, { "runway-gen-4", "/generate/image/runway/gen-4" }, + { "z-image", "/generate/image/z-image/z-image" }, + { "qwen-2512", "/generate/image/qwen/2512" }, + { "nano-banana-2", "/generate/image/google/nano-banana-2" }, + { "seedream-5-lite", "/generate/image/bytedance/seedream-5-lite" }, + { "seededit", "/generate/image/bytedance/seededit" }, }; // Models that don't support width/height/steps/guidance private static readonly HashSet MINIMAL_MODELS = new HashSet { - "seedream-3", "runway-gen-4" + "seedream-3", "runway-gen-4", "seedream-5-lite", "seededit" }; public bool IsConfigured => !string.IsNullOrWhiteSpace(_token); diff --git a/wwwroot/index.html b/wwwroot/index.html index 2fcb332..aa38636 100644 --- a/wwwroot/index.html +++ b/wwwroot/index.html @@ -201,8 +201,12 @@