-
Notifications
You must be signed in to change notification settings - Fork 11
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
chore(playroom): mistica-ai #1282
Conversation
Size stats
|
Accessibility report ℹ️ You can run this locally by executing |
Deploy preview for mistica-web ready! ✅ Preview Built with commit 2b13fa2. |
playroom/patch-playroom.sh
Outdated
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.
This is a script that helps when changing anything in playroom patch.
- Gets the playroom version in package.json
- Creates a temporary directory, clones the playroom repo and checkout the tag associated with the version
- Applies our patch to the playroom repo and commit it
- Opens vscode in that directory so you can change anything
- When you've finished the changes you need to run the command the script tells you to apply the changes again to mistica-web repo
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.
Consider adding a script in package.json to run this script. Something like: yarn edit-mistica-ai
Can the patch command be executed multiple times? Eg, while developing a mistica-ai feature
+const useWithAiEnabled = () => { | ||
+ const [canUseAi, setCanUseAi] = useState(false); | ||
+ useEffect(() => { | ||
+ fetch(`${aiBaseUrl}/health-check`).then((response) => { |
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.
only show the AI assistant panel when the backend service can be reached (for the moment this will only happen inside the VPN)
No description provided.