Skip to content

Granularly catch wrong API key and model name errors#20

Merged
ToothyDev merged 1 commit into
masterfrom
fix/better-error-handling
May 19, 2026
Merged

Granularly catch wrong API key and model name errors#20
ToothyDev merged 1 commit into
masterfrom
fix/better-error-handling

Conversation

@ToothyDev

Copy link
Copy Markdown
Member

Addresses too broad exception handling by specifically matching error codes given by the API, and logging a user-readable and actionable error. Currently, invalid API keys and wrong model names are being matched like this, expandable to more later.

Closes #11

@ToothyDev ToothyDev requested a review from Gaming12846 May 18, 2026 18:00
@ToothyDev ToothyDev merged commit 6771733 into master May 19, 2026
4 checks passed
@ToothyDev ToothyDev deleted the fix/better-error-handling branch May 19, 2026 17:43
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.

[BUG] IO issue when the API key is invalid

2 participants