Skip to content

Enable the use of OpenAI with custom authentication in scenarios where a proxy is in place before accessing the OpenAI service. #1331

New issue

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

Open
1 task done
tpamsler opened this issue Feb 13, 2025 · 1 comment

Comments

@tpamsler
Copy link

Confirm this is a feature request for the Node library and not the underlying OpenAI API.

  • This is a feature request for the Node library

Describe the feature or improvement you're requesting

Enable the use of OpenAI with custom authentication in scenarios where a proxy is in place before accessing the OpenAI service.

  1. Initialize OpenAI with a custom authentication token and send a request to a proxy that handles the POST /api/chat/completions API.
  2. The proxy validates the custom authentication token and forwards the request to OpenAI using the actual OpenAI API key.

Additional context

No response

@RobertCraigie
Copy link
Collaborator

You can configure proxies today, have you tried that? https://github.com/openai/openai-node?tab=readme-ov-file#configuring-an-https-agent-eg-for-proxies

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

No branches or pull requests

2 participants