Skip to content

Update LLM/API key error logs#190

Merged
barun-saha merged 2 commits intomainfrom
visual
Dec 30, 2025
Merged

Update LLM/API key error logs#190
barun-saha merged 2 commits intomainfrom
visual

Conversation

@barun-saha
Copy link
Owner

@barun-saha barun-saha commented Dec 30, 2025

Closes #188.

Summary by CodeRabbit

  • Bug Fixes
    • Simplified authentication error message for LLM access (now a concise unified message without exception details) and updated embedded link text/formatting.
    • Suppressed internal error logging in streaming LLM handling while preserving existing error behavior.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 30, 2025

📝 Walkthrough

Walkthrough

Updated LLM authentication error messaging in app.py to a concise, unified string (removing exception details) and removed runtime error logging from an exception handler in src/slidedeckai/helpers/llm_helper.py while still re-raising the exception.

Changes

Cohort / File(s) Summary
Auth error message
app.py
Replaced previous multi-part/verbose authentication error text with a single unified, more concise string that no longer embeds exception details; link text/formatting updated.
Exception logging removed
src/slidedeckai/helpers/llm_helper.py
Removed/logging call inside the except block of stream_litellm_completion; the exception is still re-raised unchanged.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 I nibbled bytes and stitched a line,

Shorter words to make things fine.
No noisy logs to hop about,
Just tidy errors—soft and stout.
🥕✨

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: updating error messages related to LLM/API key authentication, which aligns with the core objective of issue #188.
Linked Issues check ✅ Passed The PR directly addresses issue #188's requirement to provide clearer error messages for missing or incorrect API keys by replacing raw exception text with more informative, user-friendly messages.
Out of Scope Changes check ✅ Passed All changes are scoped to LLM/API key error handling in app.py and llm_helper.py, directly supporting the objective of improving error messages for authentication issues.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d3e3b00 and c7f2afc.

📒 Files selected for processing (2)
  • app.py
  • src/slidedeckai/helpers/llm_helper.py
💤 Files with no reviewable changes (1)
  • src/slidedeckai/helpers/llm_helper.py
🚧 Files skipped from review as they are similar to previous changes (1)
  • app.py
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: test (3.12)
  • GitHub Check: test (3.11)
  • GitHub Check: test (3.10)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link

codecov bot commented Dec 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 72225b3 and d3e3b00.

📒 Files selected for processing (2)
  • app.py
  • src/slidedeckai/helpers/llm_helper.py
🧰 Additional context used
📓 Path-based instructions (1)
**/*.py

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

**/*.py: Use single quotes for strings in Python code unless double quotes are necessary; use triple double quotes for docstrings
Include type hints for parameters and return types when defining functions
Use f-strings for string formatting instead of % or .format() (except for logs)
Use Google-style docstrings for all functions and classes
Use two blank lines before top-level function and class definitions; use one blank line between methods inside a class
Enforce maximum line length of 100 characters; use brackets to break long lines and wrap long strings or expressions inside parentheses
Split long lines at braces with each parameter on a new line, indented inside parentheses

Files:

  • src/slidedeckai/helpers/llm_helper.py
  • app.py
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: test (3.11)
  • GitHub Check: test (3.10)
  • GitHub Check: test (3.12)

@barun-saha barun-saha merged commit 402269e into main Dec 30, 2025
7 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.

Display more informative error message when API keys are missing or wrong

1 participant