Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/himanshuteotia/hinglish-openai
This package provides an easy-to-use function for generating text in English by using OpenAI's GPT-3 model. It can take a message in any language as input (especially in hinglish), translate it to English and generates a reply
https://github.com/himanshuteotia/hinglish-openai
hinglish openai openai-api
Last synced: 7 days ago
JSON representation
This package provides an easy-to-use function for generating text in English by using OpenAI's GPT-3 model. It can take a message in any language as input (especially in hinglish), translate it to English and generates a reply
- Host: GitHub
- URL: https://github.com/himanshuteotia/hinglish-openai
- Owner: himanshuteotia
- Created: 2023-01-11T19:27:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-11T19:52:33.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T05:25:36.425Z (about 2 months ago)
- Topics: hinglish, openai, openai-api
- Language: JavaScript
- Homepage:
- Size: 214 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This package provides an easy-to-use function for generating text in English by using OpenAI's GPT-3 model. It can take a message in any language as input (especially in hinglish), translate it to English and generates a reply. It uses the text-davinci-003 model for the best result with parameters like temperature, max_tokens and penalties for better control over generated text. It also uses a cleanString function to remove any unwanted spaces and new lines in the generated text
if you ask in hinglish `kya haal hai?` it will reply something like `I'm doing well. How about you?`
Please do not forget to add api key `export OPENAI_API_KEY=your-key`