-
Notifications
You must be signed in to change notification settings - Fork 644
Feature: Add API key loading from secrets.toml for chat widget #630
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
base: main
Are you sure you want to change the base?
Feature: Add API key loading from secrets.toml for chat widget #630
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshlavroff can you use tomli instead of tomllib? Also is there error testing in case secrets.toml doesn't exist?
@shivam-singhal yes if there's no secrets.toml or no API key included it will ask for an API key when you try to use the widget. I will update to tomli today |
@shivam-singhal I've updated the PR to use tomli instead of tomllib |
@shivam-singhal just checking back in on this, are there any other changes that need to be made? |
@therealrinku thank you for pointing this out! I've resolved the issue |
6ac1dad
to
bdb2c4e
Compare
name: Pull Request
about: Create a pull request to contribute to the project
title: ''
labels: ''
assignees: ''
Description of Changes
API keys for the chat component can now be loaded from a project's
secrets.toml
file. Keys that are entered during a session are not saved and will remain only in the sessionStorage until the app is closed.Type of Change
Testing
Code has been tested against the currently present chat example in the Iris example project.
2025-04-07.16-49-28.mp4
Checklist