Giter Site home page Giter Site logo

chatgpt-tinder-bot's People

Contributors

pjwang0710 avatar theexplainthis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

chatgpt-tinder-bot's Issues

關於PREFIX的內容

教學文章的最後有提到,/src/dialog.py裡面的PREFIX可以決定機器人的回應模式,對於這一點我有幾個問題想請教:
1.PREFIX的內容可以打中文嗎?
2.PREFIX的內容是將我們需求的風格講給chat gpt,然後chat gpt就會理解並且說話變成我們指定的風格(或個性)嗎?
3.承2,若是的話,能不能在PREFIX的內容裡直接打"花花公子"或"省話一哥"就好?

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):

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)

Bot is not working,

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'

TypeError: ChatGPT.get_response() missing 1 required positional argument: 'text'

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本體上嘗試了幾次,確實能停止回應(空白回覆),
但在一些正常對話內容時也會不定期觸發此空白回覆

Job "reply_messages (trigger: cron[minute='*/5', second='0'], next run at: 2023-03-19 00:15:00 UTC)" raised an exception

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

Timezone configuration missing

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.")

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.