@gajae-code/ai 0.6.4 → 0.6.5
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/package.json +2 -2
- package/src/models.ts +12 -5
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.5",
|
|
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.5",
|
|
47
47
|
"openai": "^6.36.0",
|
|
48
48
|
"partial-json": "^0.1.7",
|
|
49
49
|
"zod": "4.4.3"
|
package/src/models.ts
CHANGED
|
@@ -33,14 +33,21 @@ function getProviderModels(provider: GeneratedProvider): Map<string, Model<Api>>
|
|
|
33
33
|
* Mythos rejecting forced tool use) without a full regeneration.
|
|
34
34
|
*/
|
|
35
35
|
function applyBundledCompatDefaults(model: Model<Api>): Model<Api> {
|
|
36
|
+
let normalized = model;
|
|
37
|
+
if (normalized.id === "minimax-m3" && normalized.name === "MiniMax M3") {
|
|
38
|
+
normalized = { ...normalized, name: "MiniMax-M3" };
|
|
39
|
+
}
|
|
36
40
|
if (
|
|
37
|
-
(
|
|
38
|
-
isClaudeForcedToolChoiceIncapableModelId(
|
|
39
|
-
(
|
|
41
|
+
(normalized.api === "anthropic-messages" || normalized.api === "bedrock-converse-stream") &&
|
|
42
|
+
isClaudeForcedToolChoiceIncapableModelId(normalized.id) &&
|
|
43
|
+
(normalized.compat as { toolChoiceSupport?: string } | undefined)?.toolChoiceSupport === undefined
|
|
40
44
|
) {
|
|
41
|
-
return {
|
|
45
|
+
return {
|
|
46
|
+
...normalized,
|
|
47
|
+
compat: { ...(normalized.compat ?? {}), toolChoiceSupport: "auto" } as Model<Api>["compat"],
|
|
48
|
+
};
|
|
42
49
|
}
|
|
43
|
-
return
|
|
50
|
+
return normalized;
|
|
44
51
|
}
|
|
45
52
|
|
|
46
53
|
export type GeneratedProvider = keyof typeof MODELS;
|