@gullabs/google 0.10.0 → 0.10.1
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/README.md +3 -5
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -22,10 +22,8 @@ pnpm add @gullabs/google @gullabs/core @google/genai
|
|
|
22
22
|
| `isGeminiCapacityError(err)` | Detects Gemini Flex shared-capacity errors for built-in fallback |
|
|
23
23
|
| `geminiModelDescriptors`, `gemmaModelDescriptors`, `defaultGeminiRegistry` | Built-in model descriptors + pre-built registry |
|
|
24
24
|
| `geminiPricingSource()`, `GEMINI_PRICING`, `TIER_FACTOR` | Built-in Gemini pricing snapshot and tier-factor map |
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
| `GoogleFileStore` | Files API: upload + poll ACTIVE + delete |
|
|
28
|
-
| `FileDeleteOptions` | `{ failClosed?, signal? }` — opt-in fail-closed delete (parity with `@gullabs/xai`) |
|
|
25
|
+
| `GoogleFileStore` | Files API: upload + poll ACTIVE + delete |
|
|
26
|
+
| `FileDeleteOptions` | `{ failClosed?, signal? }` — opt-in fail-closed delete (parity with `@gullabs/xai`) |
|
|
29
27
|
|
|
30
28
|
## File store delete modes
|
|
31
29
|
|
|
@@ -67,7 +65,7 @@ const result = await client.generate(
|
|
|
67
65
|
- `output.jsonSchema` → `responseMimeType: 'application/json'` + verbatim `responseSchema` when native structured output is enabled; the engine returns parsed output and `outputParsed` without validating shape
|
|
68
66
|
- `providerOptions.google.*` → typed provider-extension lane for admitted keys such as `cachedContent`, `safetySettings`, and exact tool declarations
|
|
69
67
|
- Usage: `promptTokenCount`→`inputTokens`, `candidatesTokenCount`+`thoughtsTokenCount`→`outputTokens` (GROSS)
|
|
70
|
-
- Errors: `401
|
|
68
|
+
- Errors: `401` and a bare `403` default to `invalid_auth`; `429`→`rate_limited`; `5xx`→`server`; timeouts; Gemini safety blocks are a 200-path `content_filter` (`promptFeedback.blockReason` / no candidates), not an HTTP 403
|
|
71
69
|
|
|
72
70
|
## Strict model-config expectations
|
|
73
71
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gullabs/google",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Gemini provider adapter for any-llm — Flex tier, thinking capture, structured output, error classification.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/
|
|
9
|
+
"url": "git+https://github.com/GulLabs/any-llm.git",
|
|
10
10
|
"directory": "packages/google"
|
|
11
11
|
},
|
|
12
12
|
"main": "./dist/index.cjs",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"zod": "^4.4.3",
|
|
27
|
-
"@gullabs/core": "0.12.
|
|
27
|
+
"@gullabs/core": "0.12.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@google/genai": "^1 || ^2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@google/genai": "^2.16.0",
|
|
34
|
-
"@gullabs/testing": "0.6.
|
|
34
|
+
"@gullabs/testing": "0.6.1"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=20.9.0"
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"homepage": "https://github.com/
|
|
55
|
-
"bugs": "https://github.com/
|
|
54
|
+
"homepage": "https://github.com/GulLabs/any-llm/tree/main/packages/google#readme",
|
|
55
|
+
"bugs": "https://github.com/GulLabs/any-llm/issues",
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "tsup"
|
|
58
58
|
}
|