From 3276a85fb09263157be8af19e748eeb140bbf71a Mon Sep 17 00:00:00 2001 From: shorexilin <52094488+shorexilin@users.noreply.github.com> Date: Tue, 20 Feb 2024 08:37:07 +0000 Subject: [PATCH] Initial commit Created from https://vercel.com/new --- README.md | 13 +++++++++++++ vercel.json | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 README.md create mode 100644 vercel.json diff --git a/README.md b/README.md new file mode 100644 index 0000000..01be044 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# vercel-proxy-openai + +Deloy transparent OpenAI Proxy + +[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fthomasnyderp%2Fvercel-proxy-openai) + + +OpenAI API url is: https://api.openai.com/v1 + + +Then your proxy API url will be: https://xxxx.vercel.app/v1 , + +if you assign your domain. It will be: https://you-domain/v1 diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..1315f5f --- /dev/null +++ b/vercel.json @@ -0,0 +1,8 @@ +{ + "rewrites": [ + { + "source": "/:match*", + "destination": "https://api.openai.com/:match*" + } + ] +}