llm-errors 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ All notable changes to this project are documented here. The format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project adheres
|
|
5
5
|
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [0.1.2] - 2026-06-04
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Published README package-status badges, download visibility and release notes
|
|
12
|
+
to the npm package page.
|
|
13
|
+
|
|
14
|
+
## [0.1.1] - 2026-06-03
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Added OpenAI-compatible provider keywords for DeepSeek, Groq and OpenRouter
|
|
19
|
+
discovery in npm and package metadata.
|
|
20
|
+
|
|
7
21
|
## [0.1.0] - 2026-06-03
|
|
8
22
|
|
|
9
23
|
### Added
|
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# llm-errors
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/llm-errors)
|
|
4
|
+
[](https://www.npmjs.com/package/llm-errors)
|
|
5
|
+
[](https://github.com/slegarraga/llm-errors/actions/workflows/ci.yml)
|
|
6
|
+
[](./LICENSE)
|
|
7
|
+
[](./package.json)
|
|
8
|
+
|
|
3
9
|
> Normalize OpenAI, Anthropic and Gemini API errors into one shape: category, retryable flag and `Retry-After` delay. **Zero dependencies.**
|
|
4
10
|
|
|
5
11
|
Every LLM provider fails differently. OpenAI nests `{ error: { type, code, param } }`, Anthropic wraps `{ type: "error", error: { type } }`, Gemini speaks Google RPC status strings, and each puts retry hints in a different place. `llm-errors` collapses all of that into a single, predictable object so your retry and error-handling code stays provider-agnostic.
|
package/package.json
CHANGED