diff --git a/README.md b/README.md index 7d21ed7..1d946bf 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # FreeGPT35 Utilize the unlimited free **GPT-3.5-Turbo** API service provided by the login-free ChatGPT Web. Forked from [https://github.com/skzhengkai/free-chatgpt-api](https://github.com/skzhengkai/free-chatgpt-api). -## Usage +## Deploy ### Node ```bash @@ -10,6 +10,10 @@ node app.js ``` ### Docker +```bash +docker run -p 3040:3040 ghcr.io/missuo/freegpt35 +``` + ```bash docker run -p 3040:3040 missuo/freegpt35 ``` @@ -21,3 +25,23 @@ mkdir freegpt35 && cd freegpt35 wget -O compose.yaml https://raw.githubusercontent.com/missuo/FreeGPT35/main/compose.yaml docker compose up -d ``` + +## Request Example + +**You don't have to pass Authorization, of course, you can also pass any string randomly.** + +```bash +curl http://127.0.0.1:3040/v1/chat/completions \ + -H "Content-Type: application/json" \ + -H "Authorization: Bearer any_string_you_like" \ + -d '{ + "model": "gpt-3.5-turbo", + "messages": [ + { + "role": "user", + "content": "Hello!" + } + ], + "stream": true + }' +``` \ No newline at end of file