UNPKG

@gentrace/openai

Version:

Gentrace OpenAI v4 plugin for Node.JS

60 lines (50 loc) 3.31 kB
> @gentrace/openai@4.2.3 build /home/runner/work/gentrace-node/gentrace-node/packages/openai > run-s clean typescript:compile rollup:compile > @gentrace/openai@4.2.3 clean /home/runner/work/gentrace-node/gentrace-node/packages/openai > rimraf dist tsconfig.tsbuildinfo > @gentrace/openai@4.2.3 typescript:compile /home/runner/work/gentrace-node/gentrace-node/packages/openai > tsc -p tsconfig.json > @gentrace/openai@4.2.3 rollup:compile /home/runner/work/gentrace-node/gentrace-node/packages/openai > rollup --config rollup.config.mjs  dist/index.js → dist, dist... (!) "this" has been rewritten to "undefined" https://rollupjs.org/troubleshooting/#error-this-is-undefined dist/handlers/simple.js 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { ^ 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } 3: return new (P || (P = Promise))(function (resolve, reject) { ...and 3 other occurrences dist/plugin.js 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { ^ 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } 3: return new (P || (P = Promise))(function (resolve, reject) { ...and 1 other occurrence dist/openai.js 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { ^ 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } 3: return new (P || (P = Promise))(function (resolve, reject) { ...and 9 other occurrences dist/handlers/advanced.js 1: var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { ^ 2: function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } 3: return new (P || (P = Promise))(function (resolve, reject) { ...and 1 other occurrence (!) Unresolved dependencies https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency @gentrace/core (imported by "dist/handlers/simple.js", "dist/plugin.js" and "dist/openai.js") openai (imported by "dist/handlers/simple.js", "dist/openai.js" and "dist/handlers/advanced.js") openai/resources/beta/chat/chat (imported by "dist/handlers/simple.js" and "dist/handlers/advanced.js") mustache (imported by "dist/openai.js") openai/resources/beta/chat/completions (imported by "dist/openai.js") openai/lib/parser (imported by "dist/openai.js") (!) Mixing named and default exports https://rollupjs.org/configuration-options/#output-exports The following entry modules are using named and default exports together: dist/index.js Consumers of your bundle will have to use chunk.default to access their default export, which may not be what you want. Use `output.exports: "named"` to disable this warning. created dist, dist in 241ms