@blaxel/llamaindex 0.2.20 → 0.2.21-preview.47

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/model.js CHANGED
@@ -53,9 +53,9 @@ const blModel = async (model, options) => {
53
53
  const llm = new google_1.Gemini({
54
54
  apiKey: core_1.settings.token,
55
55
  model: modelData?.spec?.runtime?.model,
56
- requestOptions: {
56
+ httpOptions: {
57
57
  baseUrl: url,
58
- customHeaders: core_1.settings.headers,
58
+ headers: core_1.settings.headers,
59
59
  },
60
60
  ...options,
61
61
  });
package/dist/telemetry.js CHANGED
@@ -1,9 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const core_1 = require("@blaxel/core");
3
4
  const instrumentation_1 = require("@opentelemetry/instrumentation");
4
- const instrumentation_llamaindex_1 = require("@traceloop/instrumentation-llamaindex");
5
- const llamaindex = new instrumentation_llamaindex_1.LlamaIndexInstrumentation();
6
- llamaindex.enable();
7
- (0, instrumentation_1.registerInstrumentations)({
8
- instrumentations: [llamaindex],
5
+ // Safely initialize LlamaIndex telemetry instrumentation
6
+ async function initializeTelemetry() {
7
+ try {
8
+ const { LlamaIndexInstrumentation } = await import("@traceloop/instrumentation-llamaindex");
9
+ const llamaindex = new LlamaIndexInstrumentation();
10
+ // Try to enable the instrumentation
11
+ llamaindex.enable();
12
+ (0, instrumentation_1.registerInstrumentations)({
13
+ instrumentations: [llamaindex],
14
+ });
15
+ }
16
+ catch (error) {
17
+ // Log the error but don't crash the application
18
+ core_1.logger.warn("LlamaIndex telemetry instrumentation failed to initialize:", error instanceof Error ? error.message : String(error));
19
+ core_1.logger.warn("Continuing without LlamaIndex-specific telemetry...");
20
+ }
21
+ }
22
+ // Initialize telemetry asynchronously
23
+ initializeTelemetry().catch((error) => {
24
+ core_1.logger.warn("Failed to initialize telemetry:", error instanceof Error ? error.message : String(error));
9
25
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/llamaindex",
3
- "version": "0.2.20",
3
+ "version": "0.2.21-preview.47",
4
4
  "description": "Blaxel SDK for TypeScript",
5
5
  "license": "MIT",
6
6
  "author": "Blaxel, INC (https://blaxel.ai)",
@@ -53,21 +53,21 @@
53
53
  "dist"
54
54
  ],
55
55
  "dependencies": {
56
- "@llamaindex/anthropic": "^0.3.4",
57
- "@llamaindex/core": "0.6.9",
58
- "@llamaindex/google": "0.3.2",
59
- "@llamaindex/mistral": "^0.1.3",
60
- "@llamaindex/openai": "^0.3.5",
61
- "@opentelemetry/instrumentation": "^0.200.0",
62
- "@traceloop/instrumentation-llamaindex": "^0.13.0",
63
- "llamaindex": "^0.11.6",
64
- "@blaxel/core": "0.2.20"
56
+ "@llamaindex/anthropic": "^0.3.15",
57
+ "@llamaindex/core": "0.6.13",
58
+ "@llamaindex/google": "0.3.12",
59
+ "@llamaindex/mistral": "^0.1.13",
60
+ "@llamaindex/openai": "^0.4.7",
61
+ "@opentelemetry/instrumentation": "^0.203.0",
62
+ "@traceloop/instrumentation-llamaindex": "^0.14.0",
63
+ "llamaindex": "^0.11.13",
64
+ "@blaxel/core": "0.2.21-preview.47"
65
65
  },
66
66
  "devDependencies": {
67
- "@eslint/js": "^9.26.0",
68
- "eslint": "^9.27.0",
67
+ "@eslint/js": "^9.30.1",
68
+ "eslint": "^9.30.1",
69
69
  "typescript": "^5.0.0",
70
- "typescript-eslint": "^8.31.1"
70
+ "typescript-eslint": "^8.36.0"
71
71
  },
72
72
  "scripts": {
73
73
  "lint": "eslint src/",