seratch / ChatGPT-in-Slack

Swift demonstration of how to build a Slack app that enables end-users to interact with a ChatGPT bot
MIT License
397 stars 148 forks source link

Library use in the project #86

Closed mingmingct closed 2 weeks ago

mingmingct commented 2 weeks ago

I met an issue using:

from openai import OpenAI,

The version is the same, how can I change it?

seratch commented 2 weeks ago

Hi @mingmingct, can you elaborate more on your question? The only thing you need to do to resolve the dependency is to run pip install -r requirements.txt.

mingmingct commented 2 weeks ago

Yeah, after installing it, there is no OpenAI from openai library.

seratch commented 2 weeks ago

Check these steps: https://github.com/seratch/ChatGPT-in-Slack?tab=readme-ov-file#running-the-app-on-your-local-machine

More specifically, as long as you have correctly installed the pip package into the virtual environment/runtime you're using to run the app, your issue won't occur.

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python main.py

Since this is not a general Q&A forum but an issue tracker for specific repo concerns, I'll close this issue. If you need more help with running a Python app, please ask those questions elsewhere, such as stackoverflow.com.

mingmingct commented 1 week ago

I use the same as you mentioned in the github

On Sat, May 18, 2024 at 7:54 PM Kazuhiro Sera @.***> wrote:

Closed #86 https://github.com/seratch/ChatGPT-in-Slack/issues/86 as completed.

— Reply to this email directly, view it on GitHub https://github.com/seratch/ChatGPT-in-Slack/issues/86#event-12857147091, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIPRW7HEIM7KHB6RRIGDHIDZC7SZ3AVCNFSM6AAAAABH4FNBH6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSHA2TOMJUG4YDSMI . You are receiving this because you were mentioned.Message ID: @.***>