minor change
This commit is contained in:
parent
734be5d607
commit
dc6888c001
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue