We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenAI 使用第三方 [ 请求地址 ],比如 Cloudflare 的 AI Gateway https://gateway.ai.cloudflare.com/v1/a4f3288ad83ecb60592409/pot/openai/chat/completions 从 Cloudflare 后台看到的请求 endpoint 会变成 /chat/completions/v1/chat/completions,正确的应该是 /chat/completions 才对。说明程序在最终请求上额外又加了 /v1/chat/completions,以致服务添加报错:
试过 OpenAI-Translator 将请求分开写,无此问题:
将 OpenAI [ 请求地址 ]https://api.openai.com/v1/chat/completions 改为 第三方 https://gateway.ai.cloudflare.com/v1/a4f3288ad83ecb60592409/pot/openai/chat/completions 报错!
Windows
Windows 11 专业版 23H2 22631.2792
None
2.7.1
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
OpenAI 使用第三方 [ 请求地址 ],比如 Cloudflare 的 AI Gateway https://gateway.ai.cloudflare.com/v1/a4f3288ad83ecb60592409/pot/openai/chat/completions
![image](https://private-user-images.githubusercontent.com/14304354/289895848-850ef4c3-12a0-4907-9d75-5a64cc633af6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTI2MDgsIm5iZiI6MTczOTY5MjMwOCwicGF0aCI6Ii8xNDMwNDM1NC8yODk4OTU4NDgtODUwZWY0YzMtMTJhMC00OTA3LTlkNzUtNWE2NGNjNjMzYWY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA3NTE0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJkYWY4YzIzZWI1MTU3NTI0N2EwYzRiMGEwMDAzZjY1ZjBjMDc2NTliMDE2MTQ4ZGU5YmYxYjZlODgzZmNhMzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.aHZTkAfl2hcEBcANrP6ibSJYQIpNBpth1j95d9j1n9U)
从 Cloudflare 后台看到的请求 endpoint 会变成 /chat/completions/v1/chat/completions,正确的应该是 /chat/completions 才对。说明程序在最终请求上额外又加了 /v1/chat/completions,以致服务添加报错:
试过 OpenAI-Translator 将请求分开写,无此问题:
Reproduction
将 OpenAI [ 请求地址 ]https://api.openai.com/v1/chat/completions 改为 第三方 https://gateway.ai.cloudflare.com/v1/a4f3288ad83ecb60592409/pot/openai/chat/completions 报错!
Platform
Windows
System Version
Windows 11 专业版 23H2 22631.2792
Window System (Linux Only)
None
Software Version
2.7.1
Log File
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: