This is the module for work with handlers of reviews by templates or GPT
Project description
Handler Reviews
What is this?
The module allows process reviews of your clients by tamplates or AI.
Quick Guide
The module is based on the following structure:
handler = ReviewsHandlerProvider()
gpt_handler = handler.fetch_handler(handler_type=HandlerType.GPTHANDLER, api_key=api_key_gpt)
template_handler = handler.fetch_handler(handler_type=HandlerType.TEMPLATEHANDLER)
Which Python provides by standard.
Using
Using the library is as simple and convenient as possible:
Let's import it first:
First, import everything from the library (use the from
... import *
construct).
handler = ReviewsHandlerProvider()
gpt_handler = handler.fetch_handler(handler_type=HandlerType.GPTHANDLER, api_key=api_key_gpt)
template_handler = handler.fetch_handler(handler_type=HandlerType.TEMPLATEHANDLER)
#Get your data like name_client, review, grade, return_amount_tokens
response_gpt = gpt_handler.get_response(name_client, review, grade, return_amount_tokens) response_tamplate = template_handler.get_response(name_client, grade)
Developer
My site: link
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for handler_reviews_lib-0.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ccc82481e84077f2b62fb8c9656e24abe95554a873e94129922e82af68c29e8 |
|
MD5 | a305e8e5edc5bb8348b738e03797f8ac |
|
BLAKE2b-256 | 8e647305f4734467f7613bc20614482e3ff9bea8efbaab7432212d36623aeabc |
Close
Hashes for handler_reviews_lib-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f06603f9d79114ffe76b001210beecc116c130df80b365c5a15aff72b85c41a0 |
|
MD5 | 425a4ef334fb6c81c4f8efedf54533bf |
|
BLAKE2b-256 | 8974130be22a49991d96804f1ae669c5918f372142e4f090be15fe6011e2029a |