Giter Site home page Giter Site logo

OpenAI proxy about chatwoot HOT 8 CLOSED

dkarelov avatar dkarelov commented on May 29, 2024
OpenAI proxy

from chatwoot.

Comments (8)

linear avatar linear commented on May 29, 2024

PR-977 OpenAI proxy

from chatwoot.

pranavrajs avatar pranavrajs commented on May 29, 2024

@dkarelov Is there any documentation we can refer to?

from chatwoot.

dkarelov avatar dkarelov commented on May 29, 2024

No documentation needed - just send requests to OpenAI through a proxy server. Any http library that you use to send http requests to OpenAI api should have this functionality, it's a couple of lines of code.

from chatwoot.

pranavrajs avatar pranavrajs commented on May 29, 2024

This seems like custom request, we will not be supporting it. Please feel free to comment if it is not the case.

from chatwoot.

dkarelov avatar dkarelov commented on May 29, 2024

@pranavrajs Not sure I got the logic. Chatwoot sends external requests to a third party (OpenAI). Any app that sends external requests usually has an ability to proxify these requests as can be based in the secure perimeter / has other reasons - e.g. all web browsers has an ability to define proxy, any messaging app has this ability etc.
Why exactly are you considering this a "custom request" and what exactly it means?

from chatwoot.

pranavrajs avatar pranavrajs commented on May 29, 2024

If I understand the issue properly, you are trying to add a proxy on Chatwoot for a network issue. I think adding an option in Chatwoot as config is an overkill as it would not be used any other customer.

from chatwoot.

dkarelov avatar dkarelov commented on May 29, 2024

No, it is not a network issue. It is an OpenAI issue. And it is extremely hard to overcome it as connection to OpenAI is managed on Chatwoot side. It is easier to change Chatwoot to something else rather than proxify all the requests to OpenAI from Chatwoot.
At the same time, adding a configuration option to use proxy WITHIN Chatwoot - is a few lines of code. We are discussing it longer than to create it :)

from chatwoot.

pranavrajs avatar pranavrajs commented on May 29, 2024

I would like to offer a differing viewpoint. This issue does not appear to be specifically related to Chatwoot. If you were to build any service on top of OpenAI, not just Chatwoot, it would likely encounter the same problem in your network. Based on this understanding, the issue should be solved outside of Chatwoot, not within. However, you are welcome to create a fork and add the proxy yourself.

from chatwoot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.