pedrorito / chatgptslackbot Goto Github PK
View Code? Open in Web Editor NEW๐ค A Slack bot that integrates with OpenAI's ChatGPT to provide answers, written in Python
License: GNU General Public License v2.0
๐ค A Slack bot that integrates with OpenAI's ChatGPT to provide answers, written in Python
License: GNU General Public License v2.0
The image size is more than 2GB. Can you try to reduce it?
chatgptslackbot latest 90630876b727 8 days ago 2.14GB
I've seen a discord bot is using that (or at least claims to be):
https://github.com/Zero6992/chatGPT-discord-bot
Do you mind providing some instructions on how to succesfully integrate this into slack, i.e. once the bot is running locally, how to integrate it with Slack
Traceback (most recent call last):
chatgptslackbot | File "/app/app.py", line 15, in
chatgptslackbot | chatbot = Chatbot(ChatGPTConfig, conversation_id=None)
chatgptslackbot | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatgptslackbot | File "/usr/local/lib/python3.11/site-packages/revChatGPT/revChatGPT.py", line 116, in init
chatgptslackbot | self.refresh_session()
chatgptslackbot | File "/usr/local/lib/python3.11/site-packages/revChatGPT/revChatGPT.py", line 295, in refresh_session
chatgptslackbot | asyncio.run(self.get_cf_cookies())
chatgptslackbot | File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
chatgptslackbot | return runner.run(main)
chatgptslackbot | ^^^^^^^^^^^^^^^^
chatgptslackbot | File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
chatgptslackbot | return self._loop.run_until_complete(task)
chatgptslackbot | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatgptslackbot | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
chatgptslackbot | return future.result()
chatgptslackbot | ^^^^^^^^^^^^^^^
chatgptslackbot | File "/usr/local/lib/python3.11/site-packages/revChatGPT/revChatGPT.py", line 370, in get_cf_cookies
chatgptslackbot | browser = await p.chromium.launch(headless=False)
chatgptslackbot | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatgptslackbot | File "/usr/local/lib/python3.11/site-packages/playwright/async_api/_generated.py", line 12809, in launch
chatgptslackbot | await self._impl_obj.launch(
chatgptslackbot | File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_browser_type.py", line 93, in launch
chatgptslackbot | Browser, from_channel(await self._channel.send("launch", params))
chatgptslackbot | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatgptslackbot | File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 44, in send
chatgptslackbot | return await self._connection.wrap_api_call(
chatgptslackbot | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chatgptslackbot | File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 419, in wrap_api_call
chatgptslackbot | return await cb()
chatgptslackbot | ^^^^^^^^^^
chatgptslackbot | File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 79, in inner_send
chatgptslackbot | result = next(iter(done)).result()
chatgptslackbot | ^^^^^^^^^^^^^^^^^^^^^^^^^
chatgptslackbot | playwright._impl._api_types.Error: Executable doesn't exist at /root/.cache/ms-playwright/chromium-1033/chrome-linux/chrome
chatgptslackbot | โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
chatgptslackbot | โ Looks like Playwright was just installed or updated. โ
chatgptslackbot | โ Please run the following command to download new browsers: โ
chatgptslackbot | โ โ
chatgptslackbot | โ playwright install โ
chatgptslackbot | โ โ
chatgptslackbot | โ <3 Playwright Team โ
chatgptslackbot | โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ValueError revChat, even though I put the auth details on docker file, still couldn't find the auth details.
Both docker-compose and normal running getting the same error , tried to downgrade the python version and revChatGPT version, but still the same issue
traceback (most recent call last):
File "app.py", line 8, in
from revChatGPT.revChatGPT import Chatbot
ModuleNotFoundError: No module named 'revChatGPT.revChatGPT'
Being able to talk to the bot directly instead of the public channel would be great.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.