From ecafb077289fd0744b4d97433f41a7f58ccf6cf9 Mon Sep 17 00:00:00 2001 From: Junyan Qin <1010553892@qq.com> Date: Fri, 22 Sep 2023 12:24:03 +0800 Subject: [PATCH] Update README.md --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fd2c620..63f3d7b 100644 --- a/README.md +++ b/README.md @@ -46,9 +46,12 @@ then you can open the admin page at `http://localhost:3000/`. ## Usage -Create channel on the admin page, create a new key. -Set the url (e.g. http://localhost:3000/v1 ) as OpenAI endpoint, and set the generated key as OpenAI api key. -Then you can use the OpenAI API to access the reverse engineered LLM lib. +1. Create channel on the admin page, create a new key. + +image + +2. Set the url (e.g. http://localhost:3000/v1 ) as OpenAI endpoint, and set the generated key as OpenAI api key. +3. Then you can use the OpenAI API to access the reverse engineered LLM lib. ```curl # curl example @@ -73,6 +76,7 @@ curl http://localhost:3000/v1/chat/completions \ ``` ```python +# python example import openai openai.api_base = "http://localhost:3000/v1"