Releases: copilot-extensions/preview-sdk.js 
  
  Releases · copilot-extensions/preview-sdk.js
      
  v5.0.1 
  
    
  
      
        05 Oct 19:34
       
  
    
    
    
    
      
  
      
    Compare 
      
          
     
 
       
   
 
    
            
        
           
          
            
                
  
                  
                    
                    
                        
                          
     
 
                          Sorry, something went wrong. 
                         
                     
 
  
              
            
              
No results found 
            
          
       
    
      
 
    
  
  
        
        5.0.1  (2024-10-05) 
Bug Fixes 
readme:  add await to prompt.stream example (#112 ) (4817827 ) 
  
 
  
  
   
   
  
  v5.0.0 
  
    
  
      
        18 Sep 03:56
       
  
    
    
    
    
      
  
      
    Compare 
      
          
     
 
       
   
 
    
            
        
           
          
            
                
  
                  
                    
                    
                        
                          
     
 
                          Sorry, something went wrong. 
                         
                     
 
  
              
            
              
No results found 
            
          
       
    
      
 
    
  
  
        
        5.0.0  (2024-09-18) 
Features 
support caching of verification kys (#81 ) (1f56d8e ), closes #9  
 
BREAKING CHANGES 
verifyRequestByKeyId() now returns an object with a isValid property and acache` property. 
 
Before
const  isValid  =  await  verifyRequestByKeyId ( ) ;  
After
const  {  isValid,  cache }  =  await  verifyRequestByKeyId ( ) ;  
fetchVerificationKeys() now returns an object with a 
keys property and acache property. 
 
Before
const  keys  =  await  fetchVerificationKeys ( ) ;  
After
const  {  keys,  cache }  =  await  fetchVerificationKeys ( ) ;  
 
  
  
   
   
  
  v4.0.3 
  
    
  
      
        10 Sep 23:21
       
  
    
    
    
    
      
  
      
    Compare 
      
          
     
 
       
   
 
    
            
        
           
          
            
                
  
                  
                    
                    
                        
                          
     
 
                          Sorry, something went wrong. 
                         
                     
 
  
              
            
              
No results found 
            
          
       
    
      
 
    
  
  
        
        4.0.3  (2024-09-10) 
Bug Fixes 
set index: 0 in choices as it is now required in copilot API (#76 ) (fc97a30 ) 
  
 
  
  
   
   
  
  v4.0.2 
  
    
  
      
        10 Sep 21:12
       
  
    
    
    
    
      
  
      
    Compare 
      
          
     
 
       
   
 
    
            
        
           
          
            
                
  
                  
                    
                    
                        
                          
     
 
                          Sorry, something went wrong. 
                         
                     
 
  
              
            
              
No results found 
            
          
       
    
      
 
    
  
  
        
        4.0.2  (2024-09-10) 
Bug Fixes 
 
 
  
  
   
   
  
  v4.0.1 
  
    
  
      
        09 Sep 18:17
       
  
    
    
    
    
      
  
      
    Compare 
      
          
     
 
       
   
 
    
            
        
           
          
            
                
  
                  
                    
                    
                        
                          
     
 
                          Sorry, something went wrong. 
                         
                     
 
  
              
            
              
No results found 
            
          
       
    
      
 
    
  
  
        
        4.0.1  (2024-09-09) 
Bug Fixes 
 
 
  
  
   
   
  
  v4.0.0 
  
    
  
      
        05 Sep 18:34
       
  
    
    
    
    
      
  
      
    Compare 
      
          
     
 
       
   
 
    
            
        
           
          
            
                
  
                  
                    
                    
                        
                          
     
 
                          Sorry, something went wrong. 
                         
                     
 
  
              
            
              
No results found 
            
          
       
    
      
 
    
  
  
        
        BREAKING CHANGES 
All create*Event methods now return a string instead 
of an object with a .toString() method. 
 
Before:
esponse . write ( createTextEvent ( "Hello, world!" ) . toString ( ) ) ;  
Now:
esponse . write ( createTextEvent ( "Hello, world!" ) ) ;  
 
  
  
   
   
  
  v3.0.0 
  
    
  
      
        05 Sep 04:22
       
  
    
    
    
    
      
  
      
    Compare 
      
          
     
 
       
   
 
    
            
        
           
          
            
                
  
                  
                    
                    
                        
                          
     
 
                          Sorry, something went wrong. 
                         
                     
 
  
              
            
              
No results found 
            
          
       
    
      
 
    
  
  
        
        BREAKING CHANGES 
prompt:  prompt() is now throwing an error if the API responds 
with an error status code 
 
Features 
prompt:  prompt.stream(), options.endpoint (#57 ) (9533a1f ) 
  
 
  
  
   
   
  
  v2.6.1 
  
    
  
      
        04 Sep 03:56
       
  
    
    
    
    
      
  
      
    Compare 
      
          
     
 
       
   
 
    
            
        
           
          
            
                
  
                  
                    
                    
                        
                          
     
 
                          Sorry, something went wrong. 
                         
                     
 
  
              
            
              
No results found 
            
          
       
    
      
 
    
  
  
        
        2.6.1  (2024-09-04) 
Bug Fixes 
prompt:  parameters.model is now a string and is optional. It defaults to gpt-4 (#53 ) (c8b6a7d ) 
  
 
  
  
   
   
  
  v2.6.0 
  
    
  
      
        03 Sep 04:06
       
  
    
    
    
    
      
  
      
    Compare 
      
          
     
 
       
   
 
    
            
        
           
          
            
                
  
                  
                    
                    
                        
                          
     
 
                          Sorry, something went wrong. 
                         
                     
 
  
              
            
              
No results found 
            
          
       
    
      
 
    
  
  
        
        2.6.0  (2024-09-03) 
Features 
 
 
  
  
   
   
  
  v2.5.0 
  
    
  
      
        03 Sep 00:33
       
  
    
    
    
    
      
  
      
    Compare 
      
          
     
 
       
   
 
    
            
        
           
          
            
                
  
                  
                    
                    
                        
                          
     
 
                          Sorry, something went wrong. 
                         
                     
 
  
              
            
              
No results found 
            
          
       
    
      
 
    
  
  
        
        2.5.0  (2024-09-03) 
Features