@gajae-code/ai 0.6.2 → 0.6.4
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
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.6.4] - 2026-06-20
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Fixed argument mis-attribution in the OpenAI-compatible Responses API streaming decoder when a single response emits multiple tool-call items. The decoder buffered streamed argument deltas against a single most-recent item/block slot, so interleaved or back-to-back `function_call`/`custom_tool_call` argument deltas could be applied to the wrong item — finalizing a tool call with another call's arguments (e.g. one tool's payload landing on a different tool's schema and tripping validation). Streamed deltas now accumulate against a per-item buffer keyed on stable item identity (`item_id` primary; positional `output_index` only when finite), each block records its content index at registration time, and finalization writes onto the same block stored in the message content while reading only the matching item's buffer. Single-tool-call streams, reasoning/text streaming, and the Chat Completions path are unchanged.
|
|
10
|
+
|
|
5
11
|
## [0.6.2] - 2026-06-19
|
|
6
12
|
### Added
|
|
7
13
|
|
|
@@ -228,6 +228,8 @@ export interface ModelsDevProviderDescriptor {
|
|
|
228
228
|
* Can return null to skip the model, or an array to emit multiple models.
|
|
229
229
|
*/
|
|
230
230
|
transformModel?: (model: Model<Api>, modelId: string, raw: ModelsDevModel) => Model<Api> | Model<Api>[] | null;
|
|
231
|
+
/** Optional static rows appended after mapped models. Used only for official provider catalogs missing from models.dev. */
|
|
232
|
+
appendModels?: readonly Model<Api>[];
|
|
231
233
|
/**
|
|
232
234
|
* Optional: override the API type per-model.
|
|
233
235
|
* Called with (modelId, raw). Return the API type to use.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@gajae-code/ai",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.4",
|
|
5
5
|
"description": "Unified LLM API with automatic model discovery and provider configuration",
|
|
6
6
|
"homepage": "https://gaebal-gajae.dev",
|
|
7
7
|
"author": "Yeachan-Heo",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@anthropic-ai/sdk": "^0.94.0",
|
|
45
45
|
"@bufbuild/protobuf": "^2.12.0",
|
|
46
|
-
"@gajae-code/utils": "0.6.
|
|
46
|
+
"@gajae-code/utils": "0.6.4",
|
|
47
47
|
"openai": "^6.36.0",
|
|
48
48
|
"partial-json": "^0.1.7",
|
|
49
49
|
"zod": "4.4.3"
|
package/src/model-thinking.ts
CHANGED
|
@@ -409,7 +409,7 @@ function applyGeneratedModelPolicy(model: ApiModel<Api>): void {
|
|
|
409
409
|
// 512K. The stale 512K survives generate-models (provider-scoped models bypass the
|
|
410
410
|
// models.dev refresh in applyGlobalModelsDevFallback), tripping auto-compaction /
|
|
411
411
|
// context-cap thresholds 2x early on MiniMax sessions. Pin to the true 1M.
|
|
412
|
-
if (model.id === "minimax-m3") {
|
|
412
|
+
if (model.provider !== "opencode-go" && model.id === "minimax-m3") {
|
|
413
413
|
model.contextWindow = 1_000_000;
|
|
414
414
|
}
|
|
415
415
|
}
|