aimodels 0.3.8 → 0.3.10
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/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +34 -1
- package/dist/index.mjs +34 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -41,6 +41,8 @@ declare class ModelCollection extends Array<Model> {
|
|
|
41
41
|
fromCreator(creator: string): ModelCollection;
|
|
42
42
|
/** Filter models by minimum context window size */
|
|
43
43
|
withMinContext(tokens: number): ModelCollection;
|
|
44
|
+
/** Get all providers from all models in the collection deduplicated */
|
|
45
|
+
getProviders(): string[];
|
|
44
46
|
}
|
|
45
47
|
interface BaseContext {
|
|
46
48
|
/** The type discriminator */
|
|
@@ -58,6 +60,12 @@ interface TokenContext extends BaseContext {
|
|
|
58
60
|
* When not set, available output tokens may be reduced based on input size.
|
|
59
61
|
*/
|
|
60
62
|
outputIsFixed?: 1;
|
|
63
|
+
/**
|
|
64
|
+
* Extended capabilities beyond the standard model behavior.
|
|
65
|
+
* This is a flexible object that can contain any properties or nested objects
|
|
66
|
+
* related to model-specific extensions (e.g., reasoning, experimental features).
|
|
67
|
+
*/
|
|
68
|
+
extended?: Record<string, any>;
|
|
61
69
|
}
|
|
62
70
|
interface CharacterContext extends BaseContext {
|
|
63
71
|
type: "character";
|
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ declare class ModelCollection extends Array<Model> {
|
|
|
41
41
|
fromCreator(creator: string): ModelCollection;
|
|
42
42
|
/** Filter models by minimum context window size */
|
|
43
43
|
withMinContext(tokens: number): ModelCollection;
|
|
44
|
+
/** Get all providers from all models in the collection deduplicated */
|
|
45
|
+
getProviders(): string[];
|
|
44
46
|
}
|
|
45
47
|
interface BaseContext {
|
|
46
48
|
/** The type discriminator */
|
|
@@ -58,6 +60,12 @@ interface TokenContext extends BaseContext {
|
|
|
58
60
|
* When not set, available output tokens may be reduced based on input size.
|
|
59
61
|
*/
|
|
60
62
|
outputIsFixed?: 1;
|
|
63
|
+
/**
|
|
64
|
+
* Extended capabilities beyond the standard model behavior.
|
|
65
|
+
* This is a flexible object that can contain any properties or nested objects
|
|
66
|
+
* related to model-specific extensions (e.g., reasoning, experimental features).
|
|
67
|
+
*/
|
|
68
|
+
extended?: Record<string, any>;
|
|
61
69
|
}
|
|
62
70
|
interface CharacterContext extends BaseContext {
|
|
63
71
|
type: "character";
|
package/dist/index.js
CHANGED
|
@@ -84,6 +84,10 @@ var ModelCollection = class _ModelCollection extends Array {
|
|
|
84
84
|
return context.total >= tokens;
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
+
/** Get all providers from all models in the collection deduplicated */
|
|
88
|
+
getProviders() {
|
|
89
|
+
return [...new Set(this.flatMap((model) => model.providers))];
|
|
90
|
+
}
|
|
87
91
|
};
|
|
88
92
|
|
|
89
93
|
// src/data/models/openai-models.json
|
|
@@ -753,6 +757,36 @@ var anthropic_models_default = {
|
|
|
753
757
|
outputIsFixed: 1
|
|
754
758
|
},
|
|
755
759
|
aliases: ["claude-3-5-haiku-latest", "claude-3-5-haiku"]
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
id: "claude-3-7-sonnet-20250219",
|
|
763
|
+
name: "Claude 3.7 Sonnet",
|
|
764
|
+
license: "proprietary",
|
|
765
|
+
providers: ["anthropic", "aws", "google"],
|
|
766
|
+
can: [
|
|
767
|
+
"chat",
|
|
768
|
+
"text-in",
|
|
769
|
+
"text-out",
|
|
770
|
+
"img-in",
|
|
771
|
+
"json-out",
|
|
772
|
+
"function-out",
|
|
773
|
+
"reason"
|
|
774
|
+
],
|
|
775
|
+
context: {
|
|
776
|
+
type: "token",
|
|
777
|
+
total: 2e5,
|
|
778
|
+
maxOutput: 8192,
|
|
779
|
+
outputIsFixed: 1,
|
|
780
|
+
extended: {
|
|
781
|
+
reasoning: {
|
|
782
|
+
maxOutput: 64e3
|
|
783
|
+
},
|
|
784
|
+
experimental: {
|
|
785
|
+
maxOutput: 128e3
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
aliases: ["claude-3-7-sonnet-latest", "claude-3-7-sonnet"]
|
|
756
790
|
}
|
|
757
791
|
]
|
|
758
792
|
};
|
|
@@ -1165,7 +1199,6 @@ var cohere_models_default = {
|
|
|
1165
1199
|
"chat",
|
|
1166
1200
|
"text-in",
|
|
1167
1201
|
"text-out",
|
|
1168
|
-
"reason",
|
|
1169
1202
|
"function-out"
|
|
1170
1203
|
],
|
|
1171
1204
|
context: {
|
package/dist/index.mjs
CHANGED
|
@@ -55,6 +55,10 @@ var ModelCollection = class _ModelCollection extends Array {
|
|
|
55
55
|
return context.total >= tokens;
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
+
/** Get all providers from all models in the collection deduplicated */
|
|
59
|
+
getProviders() {
|
|
60
|
+
return [...new Set(this.flatMap((model) => model.providers))];
|
|
61
|
+
}
|
|
58
62
|
};
|
|
59
63
|
|
|
60
64
|
// src/data/models/openai-models.json
|
|
@@ -724,6 +728,36 @@ var anthropic_models_default = {
|
|
|
724
728
|
outputIsFixed: 1
|
|
725
729
|
},
|
|
726
730
|
aliases: ["claude-3-5-haiku-latest", "claude-3-5-haiku"]
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
id: "claude-3-7-sonnet-20250219",
|
|
734
|
+
name: "Claude 3.7 Sonnet",
|
|
735
|
+
license: "proprietary",
|
|
736
|
+
providers: ["anthropic", "aws", "google"],
|
|
737
|
+
can: [
|
|
738
|
+
"chat",
|
|
739
|
+
"text-in",
|
|
740
|
+
"text-out",
|
|
741
|
+
"img-in",
|
|
742
|
+
"json-out",
|
|
743
|
+
"function-out",
|
|
744
|
+
"reason"
|
|
745
|
+
],
|
|
746
|
+
context: {
|
|
747
|
+
type: "token",
|
|
748
|
+
total: 2e5,
|
|
749
|
+
maxOutput: 8192,
|
|
750
|
+
outputIsFixed: 1,
|
|
751
|
+
extended: {
|
|
752
|
+
reasoning: {
|
|
753
|
+
maxOutput: 64e3
|
|
754
|
+
},
|
|
755
|
+
experimental: {
|
|
756
|
+
maxOutput: 128e3
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
aliases: ["claude-3-7-sonnet-latest", "claude-3-7-sonnet"]
|
|
727
761
|
}
|
|
728
762
|
]
|
|
729
763
|
};
|
|
@@ -1136,7 +1170,6 @@ var cohere_models_default = {
|
|
|
1136
1170
|
"chat",
|
|
1137
1171
|
"text-in",
|
|
1138
1172
|
"text-out",
|
|
1139
|
-
"reason",
|
|
1140
1173
|
"function-out"
|
|
1141
1174
|
],
|
|
1142
1175
|
context: {
|