File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
DevProxy.Plugins/Behavior Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ public sealed class LanguageModelFailurePlugin(
19
19
ILogger < LanguageModelFailurePlugin > logger ,
20
20
ISet < UrlToWatch > urlsToWatch ,
21
21
IProxyConfiguration proxyConfiguration ,
22
- IConfigurationSection pluginConfigurationSection ,
23
- ILanguageModelClient languageModelClient ) :
22
+ IConfigurationSection pluginConfigurationSection ) :
24
23
BasePlugin < LanguageModelFailureConfiguration > (
25
24
httpClient ,
26
25
logger ,
@@ -48,18 +47,6 @@ public sealed class LanguageModelFailurePlugin(
48
47
49
48
public override string Name => nameof ( LanguageModelFailurePlugin ) ;
50
49
51
- public override async Task InitializeAsync ( InitArgs e , CancellationToken cancellationToken )
52
- {
53
- await base . InitializeAsync ( e , cancellationToken ) ;
54
-
55
- Logger . LogInformation ( "Checking language model availability..." ) ;
56
- if ( ! await languageModelClient . IsEnabledAsync ( cancellationToken ) )
57
- {
58
- Logger . LogError ( "Local language model is not enabled. The {Plugin} will not be used." , Name ) ;
59
- Enabled = false ;
60
- }
61
- }
62
-
63
50
public override async Task BeforeRequestAsync ( ProxyRequestArgs e , CancellationToken cancellationToken )
64
51
{
65
52
Logger . LogTrace ( "{Method} called" , nameof ( BeforeRequestAsync ) ) ;
You can’t perform that action at this time.
0 commit comments