@ampt/ai 2.0.4 → 2.0.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.cjs +7 -0
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -54876,6 +54876,13 @@ async function translate(input, options) {
|
|
|
54876
54876
|
throw err;
|
|
54877
54877
|
}
|
|
54878
54878
|
}
|
|
54879
|
+
|
|
54880
|
+
// src/index.ts
|
|
54881
|
+
if (process.env.AMPT_RUNTIME_NAME === "nodejs18-beta") {
|
|
54882
|
+
console.error(
|
|
54883
|
+
'@ampt/ai requires the nodejs18 runtime. Please add "runtime": "nodejs18" to the "ampt" section of your package.json.'
|
|
54884
|
+
);
|
|
54885
|
+
}
|
|
54879
54886
|
// Annotate the CommonJS export names for ESM import in node:
|
|
54880
54887
|
0 && (module.exports = {
|
|
54881
54888
|
ChatMessage,
|
package/dist/index.js
CHANGED
|
@@ -42130,6 +42130,13 @@ async function translate(input, options) {
|
|
|
42130
42130
|
throw err;
|
|
42131
42131
|
}
|
|
42132
42132
|
}
|
|
42133
|
+
|
|
42134
|
+
// src/index.ts
|
|
42135
|
+
if (process.env.AMPT_RUNTIME_NAME === "nodejs18-beta") {
|
|
42136
|
+
console.error(
|
|
42137
|
+
'@ampt/ai requires the nodejs18 runtime. Please add "runtime": "nodejs18" to the "ampt" section of your package.json.'
|
|
42138
|
+
);
|
|
42139
|
+
}
|
|
42133
42140
|
export {
|
|
42134
42141
|
ChatMessage,
|
|
42135
42142
|
ModelType,
|