@llmops/sdk 0.1.5-beta.1 → 0.1.5
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 +2 -1
- package/dist/hono.mjs +2 -1
- package/package.json +3 -3
package/dist/hono.cjs
CHANGED
|
@@ -5,7 +5,8 @@ function createLLMOpsMiddleware(client) {
|
|
|
5
5
|
return async (c, next) => {
|
|
6
6
|
let urlPath = c.req.path;
|
|
7
7
|
if (basePath && urlPath.startsWith(basePath)) urlPath = urlPath.slice(basePath.length) || "/";
|
|
8
|
-
const
|
|
8
|
+
const originalUrl = new URL(c.req.url);
|
|
9
|
+
const url = new URL(urlPath + originalUrl.search, c.req.url);
|
|
9
10
|
const headers = new Headers();
|
|
10
11
|
c.req.raw.headers.forEach((value, key) => {
|
|
11
12
|
headers.set(key, value);
|
package/dist/hono.mjs
CHANGED
|
@@ -4,7 +4,8 @@ function createLLMOpsMiddleware(client) {
|
|
|
4
4
|
return async (c, next) => {
|
|
5
5
|
let urlPath = c.req.path;
|
|
6
6
|
if (basePath && urlPath.startsWith(basePath)) urlPath = urlPath.slice(basePath.length) || "/";
|
|
7
|
-
const
|
|
7
|
+
const originalUrl = new URL(c.req.url);
|
|
8
|
+
const url = new URL(urlPath + originalUrl.search, c.req.url);
|
|
8
9
|
const headers = new Headers();
|
|
9
10
|
c.req.raw.headers.forEach((value, key) => {
|
|
10
11
|
headers.set(key, value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmops/sdk",
|
|
3
|
-
"version": "0.1.5
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "An LLMOps toolkit for TypeScript applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@llmops/app": "^0.1.5
|
|
61
|
-
"@llmops/core": "^0.1.5
|
|
60
|
+
"@llmops/app": "^0.1.5",
|
|
61
|
+
"@llmops/core": "^0.1.5"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@types/express": "^5.0.6",
|