uGPT is an API and CLI wrapper for chatGPT and other AIGC API base on utype to make integration easier
- Version:
0.1.1
[test] - Author: @voidZXL
- License: MIT
- provide type-hints for OpenAI's API and enforce them at runtime using utype, increasing integration experience and reducing bugs
- provide easy to use commands for common AIGC tasks
pip install -U ugpt
uGPT requires Python >= 3.7
use a simple command to start a chat session with chatGPT
ugpt chat
NOTICE: in the first time, you will be asked for an API key, you can get that in here
if you need to set a request proxy, you can just use
ugpt set --proxy=http://127.0.0.1:7890
or update your API key using
ugpt set --key=<YOUR-NEW-API-KEY>
you can generate image with prompt in a single command
ugpt draw "an orca whale in the sea"
... more are coming
uGPT provided a developer-friendly wrapper for OpenAI's API, All the API params and responses are type-hinted and enforced at runtime using utype, increasing integration experience and reduce bugs
such as image.py