@cloudbase/agent-server 0.0.7 → 0.0.8
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.js +2 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -474,8 +474,7 @@ function createExpressServer(props) {
|
|
|
474
474
|
}
|
|
475
475
|
createExpressRoutes({
|
|
476
476
|
...rest,
|
|
477
|
-
express: app
|
|
478
|
-
basePath: props.basePath ?? (process.env.TENCENTCLOUD_RUNENV === "SCF" ? "/v1/aibot/bots/:agentId/" : void 0)
|
|
477
|
+
express: app
|
|
479
478
|
});
|
|
480
479
|
return app;
|
|
481
480
|
}
|
|
@@ -487,7 +486,7 @@ function createExpressRoutes({
|
|
|
487
486
|
aguiOptions
|
|
488
487
|
}) {
|
|
489
488
|
const useAGUI = _useAGUI ?? true;
|
|
490
|
-
const basePath = _basePath ?? "/";
|
|
489
|
+
const basePath = _basePath ?? (process.env.TENCENTCLOUD_RUNENV === "SCF" ? "/v1/aibot/bots/:agentId/" : void 0);
|
|
491
490
|
const sendMessageServerAdapter = useAGUI ? sendMessageAGUI_exports.createServerAdapter(createAgent) : sendMessage_exports.createServerAdapter(createAgent);
|
|
492
491
|
if (useAGUI) {
|
|
493
492
|
createAGUIRoute({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/agent-server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"openai": "6.3.0",
|
|
21
21
|
"uuid": "^10.0.0",
|
|
22
22
|
"zod": "^4.1.12",
|
|
23
|
-
"@cloudbase/agent-shared": "^0.0.
|
|
23
|
+
"@cloudbase/agent-shared": "^0.0.8"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/cors": "^2.8.19",
|