diemus / azure-openai-proxy

A proxy for Azure OpenAI API that can convert an OpenAI request into an Azure OpenAI request.
MIT License
633 stars 68 forks source link

在vercel里部署有什么特别的设置吗? #16

Closed goldenhawksu closed 1 year ago

goldenhawksu commented 1 year ago

在vercel部署了一个,用默认的build配置,环境变量除了KEY没设置,其它都按文档里的配置了 https://azure-api-proxy.vercel.app/

测试语句(Key作了mask), curl https://azure-api-proxy.vercel.app/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer c4b7de425xxxxxxxxxxxxxxxxxxxxxxx" -d '{ "model": "gpt-35-turbo", "messages": [{"role": "user", "content": "Hello!"}]}'

返回,

The page could not be found

NOT_FOUND

是哪里没有做对吗?

diemus commented 1 year ago

vercel不是部署前端项目用的吗?这个是个后端项目