fgpt-0.1.6 is not a library.
A free reverse proxy and CLI tool for OpenAI GPT-3.5-turbo
It allows you to use the GPT-3.5 API without needing to sign up for an API key or pay for usage.
OpenAI GPT-3.5-turbo is free to use, without any account or API key DON'T USE IN PRODUCTION, ONLY FOR PERSONAL USE/TESTING
Features
- REPL mode, you can input questions and get answers interactively
- Reverse proxy mode, you can use the OpenAI OpenAPI with a local server
- CLI mode, with shell pipe, file input, code output, etc.
- Support https proxy and socks5 proxy
Download precompiled binary
-
Linux executable binary
-
Mac M1/M2 executable binary
-
Windows (Coming soon)
-
Or via Docker
-
Or build from source (see below, cargo is required)
How to use
# To get answers from GPT-3.5
# Output plain code -c/--code
# With pipe
|
# With stdin
# With file -f/--file
# REPL mode
>> Write
With http proxy
If you are unable to connect , you can try using a proxy. HTTP and SOCKS5 proxies are supported. For example:
# 1. pass the proxy address by -p/--proxy
# 2. pass the proxy address by environment variable
# 3. use alias to set the proxy address
Dump stats
Use by docker
How to use Reverse Proxy
Offering free self-hosted API access to ChatGPT. This is useful if you want to use the OpenAI API without needing to sign up for an API key.
1. Start the server
Your local server will now be running and accessible at: http://127.0.0.1:4090/v1/chat/completions
2. Example Usage with OpenAI Libraries
=
=
=
or test with curl: