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

Disable AI buttons if AI API key is invalid #106

Merged
merged 3 commits into from
Dec 26, 2024
Merged

Conversation

CodeShady
Copy link
Contributor

@CodeShady CodeShady commented Nov 26, 2024

Hey again, @UdaraJay! 👋

This PR fixes issue #85.

No API key set

Screenshot 2024-11-26 at 2 44 56 PM Screenshot 2024-11-26 at 2 05 19 PM

API key set

Screenshot 2024-11-26 at 2 45 38 PM Screenshot 2024-11-26 at 2 06 29 PM

In AIContext.js, the checkApiKeyValidity() function is designed for future use with Regex to validate input keys against OpenAPI or Ollama key formats.


@UdaraJay, would your app benefit if this button's icon was changed to a "spark" icon to indicate it's AI features? (✨)

Screenshot 2024-11-26 at 2 07 44 PM

The Unstoppable Rise of Spark ✨, as Ai’s Iconic Symbol

@CodeShady CodeShady changed the title Disable "Reflect" button if AI API key is null Disable AI buttons if AI API key is invalid or null Nov 26, 2024
@CodeShady CodeShady changed the title Disable AI buttons if AI API key is invalid or null Disable AI buttons if AI API key is invalid Nov 26, 2024
@UdaraJay
Copy link
Owner

Thanks Finn!

Will consider changing the icon for reflections~ the current icon is a "mirror" but it's not instantly clear...

@UdaraJay UdaraJay merged commit 234aa90 into UdaraJay:main Dec 26, 2024
2 checks passed
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.

Disable buttons for AI-related actions when no API key is configured
2 participants