File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed 
src/hackingBuddyGPT/utils/openai Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ dependencies = [
2828	' Mako == 1.3.2' 
2929	' requests == 2.32.0' 
3030	' rich == 13.7.1' 
31- 	' tiktoken == 0.6 .0' 
31+ 	' tiktoken == 0.8 .0' 
3232	' instructor == 1.3.5' 
3333	' PyYAML == 6.0.1' 
3434	' python-dotenv == 1.0.1' 
Original file line number Diff line number Diff line change @@ -95,3 +95,31 @@ class GPT4(OpenAIConnection):
9595class  GPT4Turbo (OpenAIConnection ):
9696    model : str  =  "gpt-4-turbo-preview" 
9797    context_size : int  =  128000 
98+ 
99+ 
100+ @configurable ("openai/gpt-4o" , "OpenAI GPT-4o" ) 
101+ @dataclass  
102+ class  GPT4oMini (OpenAIConnection ):
103+     model : str  =  "gpt-4o" 
104+     context_size : int  =  128000 
105+ 
106+ 
107+ @configurable ("openai/gpt-4o-mini" , "OpenAI GPT-4o-mini" ) 
108+ @dataclass  
109+ class  GPT4oMini (OpenAIConnection ):
110+     model : str  =  "gpt-4o-mini" 
111+     context_size : int  =  128000 
112+ 
113+ 
114+ @configurable ("openai/o1-preview" , "OpenAI o1-preview" ) 
115+ @dataclass  
116+ class  O1Preview (OpenAIConnection ):
117+     model : str  =  "o1-preview" 
118+     context_size : int  =  128000 
119+ 
120+ 
121+ @configurable ("openai/o1-mini" , "OpenAI o1-mini" ) 
122+ @dataclass  
123+ class  O1Mini (OpenAIConnection ):
124+     model : str  =  "o1-mini" 
125+     context_size : int  =  128000 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments