#openai #chatgpt #gpt #ai #ai-api

openairs

A simple and efficient wrapper around the OpenAI API

5 releases

0.2.1 Jul 9, 2023
0.2.0 Jul 9, 2023
0.1.2 Apr 14, 2023
0.1.1 Feb 9, 2023
0.1.0 Feb 9, 2023

#30 in #ai-api

Download history 7/week @ 2024-09-21 2/week @ 2024-09-28

69 downloads per month
Used in discord-openai

MIT license

19KB
455 lines

openai-rs

A simple and efficient wrapper around the OpenAI API


                                           ...                                          
                                      .:oxO0KK0Okxl;.                                   
                                   .:kXWWXOkxxk0KXWWKx;.....                            
                                  ;OWW0o;.     ...c0WMNK0KK0Oxo:.                       
                                 lXMXl.       .':lkXWWX0kxxkOXWWXk:.                    
                             .':xXMK:      .;d0NWWNOo;.      .;o0WWO;                   
                          .;xKNWMMWo    'ckKWWKxoc'             .lXMXc                  
                         :OWWKxdKMNc   ,0WN0o;.     .,lxkd:.      :KMX:                 
                       .dNWKl. .OMN:   ;XXc.     .:d0KOOKWWKkc'.   dWMx.                
                      .dWWO'   .OMN:   ;X0' .'lk0XN0l'  .;oONWN0o;.lNMO.                
                      ;KMK;    .OMNc   ;XXdoOKOxxOX0d:.    .'ckXWWXXWWx.                
                      lNMk.    .OMNc   ;XWXxc'.   'cxKKkl'.    .;d0WMWx.                
                      cNMO'    .OMNc   ;XK;          ,0WNKOd;.    .c0WWx.               
                      'OMNo    .dNWk;. ;X0'          .ONo,cxKKx;    .kWWx.              
                       ;KMXo.   .,lkK0xkN0'          .ON:   cNM0'    ,0MX:              
                        ,OWW0l'     .:d0NNd,.      .,dXNc   ;XM0'    .xMWo              
                         lWMMWNOo;.    .,lkK0d:,,:d0KKNNc   ;XM0'    .kMNl              
                        .xMWOokXWWKxc'     ;OWWNX0xc',ONc   ;XM0'    lNM0'              
                        .xMWo  .:d0NWXOo;:dOKOo;'.   .ON:   ;XM0'  .lXMK:               
                         lNMO'    .,lkXWNKxc'      .:xNN:   ;XM0;'l0WWO;                
                         .xWWk'       .;,.    .,:lkXWWKd.   :NMWXNWNOc.                 
                          .dNWKl.          .:d0NMWNOo;.    .xWWXOxl,.                   
                           .:ONWXko:;,,;:okXWWKxoc'       .dNM0;                        
                             .,oOXWWWWWWWMMW0c.         .c0WWk'                         
                                 .,:cccccxXWNOoc:;,,;:lxKWW0c.                          
                                          'lkKNWWWWWWWWX0d;.                            
                                             .';::ccc:,.                                

To run the examples, first set an environment variable called OPENAI_API_KEY. Then you can run any example with the following command:

cargo run --example <example-name>

Dependencies

~7–19MB
~255K SLoC