Skip to content

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

Open
@albcm-simetrik

Description

@albcm-simetrik

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions