Skip to content

Commit 402269e

Browse files
authored
Merge pull request #190 from barun-saha/visual
Update LLM/API key error logs
2 parents 72225b3 + c7f2afc commit 402269e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,10 @@ def progress_callback(current_progress):
480480
except Exception as ex:
481481
if 'litellm.AuthenticationError' in str(ex):
482482
handle_error(
483-
f'LLM API authentication failed: {ex}'
484-
'\nMake sure that you have provided a valid, correct API key.'
485-
' Read **[how to get free LLM API keys](https://github.com/barun-saha/slide-deck-ai?tab=readme-ov-file#unmatched-flexibility-choose-your-ai-brain)**.',
483+
'LLM API authentication failed. Make sure that you have provided'
484+
' a valid, correct API key. Read **[how to get free LLM API keys]'
485+
'(https://github.com/barun-saha/slide-deck-ai?tab=readme-ov-file'
486+
'#unmatched-flexibility-choose-your-ai-brain)**.',
486487
True
487488
)
488489
else:

src/slidedeckai/helpers/llm_helper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ def stream_litellm_completion(
216216
yield choice.message.content
217217

218218
except Exception as e:
219-
logger.error('Error in LiteLLM completion: %s', e)
220219
raise
221220

222221

0 commit comments

Comments
 (0)