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

[Bug]: --use-ai flag silently fails and applies default template without AI customization #8

Open
yunks128 opened this issue Sep 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yunks128
Copy link
Contributor

yunks128 commented Sep 5, 2024

Checked for duplicates

Have you checked for duplicate issue tickets?

Yes

Describe the bug

When the --use-ai flag is used in slim-cli, if the AI feature fails (e.g., due to a missing API key), a warning is issued, but the tool proceeds by applying the default best practice template without AI customization. This behavior is misleading as users expect AI customization when the flag is used.

What did you expect?

An error should be raised when the --use-ai flag fails (e.g., due to missing or invalid API key), halting execution instead of applying the default template. Users should be notified that AI customization has not been applied.

Reproducible steps

  1. Run slim --use-ai in the terminal.
  2. Ensure AI customization fails (e.g., by not providing a valid API key).
  3. Observe that a warning is displayed, but the command proceeds and applies the default template without AI-based changes.

What is your environment?

  • slim-cli Version: 0.0.4
  • Operating System: macOS
@yunks128 yunks128 added the bug Something isn't working label Sep 5, 2024
@yunks128 yunks128 self-assigned this Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant