@llmops/app 0.1.2-beta.2 → 0.1.2

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 CHANGED
@@ -13409,22 +13409,26 @@ const createRequestGuardMiddleware = () => {
13409
13409
  c.set("configId", headers["data"]["x-llmops-config"]);
13410
13410
  c.set("envSec", headers["data"]["x-llmops-environment"]);
13411
13411
  await next();
13412
- } else await (0, hono_cors.cors)({
13413
- origin: "*",
13414
- allowMethods: [
13415
- "GET",
13416
- "POST",
13417
- "PUT",
13418
- "DELETE",
13419
- "OPTIONS"
13420
- ],
13421
- allowHeaders: [
13422
- "Content-Type",
13423
- "Authorization",
13424
- "x-llmops-config",
13425
- "x-llmops-environment"
13426
- ]
13427
- })(c, next);
13412
+ } else {
13413
+ c.set("configId", headers["data"]["x-llmops-config"]);
13414
+ c.set("envSec", headers["data"]["x-llmops-environment"]);
13415
+ await (0, hono_cors.cors)({
13416
+ origin: "*",
13417
+ allowMethods: [
13418
+ "GET",
13419
+ "POST",
13420
+ "PUT",
13421
+ "DELETE",
13422
+ "OPTIONS"
13423
+ ],
13424
+ allowHeaders: [
13425
+ "Content-Type",
13426
+ "Authorization",
13427
+ "x-llmops-config",
13428
+ "x-llmops-environment"
13429
+ ]
13430
+ })(c, next);
13431
+ }
13428
13432
  else
13429
13433
  /**
13430
13434
  * @todo Refactor this to give OpenAI specific response.
package/dist/index.mjs CHANGED
@@ -13383,22 +13383,26 @@ const createRequestGuardMiddleware = () => {
13383
13383
  c.set("configId", headers["data"]["x-llmops-config"]);
13384
13384
  c.set("envSec", headers["data"]["x-llmops-environment"]);
13385
13385
  await next();
13386
- } else await cors({
13387
- origin: "*",
13388
- allowMethods: [
13389
- "GET",
13390
- "POST",
13391
- "PUT",
13392
- "DELETE",
13393
- "OPTIONS"
13394
- ],
13395
- allowHeaders: [
13396
- "Content-Type",
13397
- "Authorization",
13398
- "x-llmops-config",
13399
- "x-llmops-environment"
13400
- ]
13401
- })(c, next);
13386
+ } else {
13387
+ c.set("configId", headers["data"]["x-llmops-config"]);
13388
+ c.set("envSec", headers["data"]["x-llmops-environment"]);
13389
+ await cors({
13390
+ origin: "*",
13391
+ allowMethods: [
13392
+ "GET",
13393
+ "POST",
13394
+ "PUT",
13395
+ "DELETE",
13396
+ "OPTIONS"
13397
+ ],
13398
+ allowHeaders: [
13399
+ "Content-Type",
13400
+ "Authorization",
13401
+ "x-llmops-config",
13402
+ "x-llmops-environment"
13403
+ ]
13404
+ })(c, next);
13405
+ }
13402
13406
  else
13403
13407
  /**
13404
13408
  * @todo Refactor this to give OpenAI specific response.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmops/app",
3
- "version": "0.1.2-beta.2",
3
+ "version": "0.1.2",
4
4
  "description": "LLMOps application with server and client",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -64,8 +64,8 @@
64
64
  "motion": "^12.23.25",
65
65
  "react-aria-components": "^1.13.0",
66
66
  "react-hook-form": "^7.68.0",
67
- "@llmops/core": "^0.1.2-beta.2",
68
- "@llmops/gateway": "^0.1.2-beta.2"
67
+ "@llmops/core": "^0.1.2",
68
+ "@llmops/gateway": "^0.1.2"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "react": "^19.2.1",