@elasticdash/openai 0.0.1

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.
Files changed (2) hide show
  1. package/README.md +24 -0
  2. package/package.json +42 -0
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ ![GitHub Banner](https://github.com/langfuse/langfuse-js/assets/2834609/d1613347-445f-4e91-9e84-428fda9c3659)
2
+
3
+ # @elasticdash/openai
4
+
5
+ This is the OpenAI integration package of the Langfuse JS SDK containing the `observeOpenAI` wrapper for the OpenAI client to trace generations.
6
+
7
+ ## Packages
8
+
9
+ | Package | NPM | Description | Environments |
10
+ | ------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- | ------------ |
11
+ | [@elasticdash/client](./packages/client) | [![NPM](https://img.shields.io/npm/v/@elasticdash/client.svg)](https://www.npmjs.com/package/@elasticdash/client) | Langfuse API client for universal JavaScript environments | Universal JS |
12
+ | [@elasticdash/tracing](./packages/tracing) | [![NPM](https://img.shields.io/npm/v/@elasticdash/tracing.svg)](https://www.npmjs.com/package/@elasticdash/tracing) | Langfuse instrumentation methods based on OpenTelemetry | Node.js 20+ |
13
+ | [@elasticdash/otel](./packages/otel) | [![NPM](https://img.shields.io/npm/v/@elasticdash/otel.svg)](https://www.npmjs.com/package/@elasticdash/otel) | Langfuse OpenTelemetry export helpers | Node.js 20+ |
14
+ | [@elasticdash/openai](./packages/openai) | [![NPM](https://img.shields.io/npm/v/@elasticdash/openai.svg)](https://www.npmjs.com/package/@elasticdash/openai) | Langfuse integration for OpenAI SDK | Universal JS |
15
+ | [@elasticdash/langchain](./packages/langchain) | [![NPM](https://img.shields.io/npm/v/@elasticdash/langchain.svg)](https://www.npmjs.com/package/@elasticdash/langchain) | Langfuse integration for LangChain | Universal JS |
16
+
17
+ ## Documentation
18
+
19
+ - Docs: https://langfuse.com/docs/sdk/typescript
20
+ - Reference: https://js.reference.langfuse.com
21
+
22
+ ## License
23
+
24
+ [MIT](LICENSE)
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@elasticdash/openai",
3
+ "version": "0.0.1",
4
+ "description": "Langfuse integration for OpenAI SDK",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.mjs",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.mjs",
14
+ "require": "./dist/index.cjs"
15
+ }
16
+ },
17
+ "scripts": {
18
+ "build": "tsup",
19
+ "test": "vitest run",
20
+ "test:watch": "vitest",
21
+ "format": "prettier --write \"src/**/*.ts\"",
22
+ "format:check": "prettier --check \"src/**/*.ts\"",
23
+ "clean": "rm -rf dist"
24
+ },
25
+ "author": "Langfuse",
26
+ "license": "MIT",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/langfuse/langfuse-js.git",
30
+ "directory": "packages/openai"
31
+ },
32
+ "files": [
33
+ "dist"
34
+ ],
35
+ "dependencies": {
36
+ "@elasticdash/core": "workspace:^",
37
+ "@elasticdash/tracing": "workspace:^"
38
+ },
39
+ "devDependencies": {
40
+ "openai": "^5.0.0"
41
+ }
42
+ }