@llmops/sdk 0.2.0 → 0.2.1-beta.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.
package/dist/hono.cjs CHANGED
@@ -4,7 +4,7 @@ function createLLMOpsMiddleware(client) {
4
4
  const basePath = client.config.basePath;
5
5
  return async (c, next) => {
6
6
  let urlPath = c.req.path;
7
- if (basePath && urlPath.startsWith(basePath)) urlPath = urlPath.slice(basePath.length) || "/";
7
+ if (basePath && basePath !== "/" && urlPath.startsWith(basePath)) urlPath = urlPath.slice(basePath.length) || "/";
8
8
  const originalUrl = new URL(c.req.url);
9
9
  const url = new URL(urlPath + originalUrl.search, c.req.url);
10
10
  const headers = new Headers();
package/dist/hono.mjs CHANGED
@@ -3,7 +3,7 @@ function createLLMOpsMiddleware(client) {
3
3
  const basePath = client.config.basePath;
4
4
  return async (c, next) => {
5
5
  let urlPath = c.req.path;
6
- if (basePath && urlPath.startsWith(basePath)) urlPath = urlPath.slice(basePath.length) || "/";
6
+ if (basePath && basePath !== "/" && urlPath.startsWith(basePath)) urlPath = urlPath.slice(basePath.length) || "/";
7
7
  const originalUrl = new URL(c.req.url);
8
8
  const url = new URL(urlPath + originalUrl.search, c.req.url);
9
9
  const headers = new Headers();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmops/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1-beta.1",
4
4
  "description": "An LLMOps toolkit for TypeScript applications",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -64,8 +64,8 @@
64
64
  "access": "public"
65
65
  },
66
66
  "dependencies": {
67
- "@llmops/core": "^0.2.0",
68
- "@llmops/app": "^0.2.0"
67
+ "@llmops/core": "^0.2.1-beta.1",
68
+ "@llmops/app": "^0.2.1-beta.1"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/express": "^5.0.6",