Git Product home page Git Product logo

Comments (3)

seratch avatar seratch commented on July 23, 2024

Hi @budbach, thanks for writing in. The file name main_prod.py could be slightly confusing but the "prod" means the production demo environment on AWS Lambda for me.

Discover the app's functionality by installing the live demo from https://bit.ly/chat-gpt-in-slack. Keep in mind that the live demo is personally hosted by @seratch. For corporate Slack workspaces, we strongly advise deploying the app on your own infrastructure using the guidelines provided below.

You can find this part on the README. This live demo serves OAuth installation flow and manage installations to any workspaces. For this purpose, the configure button is always necessary because each workspace user has to set their own OpenAI API key before they start using this app.

As mentioned in the above sentence on README, if you're considering to use this app for your corporate workspace, you can deploy this app using Dockerfile, which runs the main.py with a single workspace token in env. The code calls this way to run the app as "single_workspace_mode".

If you want to run this app on AWS Lambda, it is still feasible. You can simplifies the main_prod.py to use single_workspace_mode along with SLACK_BOT_TOKEN etc.

Does this make sense to you?

from chatgpt-in-slack.

budbach avatar budbach commented on July 23, 2024

I think so. So main_prod.py is what you use to run your hosted version. Since I am deploying to AWS Lambda using the serverless ci/cd flow, I'm basically running the same thing you are when you host which is setup to handle multiple workspaces.

For my use case, I probably could simplify significantly where I don't need all the s3 buckets and oauth stuff.

from chatgpt-in-slack.

seratch avatar seratch commented on July 23, 2024

Great, let me close this issue now

from chatgpt-in-slack.

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.