#completion #api #studio #j1

ai21

A wrapper over the AI21 Studio API

6 releases

0.1.4 Apr 9, 2022
0.1.3 Apr 9, 2022
0.1.2 Apr 9, 2022
0.1.1 Apr 9, 2022
0.1.0 Apr 9, 2022

#31 in #studio


Used in askai

GPL-3.0 license

7KB
158 lines

Get completions with J1:

use ai21::AI21;

let ai21 = AI21::new(token).temperature(0.9).build();
let output = ai21.complete("The meaning of life is").await.unwrap();

Dependencies

~6–18MB
~245K SLoC