Metadata-Version: 2.1
Name: easy-open-ai
Version: 0.1.7
Summary: This is my first real package.
Author: ani
Author-email: 125677472+anilev6@users.noreply.github.com
Requires-Python: >=3.11,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: icecream (>=2.1.3,<3.0.0)
Requires-Dist: openai (>=0.28.1,<0.29.0)
Requires-Dist: tiktoken (>=0.5.1,<0.6.0)
Description-Content-Type: text/markdown

# _Welcome to my OpenAI Playground!_

Making `Open AI` even easier.

_STILL ACTIVELY DEVELOPING_

## How to play

- `pip install easy-open-ai`
- in your working folder, create `.env` file with `OPENAI_API_KEY=`, or make such environment variable
- enjoy! `from easy_open_ai import` ...

  #### Version 0.1.6

  + `get_picture(text, save=True)` *(as b64_json string)*
  + `get_n_pictures(text, n=3)`
  
  + `get_answer(question)`
  + `correct_grammar(text)`

  #### Version 0.1.7

  + `get_picture_url(text)` *(url lives 1 hour)*
  + `get_n_pictures_urls(text, n=3)`

  + `is_harmful_text(text)` *(sometimes ignores censorship escaping: '@' instead of 'a', etc)*
  + `how_many_text_tokens(text)` *(Most of this package works with text no longer than 1024 text-tokens, it's recommended for validating the text length)*
  
  + `sum_up_as_haiku(text)`
  + `get_poem(text)`
  + `get_answer_as_poem(question)`
  + `autocomplete_text(text)`
  
  + `translate_text(text, language='Ukrainian')`
  + `get_answer_with_instruction(question,instruction,
            chaos_coefficient=0.5,
            model="gpt-3.5-turbo",
            max_tokens=1024)`

More easy functions coming soon!

_For `async` version of a function, add `a` in front, for example, `aget_picture(text)` instead of `get_picture(text)`._

