opik 0.2.1 → 0.3.0
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/README.md +7 -5
- package/dist/{Client-W52L9RIs.d.cts → Client-CI4BzUKl.d.cts} +1 -1
- package/dist/{Client-W52L9RIs.d.ts → Client-CI4BzUKl.d.ts} +1 -1
- package/dist/{chunk-POLPT3OJ.js → chunk-VUPTLXYD.js} +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/vercel/index.cjs +3 -3
- package/dist/vercel/index.d.cts +1 -1
- package/dist/vercel/index.d.ts +1 -1
- package/dist/vercel/index.js +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -23,11 +23,13 @@ npm install opik
|
|
|
23
23
|
|
|
24
24
|
You can configure the Opik client using environment variables.
|
|
25
25
|
|
|
26
|
+
`.env` file:
|
|
27
|
+
|
|
26
28
|
```bash
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
OPIK_API_KEY="your-api-key"
|
|
30
|
+
OPIK_URL_OVERRIDE="https://www.comet.com/opik/api"
|
|
31
|
+
OPIK_PROJECT_NAME="your-project-name"
|
|
32
|
+
OPIK_WORKSPACE_NAME="your-workspace-name"
|
|
31
33
|
```
|
|
32
34
|
|
|
33
35
|
Or you can pass the configuration to the Opik client constructor.
|
|
@@ -37,7 +39,7 @@ import { Opik } from "opik";
|
|
|
37
39
|
|
|
38
40
|
const client = new Opik({
|
|
39
41
|
apiKey: "<your-api-key>",
|
|
40
|
-
|
|
42
|
+
apiUrl: "https://www.comet.com/opik/api",
|
|
41
43
|
projectName: "<your-project-name>",
|
|
42
44
|
workspaceName: "<your-workspace-name>",
|
|
43
45
|
});
|