gpt_text

Crates.iogpt_text
lib.rsgpt_text
version0.1.7
sourcesrc
created_at2023-08-02 16:38:25.791902
updated_at2024-01-09 12:15:48.855766
descriptionopenai text wrapper just encaplusate the functions over one level
homepage
repositoryhttps://github.com/WisdomEnigma/Roombot/
max_upload_size
id932907
size23,479
Ali Hassan (ali2210)

documentation

README

gpt_text_wrapper

This is a encaplusate version of openai version called "fieri" . The basic function of this module is to reduce the excutation cycles such as nlp related tasks.


	

structure

  gpt_text 
  |------------- src
		|-------------lib.rs
  |------------- cargo.toml

module

-> openai

code

use gpt_text::openai;

let mut openc : _ = openai::new("cat translate into japanese".to_string(), "".to_string(), "cat".len().try_into().unwrap());
    
let wrap_gpt : _ = openc.openai_text_wrapper(openai_apikey).await{

        Ok(text) => text,
        Err(err) => panic!("Error = {:?}", err),
};

println!("Response = {:?}", wrap_gpt);

install

cargo add gpt_text

documentation

cargo doc --open	 
Commit count: 41

cargo fmt