diff --git a/HAND_AI.md b/HAND_AI.md
index 824a635..29ad76d 100644
--- a/HAND_AI.md
+++ b/HAND_AI.md
@@ -16,7 +16,7 @@
模型需要同时支持 Chat Completions 工具调用和图片输入,不要求原生视频上传支持。D3-lite 的 `/v1/systemone` 不支持 Agent,运行时仍负责步骤完成判定。工具读出的画面以带时间戳的 `image_url` JPEG data URL 回传模型;它仍可能漏看短暂动作,需要核对结果。填写接口或密钥后自动请求相应的 `/models` 获取模型名,也可点击“获取模型”刷新或手动填写;服务返回的模型不一定都支持所需能力。
-视频最长约 5 分钟,每次工具调用最多读取 2–60 张(默认上限 3,允许多次调用,修改后记住),累计最多 60 张、JPEG 合计 10MB、最多 12 轮请求。画面最长边为 640 像素,引用实际帧号与时间。上下文长度默认 32768,用于本地估算输入与输出预算,图像 token 数依模型而异,不改变服务端实际上限。最大输出默认 4096、温度 0.2、Top P 0.9;超时默认 300 秒,可设置 10–1800 秒。上述参数均自动保存并恢复。取消、读取文件变化、接口失败、预算不足或无效输出均不修改当前配方。
+视频最长约 5 分钟,每次工具调用最多读取 2–60 张(默认上限 3,允许多次调用,修改后记住),累计最多 60 张、JPEG 合计 10MB、最多 12 轮请求。画面最长边为 640 像素,引用实际帧号与时间。上下文长度默认 131702,用于本地估算输入与输出预算,图像 token 数依模型而异,不改变服务端实际上限。最大输出默认 8192、温度 0.2、Top P 0.9;超时默认 300 秒,可设置 10–1800 秒。上述参数均自动保存并恢复。取消、读取文件变化、接口失败、预算不足或无效输出均不修改当前配方。
生成后逐步显示时间段、参考画面、名称、说明、区域键和提醒,可先修改。右侧对话区支持自然语言调整,例如“把第二步拆成两步”“合并这两步”“保留说明,只改名字”,也可以先讨论或澄清;点击发送或 Ctrl+Enter。每次会附上当前手动编辑后的草稿、已查看的视频画面及最近 40 条成功对话,Agent 必要时可继续调用视频工具。聊天回复与步骤草稿分开,只有返回并通过校验的完整草稿才更新显示;失败、取消或只讨论时保留原草稿。聊天记录和视频证据仅保留在当前编辑器会话中;“清空”只清对话,切换视频或重新生成成功后重置对话。
diff --git a/src/SopHelper.Avalonia/VVMs/RecipeEditor/RecipeEditor.axaml b/src/SopHelper.Avalonia/VVMs/RecipeEditor/RecipeEditor.axaml
index d49802a..f30f8aa 100644
--- a/src/SopHelper.Avalonia/VVMs/RecipeEditor/RecipeEditor.axaml
+++ b/src/SopHelper.Avalonia/VVMs/RecipeEditor/RecipeEditor.axaml
@@ -146,11 +146,10 @@
-
+
-
@@ -162,7 +161,6 @@
-
@@ -183,7 +181,6 @@
-
@@ -192,8 +189,6 @@
-
-
@@ -262,7 +257,6 @@
-
@@ -364,7 +358,6 @@
-
@@ -418,12 +411,10 @@
-
-
@@ -506,7 +497,6 @@
-
@@ -573,13 +563,6 @@
-
-
-
-
-
-
-
diff --git a/src/SopHelper.Avalonia/VVMs/RecipeEditor/SopVideoAgentViewModel.cs b/src/SopHelper.Avalonia/VVMs/RecipeEditor/SopVideoAgentViewModel.cs
index d8ec377..9fbb911 100644
--- a/src/SopHelper.Avalonia/VVMs/RecipeEditor/SopVideoAgentViewModel.cs
+++ b/src/SopHelper.Avalonia/VVMs/RecipeEditor/SopVideoAgentViewModel.cs
@@ -24,7 +24,7 @@ public partial class RecipeEditorViewModel
private string _agentEndpoint = "", _agentModel = "", _agentApiKey = "", _agentVideoPath = "", _agentInstructions = "";
private string _agentStatus = "", _agentSummary = "";
private int _agentMaxFrames = 3;
- private int _agentContextLength = 32768, _agentMaxTokens = 4096, _agentTimeoutSeconds = 300;
+ private int _agentContextLength = 131702, _agentMaxTokens = 8192, _agentTimeoutSeconds = 300;
private double _agentTemperature = .2, _agentTopP = .9;
private CancellationTokenSource? _modelDiscoveryCancellation;
private bool _agentClosed;
diff --git a/src/SopHelper.CrossPlatform.Engine/SopAgent/SopVideoDraftClient.cs b/src/SopHelper.CrossPlatform.Engine/SopAgent/SopVideoDraftClient.cs
index 8864e27..da1f38a 100644
--- a/src/SopHelper.CrossPlatform.Engine/SopAgent/SopVideoDraftClient.cs
+++ b/src/SopHelper.CrossPlatform.Engine/SopAgent/SopVideoDraftClient.cs
@@ -8,7 +8,7 @@ using SopHelper.Engine.Sop;
namespace SopHelper.Engine.SopAgent;
public sealed record SopAgentConnection(string Endpoint, string Model, string ApiKey,
- int ContextLength = 32768, int MaxTokens = 4096, double Temperature = .2, double TopP = .9, int TimeoutSeconds = 300);
+ int ContextLength = 131702, int MaxTokens = 8192, double Temperature = .2, double TopP = .9, int TimeoutSeconds = 300);
public sealed record SopVideoAnalysisRequest(string Recipe, string Instructions, SopVideoSample Video, IReadOnlyList Regions,
int MaxFramesPerRead = 3, IProgress? Progress = null,
string UserMessage = "", IReadOnlyList? Conversation = null, SopVideoDraft? CurrentDraft = null);
diff --git a/tests/Avalonia.Smoke/Program.cs b/tests/Avalonia.Smoke/Program.cs
index 005c0ef..9e93919 100644
--- a/tests/Avalonia.Smoke/Program.cs
+++ b/tests/Avalonia.Smoke/Program.cs
@@ -749,6 +749,7 @@ internal static class Smoke
for(var i=0;i<40;i++){using var frame=new Mat(48,64,MatType.CV_8UC3,new Scalar(i*4,60,90));writer.Write(frame);}
}
var client=new UiSopAgent();model.AgentClient=client;
+ Check(model.AgentContextLength==131702&&model.AgentMaxTokens==8192,"Assistant defaults use the requested context and output lengths");
Check(model.AgentMaxFrames==3,"Assistant defaults to at most three sampled frames");
model.AgentVideoPath=video;model.AgentEndpoint="https://custom.invalid/v1/chat/completions";
model.AgentModel="custom-vision";model.AgentApiKey="remember-test-key";model.AgentMaxFrames=3;