phelps-sg/openai-pygenerator
Type-annoted wrapper for OpenAI Python API which provides a generator over completions with retry functionality when encountering RateLimitError
This project helps Python developers integrate OpenAI's language models into their applications more robustly. It takes a prompt or a sequence of prompts and returns the model's completions, managing common issues like rate limits and session state. Developers using the OpenAI API in their Python applications are the primary users.
No commits in the last 6 months.
Use this if you are a Python developer building applications with OpenAI's API and need reliable completion generation, automatic retries, and session management.
Not ideal if you are using OpenAI's Python API version 1.0.0 or later, as the core features are now built into the official library.
Stars
9
Forks
2
Language
Python
License
MIT
Category
Last pushed
Nov 18, 2023
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/phelps-sg/openai-pygenerator"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
rawandahmad698/PyChatGPT
⚡️ Python client for the ChatGPT API with, conversation tracking, proxy support and more.
k4l1sh/alexa-gpt
A tutorial on how to use ChatGPT in Alexa
Simatwa/WebChatGPT
Python SDK/API for ChatGPT Web-Version
toshiakit/MatGPT
MATLAB app to access ChatGPT API from OpenAI
minimaxir/simpleaichat
Python package for easily interfacing with chat apps, with robust features and minimal code complexity.