File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -91,15 +91,15 @@ public void ConfigureServices(IServiceCollection services)
9191        options .CredentialProvider  =  new  ConfigurationCredentialProvider (Configuration );
9292
9393        var  endpoint  =  new  QnAMakerEndpoint 
94-              {
95-                  knowledgebaseId  =  " YOUR-KB-ID" 
96-                  //  Get the Host from the HTTP request example at https://www.qnamaker.ai 
97-                  //  For GA services: https://<Service-Name>.azurewebsites.net/qnamaker 
98-                  //  For Preview services: https://westus.api.cognitive.microsoft.com/qnamaker/v2.0 
99-       Host  =  " YOUR-HTTP-REQUEST-HOST" 
100-                  EndpointKey  =  " YOUR-QNA-MAKER-SUBSCRIPTION-KEY" 
101-              };
102-         options .Middleware .Add (new  QnAMakerMiddleware (new   QnAMakerEndpoint ( endpoint ) ));
94+         {
95+            KnowledgeBaseId  =  " YOUR-KB-ID" 
96+            //  Get the Host from the HTTP request example at https://www.qnamaker.ai 
97+            //  For GA services: https://<Service-Name>.azurewebsites.net/qnamaker 
98+            //  For Preview services: https://westus.api.cognitive.microsoft.com/qnamaker/v2.0             
99+ Host  =  " YOUR-HTTP-REQUEST-HOST" 
100+            EndpointKey  =  " YOUR-QNA-MAKER-SUBSCRIPTION-KEY" 
101+         };
102+         options .Middleware .Add (new  QnAMakerMiddleware (endpoint ));
103103    });
104104}
105105``` 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments