@axiom-lattice/gateway 2.1.45 → 2.1.46
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +10 -0
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/controllers/models.ts +8 -0
- package/src/controllers/run.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @axiom-lattice/gateway@2.1.
|
|
2
|
+
> @axiom-lattice/gateway@2.1.46 build /home/runner/work/agentic/agentic/packages/gateway
|
|
3
3
|
> tsup src/index.ts --format cjs,esm --dts --clean --sourcemap
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
[34mCLI[39m Cleaning output folder
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m164.
|
|
13
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[32m358.
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
15
|
-
[32mCJS[39m [1mdist/index.js [22m[32m167.
|
|
16
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
17
|
-
[32mCJS[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m164.37 KB[39m
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m358.60 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 302ms
|
|
15
|
+
[32mCJS[39m [1mdist/index.js [22m[32m167.79 KB[39m
|
|
16
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m358.15 KB[39m
|
|
17
|
+
[32mCJS[39m ⚡️ Build success in 302ms
|
|
18
18
|
[34mDTS[39m Build start
|
|
19
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 9786ms
|
|
20
20
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.76 KB[39m
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m3.76 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @axiom-lattice/gateway
|
|
2
2
|
|
|
3
|
+
## 2.1.46
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [f29ff90]
|
|
8
|
+
- @axiom-lattice/pg-stores@1.0.30
|
|
9
|
+
- @axiom-lattice/protocols@2.1.22
|
|
10
|
+
- @axiom-lattice/core@2.1.40
|
|
11
|
+
- @axiom-lattice/queue-redis@1.0.21
|
|
12
|
+
|
|
3
13
|
## 2.1.45
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -275,7 +275,8 @@ var createRun = async (request, reply) => {
|
|
|
275
275
|
try {
|
|
276
276
|
const result = await agent.addMessage({
|
|
277
277
|
input,
|
|
278
|
-
command
|
|
278
|
+
command,
|
|
279
|
+
custom_run_config
|
|
279
280
|
});
|
|
280
281
|
const stream = agent.chunkStream(result.messageId);
|
|
281
282
|
for await (const chunk of stream) {
|
|
@@ -305,7 +306,8 @@ var createRun = async (request, reply) => {
|
|
|
305
306
|
const { message: msg, ...restInputNonStream } = input;
|
|
306
307
|
const result = await agent.invoke({
|
|
307
308
|
input: { message: msg, ...restInputNonStream },
|
|
308
|
-
command
|
|
309
|
+
command,
|
|
310
|
+
custom_run_config
|
|
309
311
|
});
|
|
310
312
|
reply.status(200).send({
|
|
311
313
|
success: true,
|
|
@@ -1082,10 +1084,12 @@ async function getModels(request, reply) {
|
|
|
1082
1084
|
const allLattices = import_core9.modelLatticeManager.getAllLattices();
|
|
1083
1085
|
const models = allLattices.map((lattice) => {
|
|
1084
1086
|
const config = lattice.client.config || {};
|
|
1087
|
+
const displayName = config.displayName || lattice.key.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
1085
1088
|
return {
|
|
1086
1089
|
key: lattice.key,
|
|
1087
1090
|
model: config.model || "",
|
|
1088
1091
|
provider: config.provider || "openai",
|
|
1092
|
+
displayName,
|
|
1089
1093
|
streaming: config.streaming || false,
|
|
1090
1094
|
apiKey: config.apiKey || "",
|
|
1091
1095
|
baseURL: config.baseURL || "",
|
|
@@ -1135,6 +1139,7 @@ async function updateModels(request, reply) {
|
|
|
1135
1139
|
const llmConfig = {
|
|
1136
1140
|
provider: modelConfig.provider,
|
|
1137
1141
|
model: modelConfig.model,
|
|
1142
|
+
displayName: modelConfig.displayName,
|
|
1138
1143
|
streaming: modelConfig.streaming ?? false,
|
|
1139
1144
|
apiKey: modelConfig.apiKey,
|
|
1140
1145
|
baseURL: modelConfig.baseURL,
|