minor change

This commit is contained in:
Jicheng Lu 2024-06-24 17:21:41 -05:00
parent 734be5d607
commit dc6888c001
2 changed files with 1 additions and 3 deletions

View file

@ -4,7 +4,6 @@ namespace BotSharp.Core.Files.Hooks;
public class AttachmentProcessingHook : AgentHookBase
{
private readonly IServiceProvider _services;
private static string TOOL_ASSISTANT = Guid.Empty.ToString();
public override string SelfId => string.Empty;
@ -12,7 +11,6 @@ public class AttachmentProcessingHook : AgentHookBase
public AttachmentProcessingHook(IServiceProvider services, AgentSettings settings)
: base(services, settings)
{
_services = services;
}
public override void OnAgentLoaded(Agent agent)

View file

@ -36,7 +36,7 @@ public class WebSocketsMiddleware
{
var regexes = new List<Regex>
{
new Regex(@"/conversation/[a-z0-9-]+/message/[a-z0-9-]+/[a-z]+/file/[a-z0-9-]+/[a-z0-9-]+", RegexOptions.IgnoreCase),
new Regex(@"/conversation/(.*?)/message/(.*?)/(.*?)/file/(.*?)/(.*?)", RegexOptions.IgnoreCase),
new Regex(@"/user/avatar", RegexOptions.IgnoreCase)
};