Mike Canavan PRO
appl044
·
AI & ML interests
None yet
Recent Activity
liked
a model
about 1 month ago
microsoft/Phi-3-vision-128k-instruct
Organizations
appl044's activity
Apply for community grant: Personal project
2
#5 opened over 1 year ago
by
appl044
Title: Improve set_openai_api_key function with asynchronous programming, error handling, and modularity Description: This pull request introduces several improvements to the set_openai_api_key function in the final.py file, making it more maintainable, efficient, and easier to understand. The changes include: Asynchronous programming: The updated set_openai_api_key function now uses asynchronous programming (with async/await) to avoid blocking the main thread and improve the application's performance. Error handling: The new version of the function includes error handling to ensure that the API key is valid and properly set for each component. This can help prevent issues when making requests to the OpenAI API. Modularity: Instead of directly setting the API key for each component within the set_openai_api_key function, separate functions have been created for each component that sets its API key. This makes the code more modular and easier to maintain. Code documentation: Comments and docstrings have been added to the function to explain its purpose, inputs, outputs, and any side effects. This makes the code more readable and maintainable. Additionally, the second openai_api_key_textbox.change() method call has been updated to use the new asynchronous set_openai_api_key function with a lambda function. These changes align the set_openai_api_key function with modern programming best practices and ensure that the OpenAI API key is properly set for all necessary components in the application, allowing them to make requests to the OpenAI API.
2
#4 opened over 1 year ago
by
charbaaz356
Please paste your OpenAI key from openai.com to use this app.
7
#3 opened almost 2 years ago
by
Vlad135
Need more support language
1
#2 opened almost 2 years ago
by
tridragonevo
Hi Mike
1
#1 opened almost 2 years ago
by
JavaFXpert
Store the OpenAI key in localStorage so it persists page refresh?
3
#1 opened almost 2 years ago
by
julien-c
Store the OpenAI key in localStorage so it persists page refresh?
3
#1 opened almost 2 years ago
by
julien-c