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

Request to merge the following minor improvements: #2

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

Conversation

KimonArisV
Copy link

  • openai_api_key was asked in main.py but not passed along when needed. The user had to both pass it in the code and UI. Now the user can pass it only in the UI.

  • To allow the user to only pass their openai_api_key in the UI and even be able to run the UI, the embeddings had to go inside the create_db_from_youtube_video_url function. With this change, the user is now able to only interact with the UI and not get any wired errors.

  • Lastly, I increased the number of char allowed for the openai_api_key and the yt url, since the openai_api_key is longer than 50 chars and so are some yt_urls. In those cases when the user tries to paste their string, is not allowed. I increased the limit to 150 chars.

- openai_api_key was asked in main.py but not passed along when needed. The user had to both pass it in the code and UI. Now the user can pass it only in the UI.
- To allow the user to only pass their openai_api_key in the UI and even beeing able to run the UI, the embeddings had to go inside the create_db_from_youtube_video_url function. With this change the user is now able to only interact with the UI and not get any wired errors.
- Lastly I increase the number of char allowed for the openai_api_key and the yt url, since the openai_api_key is longer than 50 chars and so are some yt_urls. In those cases when the user try to paste their string, is not allowed. I increase the limits to 150 chars.
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.

1 participant