Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dynamic JSON modification at the beginning of openaiBot.py #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Yubo-Shao
Copy link
Contributor

Added a simple dynamic JSON update that will be invoked at the beginning of the program's initiation.

This doesn't apply to new chatbot instances, which means the JSON won't be dynamically updated when a new chatbot instance is created. The purpose is to prevent repetitive database access, In the future, we can make a multithreaded thing which updates the JSON by reading from the database after every certain period of time.

Feel free to further improve this fix, it is indeed a temporary solution.

Copy link
Contributor

@yhbcode000 yhbcode000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] this part have to be enum need to design a way to get all bus stop from the list.
2 participants