Skip to content
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

Difficulty Implementing Proxy for OpenAI API with App Calling and curl Insufficiency #544

Open
albcm-simetrik opened this issue Nov 22, 2023 · 0 comments

Comments

@albcm-simetrik
Copy link

albcm-simetrik commented Nov 22, 2023

Problem

I'm trying to create a proxy to communicate with the OpenAI API api.openai.com:443. The idea is to have the proxy running while the web service that uses the mentioned API is defining the OpenAI URL with the proxy "127.0.0.1:2269" to apply certain toxics.

The solution proposed in this comment works for me:

image

However, it is not applicable to my solution as it is an app that calls OpenAI, and curl is not sufficient. The alternative I'm trying to apply is to modify /etc/hosts as proposed in this comment within the service that calls the API.

image

However, I receive the following errors with these alternatives:

imageimage
image

Also following this guide
https://theholyjava.wordpress.com/2018/11/26/java-understanding-the-different-network-https-exceptions/
image

Any ideas?

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

1 participant