ai 3.2.4 → 3.2.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/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1887,10 +1887,11 @@ var DefaultProviderRegistry = class {
|
|
1887
1887
|
return provider;
|
1888
1888
|
}
|
1889
1889
|
splitId(id) {
|
1890
|
-
|
1890
|
+
const index = id.indexOf(":");
|
1891
|
+
if (index === -1) {
|
1891
1892
|
throw new InvalidModelIdError({ id });
|
1892
1893
|
}
|
1893
|
-
return id.
|
1894
|
+
return [id.slice(0, index), id.slice(index + 1)];
|
1894
1895
|
}
|
1895
1896
|
languageModel(id) {
|
1896
1897
|
var _a, _b;
|