haibbo / cf-openai-azure-proxy

A Cloudflare worker script to proxy OpenAI‘s request to Azure OpenAI Service
MIT License
1.66k stars 207 forks source link

fix: cloudflare copy link end with /,might cause path doesn't match. #36

Closed casyalex closed 1 year ago

casyalex commented 1 year ago

I found Chat-gpt-next-web calling api with /api/openai/ prefix. So i loosen the entry point match.

for example [POST] /api/openai/v1/chat/completions?nxtPpath=v1%2Fchat%2Fcompletions status=200

haibbo commented 1 year ago

@casyalex 应该和这个 issue 是同一个问题 issue https://github.com/haibbo/cf-openai-azure-proxy/issues/41

所以只需要 replace 掉开头的//为/就能解决 你可以重新提交一个 PR, 谢谢.

casyalex commented 1 year ago

@haibbo plz have a look

haibbo commented 1 year ago

Thanks