theexplainthis / chatgpt-tinder-bot Goto Github PK
View Code? Open in Web Editor NEWThis is a repository that allows you to integrate ChatGPT into Discord.
License: MIT License
This is a repository that allows you to integrate ChatGPT into Discord.
License: MIT License
教學文章的最後有提到,/src/dialog.py裡面的PREFIX可以決定機器人的回應模式,對於這一點我有幾個問題想請教:
1.PREFIX的內容可以打中文嗎?
2.PREFIX的內容是將我們需求的風格講給chat gpt,然後chat gpt就會理解並且說話變成我們指定的風格(或個性)嗎?
3.承2,若是的話,能不能在PREFIX的內容裡直接打"花花公子"或"省話一哥"就好?
Hello team, i have another error.
Job "reply_messages (trigger: cron[minute='*/5', second='0'], next run at: 2023-03-19 00:30:00 UTC)" raised an exception
Traceback (most recent call last):
File "/home/runner/ChatGPT-Tinder-Bot/venv/lib/python3.10/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/home/runner/ChatGPT-Tinder-Bot/main.py", line 49, in reply_messages
response = chatgpt.get_response(content)
File "/home/runner/ChatGPT-Tinder-Bot/src/chatgpt.py", line 14, in get_response
response = self.model.chat_completion(messages)
File "/home/runner/ChatGPT-Tinder-Bot/src/models.py", line 20, in chat_completion
response = openai.ChatCompletion.create(
File "/home/runner/ChatGPT-Tinder-Bot/venv/lib/python3.10/site-packages/openai/api_resources/chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
File "/home/runner/ChatGPT-Tinder-Bot/venv/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
File "/home/runner/ChatGPT-Tinder-Bot/venv/lib/python3.10/site-packages/openai/api_requestor.py", line 226, in request
resp, got_stream = self._interpret_response(result, stream)
File "/home/runner/ChatGPT-Tinder-Bot/venv/lib/python3.10/site-packages/openai/api_requestor.py", line 619, in _interpret_response
self._interpret_response_line(
File "/home/runner/ChatGPT-Tinder-Bot/venv/lib/python3.10/site-packages/openai/api_requestor.py", line 682, in _interpret_response_line
raise self.handle_error_response(
openai.error.InvalidRequestError: Invalid URL (POST /v1/chat/completions)
Hi,
Bot is not working,
ValueError
'/home/runner/ChatGPT-Tinder-Bot/.pythonlibs/bin/amp' is not in the subpath of '/home/runner/ChatGPT-Tinder-Bot/.pythonlibs/lib/python3.10/site-packages' OR one path is relative and the other is absolute.
at /nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/pathlib.py:818 in relative_to
814│ n = len(to_abs_parts)
815│ cf = self._flavour.casefold_parts
816│ if (root or drv) if n == 0 else cf(abs_parts[:n]) != cf(to_abs_parts):
817│ formatted = self._format_parsed_parts(to_drv, to_root, to_parts)
→ 818│ raise ValueError("{!r} is not in the subpath of {!r}"
819│ " OR one path is relative and the other is absolute."
820│ .format(str(self), str(formatted)))
821│ return self._from_parsed_parts('', root if n == 1 else '',
822│ abs_parts[n:])
exit status 1
Traceback (most recent call last):
File "/home/runner/ChatGPT-Tinder-Bot/main.py", line 3, in
from src.chatgpt import ChatGPT, DALLE
File "/home/runner/ChatGPT-Tinder-Bot/src/chatgpt.py", line 1, in
from src.models import ModelInterface
File "/home/runner/ChatGPT-Tinder-Bot/src/models.py", line 2, in
import openai
ModuleNotFoundError: No module named 'openai'
Hello team,
I have the following issue on the script. Can you please assist? Thanks a lot!
Job "reply_messages (trigger: cron[minute='*/5', second='0'], next run at: 2023-03-12 13:40:00 UTC)" raised an exception
Traceback (most recent call last):
File "/home/runner/ChatGPT-Tinder-Bot/venv/lib/python3.10/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/home/runner/ChatGPT-Tinder-Bot/main.py", line 53, in reply_messages
response = chatgpt.get_response(content)
TypeError: ChatGPT.get_response() missing 1 required positional argument: 'text'
想詢問是否能讓 auto bot 在察覺聊天內容中包含“約見面”時,停止回應呢
再chat-GPT本體上嘗試了幾次,確實能停止回應(空白回覆),
但在一些正常對話內容時也會不定期觸發此空白回覆
Hello,
I have another error like this:
Job "reply_messages (trigger: cron[minute='*/5', second='0'], next run at: 2023-03-19 00:15:00 UTC)" raised an exception
Traceback (most recent call last):
File "/home/runner/ChatGPT-Tinder-Bot/venv/lib/python3.10/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/home/runner/ChatGPT-Tinder-Bot/main.py", line 53, in reply_messages
response = chatgpt.get_response(content, "bonjour")
TypeError: ChatGPT.get_response() takes 2 positional arguments but 3 were given
Each time i start the script i have this error. How can i fix it?
/home/runner/ChatGPT-Tinder-Bot/venv/lib/python3.10/site-packages/tzlocal/unix.py:183: UserWarning: Can not find any timezone configuration, defaulting to UTC.
warnings.warn("Can not find any timezone configuration, defaulting to UTC.")
您好,程式可以執行,在cron job也成功執行,但是chatgpt並沒有自動回复訊息,想請問是哪裡有問題呢
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.