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(
1919 ILogger < LanguageModelFailurePlugin > logger ,
2020 ISet < UrlToWatch > urlsToWatch ,
2121 IProxyConfiguration proxyConfiguration ,
22- IConfigurationSection pluginConfigurationSection ,
23- ILanguageModelClient languageModelClient ) :
22+ IConfigurationSection pluginConfigurationSection ) :
2423 BasePlugin < LanguageModelFailureConfiguration > (
2524 httpClient ,
2625 logger ,
@@ -48,18 +47,6 @@ public sealed class LanguageModelFailurePlugin(
4847
4948 public override string Name => nameof ( LanguageModelFailurePlugin ) ;
5049
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-
6350 public override async Task BeforeRequestAsync ( ProxyRequestArgs e , CancellationToken cancellationToken )
6451 {
6552 Logger . LogTrace ( "{Method} called" , nameof ( BeforeRequestAsync ) ) ;
You can’t perform that action at this time.
0 commit comments