File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,17 @@ import OpenAI.Prelude
1212
1313--  |  Breakdown of tokens used in a completion 
1414data  CompletionTokensDetails  =  CompletionTokensDetails 
15-     {  accepted_prediction_tokens  ::  Natural 
16-     , audio_tokens  ::  Natural 
17-     , reasoning_tokens  ::  Natural 
18-     , rejected_prediction_tokens  ::  Natural 
15+     {  accepted_prediction_tokens  ::  Maybe   Natural 
16+     , audio_tokens  ::  Maybe   Natural 
17+     , reasoning_tokens  ::  Maybe   Natural 
18+     , rejected_prediction_tokens  ::  Maybe   Natural 
1919    }  deriving  stock  (Generic , Show )
2020      deriving  anyclass  (FromJSON )
2121
2222--  |  Breakdown of tokens used in the prompt 
2323data  PromptTokensDetails  =  PromptTokensDetails 
24-     {  audio_tokens  ::  Natural 
25-     , cached_tokens  ::  Natural 
24+     {  audio_tokens  ::  Maybe   Natural 
25+     , cached_tokens  ::  Maybe   Natural 
2626    }  deriving  stock  (Generic , Show )
2727      deriving  anyclass  (FromJSON )
2828
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments