@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/gateway@2.1.45 build /home/runner/work/agentic/agentic/packages/gateway
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
  CLI Building entry: src/index.ts
@@ -9,13 +9,13 @@
9
9
  CLI Cleaning output folder
10
10
  CJS Build start
11
11
  ESM Build start
12
- ESM dist/index.mjs 164.11 KB
13
- ESM dist/index.mjs.map 358.03 KB
14
- ESM ⚡️ Build success in 321ms
15
- CJS dist/index.js 167.53 KB
16
- CJS dist/index.js.map 357.59 KB
17
- CJS ⚡️ Build success in 321ms
12
+ ESM dist/index.mjs 164.37 KB
13
+ ESM dist/index.mjs.map 358.60 KB
14
+ ESM ⚡️ Build success in 302ms
15
+ CJS dist/index.js 167.79 KB
16
+ CJS dist/index.js.map 358.15 KB
17
+ CJS ⚡️ Build success in 302ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 9875ms
19
+ DTS ⚡️ Build success in 9786ms
20
20
  DTS dist/index.d.ts 3.76 KB
21
21
  DTS dist/index.d.mts 3.76 KB
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,