Skip to main content

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

handler_reviews_lib-0.0.7.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

handler_reviews_lib-0.0.7-py3-none-any.whl (9.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page