ai 3.2.3 → 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 +2 -2
package/dist/index.js
CHANGED
@@ -1976,10 +1976,11 @@ var DefaultProviderRegistry = class {
|
|
1976
1976
|
return provider;
|
1977
1977
|
}
|
1978
1978
|
splitId(id) {
|
1979
|
-
|
1979
|
+
const index = id.indexOf(":");
|
1980
|
+
if (index === -1) {
|
1980
1981
|
throw new InvalidModelIdError({ id });
|
1981
1982
|
}
|
1982
|
-
return id.
|
1983
|
+
return [id.slice(0, index), id.slice(index + 1)];
|
1983
1984
|
}
|
1984
1985
|
languageModel(id) {
|
1985
1986
|
var _a, _b;
|