Skip to content

feat: add actionable API error hints - #19

Merged
Thakay merged 1 commit into
Thakay:mainfrom
sb123sb123:feat/16-api-error-hints
Oct 5, 2026
Merged

Thakay merged 1 commit into
Thakay:mainfrom
sb123sb123:feat/16-api-error-hints

Conversation

@sb123sb123

Copy link
Copy Markdown
Contributor

Summary

Keep the existing runtime error text and exit status, then add an actionable hint for model lookup errors, quota and rate-limit responses, service 5xx errors, and connection refused on a localhost or loopback endpoint. Preserve 401 handling and leave other errors without a hint.

Related issue

Closes #16

Type of change

  • Bug fix (fixes a problem without changing intended behavior)
  • New feature (adds functionality without breaking existing usage)
  • Breaking change (changes existing flags, environment variables, output or exit codes)
  • Documentation only
  • Tests, CI, build or refactoring (no user facing change)

Checklist

  • I added or updated tests for this change.
  • make test and make lint pass locally.
  • I added an entry under ## [Unreleased] in CHANGELOG.md for user facing changes.
  • I updated the docs (README.md, aiterm -h help text) where needed.
  • My commit and pull request title follow Conventional Commits.

Local Go tests and lint were not run; only about 62 MiB was free on the designated G: workspace.

@Thakay
Thakay merged commit 9a48739 into Thakay:main Oct 5, 2026
10 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.

Friendlier hints for common API errors

2 participants