Skip to content

feat: add temporary support for Cloudflare AI Gateway OpenAI path#3357

Closed
Eric-2369 wants to merge 1 commit intoChatGPTNextWeb:mainfrom
Eric-2369:support-for-cloudflare-ai-gateway
Closed

feat: add temporary support for Cloudflare AI Gateway OpenAI path#3357
Eric-2369 wants to merge 1 commit intoChatGPTNextWeb:mainfrom
Eric-2369:support-for-cloudflare-ai-gateway

Conversation

@Eric-2369
Copy link
Copy Markdown
Contributor

Added support for Cloudflare AI Gateway. When using the OpenAI proxy with Cloudflare AI Gateway, an error of "invalid URL (post /v1/v1/chat/completions)" occurs because 'v1' already exists in the baseUrl. A temporary solution is to remove 'v1' from the path when detecting the use of Cloudflare AI Gateway. As I do not have access to Azure OpenAI services, I was unable to test the Azure proxy for Cloudflare AI Gateway.

@Eric-2369
Copy link
Copy Markdown
Contributor Author

Related issue: songquanpeng/one-api#666

@Eric-2369 Eric-2369 closed this Dec 22, 2023
@Eric-2369 Eric-2369 deleted the support-for-cloudflare-ai-gateway branch December 22, 2023 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant