@hexabot-ai/api 3.2.2-beta.1 → 3.2.2

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.
Files changed (28) hide show
  1. package/dist/extensions/actions/ai/ai-base.action.js +11 -1
  2. package/dist/extensions/actions/ai/ai-base.action.js.map +1 -1
  3. package/dist/extensions/actions/ai/model.binding.d.ts +3 -1
  4. package/dist/extensions/actions/ai/model.binding.js +2 -1
  5. package/dist/extensions/actions/ai/model.binding.js.map +1 -1
  6. package/dist/static/assets/{browser-ponyfill-D1dKqhtP.js → browser-ponyfill-DZ-0kLOm.js} +1 -1
  7. package/dist/static/assets/{cssMode-DplazEqd.js → cssMode-C8DJ1hPk.js} +1 -1
  8. package/dist/static/assets/{freemarker2-oSA1bGAm.js → freemarker2-CY524xfA.js} +1 -1
  9. package/dist/static/assets/{handlebars-CcC7EgN2.js → handlebars-CZMgsFvP.js} +1 -1
  10. package/dist/static/assets/{html-CcFTB7eP.js → html-BSnERd5B.js} +1 -1
  11. package/dist/static/assets/{htmlMode-g5g2wCUD.js → htmlMode-Drw-CK4H.js} +1 -1
  12. package/dist/static/assets/{index-CMp45yDR.js → index-DBXu3Xkp.js} +2123 -2123
  13. package/dist/static/assets/{javascript-Dv0J7ioP.js → javascript-DRoDoDZ0.js} +1 -1
  14. package/dist/static/assets/{jsonMode-CzBkKOe4.js → jsonMode-Dk0pJSE9.js} +1 -1
  15. package/dist/static/assets/{liquid-CptRs_ZU.js → liquid-B_RkKmzQ.js} +1 -1
  16. package/dist/static/assets/{lspLanguageFeatures-DXNU_upS.js → lspLanguageFeatures-DyblQzeh.js} +1 -1
  17. package/dist/static/assets/{mdx-af00eMTm.js → mdx-C8-i5f2E.js} +1 -1
  18. package/dist/static/assets/{python-CNcx7i3L.js → python-D-Vv2hoj.js} +1 -1
  19. package/dist/static/assets/{razor-BL_MSmP7.js → razor-DTMvP6Wu.js} +1 -1
  20. package/dist/static/assets/{tsMode-BWD4nt2F.js → tsMode-BsZ0Kcwx.js} +1 -1
  21. package/dist/static/assets/{typescript-BbKUic6G.js → typescript-DnUtc54-.js} +1 -1
  22. package/dist/static/assets/{xml-DFx6l4N0.js → xml-BZ3tDQX_.js} +1 -1
  23. package/dist/static/assets/{yaml-BNuTzPxo.js → yaml-C2vCOQhf.js} +1 -1
  24. package/dist/static/index.html +1 -1
  25. package/dist/tsconfig.build.tsbuildinfo +1 -1
  26. package/package.json +8 -5
  27. package/src/extensions/actions/ai/ai-base.action.ts +15 -2
  28. package/src/extensions/actions/ai/model.binding.ts +2 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hexabot-ai/api",
3
3
  "private": false,
4
- "version": "3.2.2-beta.1",
4
+ "version": "3.2.2",
5
5
  "description": "Hexabot is a solution for creating and managing chatbots across multiple channels, leveraging AI for advanced conversational capabilities. It provides a user-friendly interface for building, training, and deploying chatbots with integrated support for various messaging platforms.",
6
6
  "author": "Hexastack",
7
7
  "license": "FCL-1.0-ALv2",
@@ -27,6 +27,7 @@
27
27
  "@ai-sdk/gateway": "^3.0.9",
28
28
  "@ai-sdk/mcp": "^1.0.25",
29
29
  "@ai-sdk/openai": "^3.0.7",
30
+ "@ai-sdk/openai-compatible": "^2.0.48",
30
31
  "@ai-sdk/provider": "^3.0.2",
31
32
  "@keyv/redis": "^5.1.3",
32
33
  "@llamaindex/openai": "0.4.22",
@@ -92,8 +93,8 @@
92
93
  "typeorm": "^0.3.28",
93
94
  "yaml": "^2.8.3",
94
95
  "zod": "^4.3.6",
95
- "@hexabot-ai/agentic": "3.1.2-beta.1",
96
- "@hexabot-ai/types": "3.0.2-beta.1"
96
+ "@hexabot-ai/agentic": "3.1.2",
97
+ "@hexabot-ai/types": "3.0.2"
97
98
  },
98
99
  "devDependencies": {
99
100
  "@compodoc/compodoc": "^1.2.1",
@@ -144,12 +145,14 @@
144
145
  "tsconfig-paths": "^4.2.0",
145
146
  "tsconfig-paths-jest": "^0.0.1",
146
147
  "typescript": "^5.1.3",
147
- "@hexabot-ai/frontend": "3.2.2-beta.1"
148
+ "@hexabot-ai/frontend": "3.2.2"
148
149
  },
149
150
  "optionalDependencies": {
150
151
  "@css-inline/css-inline-linux-arm64-musl": "^0.14.1",
151
152
  "@resvg/resvg-js-darwin-arm64": "^2.6.2",
152
- "@resvg/resvg-js-linux-arm64-musl": "^2.6.2"
153
+ "@resvg/resvg-js-linux-arm64-musl": "^2.6.2",
154
+ "@resvg/resvg-js-linux-x64-gnu": "2.6.2",
155
+ "@resvg/resvg-js-win32-x64-msvc": "2.6.2"
153
156
  },
154
157
  "jest": {
155
158
  "globalSetup": "<rootDir>/../test/global-setup.ts",
@@ -5,13 +5,14 @@
5
5
  */
6
6
 
7
7
  import { createOpenAI } from '@ai-sdk/openai';
8
+ import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
8
9
  import { ProviderV2, ProviderV3 } from '@ai-sdk/provider';
9
10
  import {
10
11
  IncomingMessageType,
11
12
  Message,
12
- Thread,
13
13
  StdIncomingMessage,
14
14
  StdOutgoingMessage,
15
+ Thread,
15
16
  } from '@hexabot-ai/types';
16
17
  import {
17
18
  LanguageModel,
@@ -123,7 +124,11 @@ export abstract class AiBaseAction<
123
124
  // Most hosted providers need an API key; skip strict enforcement for custom/local providers.
124
125
  const providerId = this.getProviderId(provider);
125
126
 
126
- return providerId === 'openai' || providerId === 'gateway';
127
+ return (
128
+ providerId === 'openai' ||
129
+ providerId === 'gateway' ||
130
+ providerId === 'litellm'
131
+ );
127
132
  }
128
133
 
129
134
  protected async loadProvider(
@@ -143,6 +148,14 @@ export abstract class AiBaseAction<
143
148
  return createGatewayProvider(options);
144
149
  }
145
150
 
151
+ if (providerId === 'litellm') {
152
+ return createOpenAICompatible({
153
+ ...options,
154
+ name: 'litellm',
155
+ baseURL: options.baseURL || '',
156
+ });
157
+ }
158
+
146
159
  const moduleCandidates = new Set<string>([
147
160
  provider,
148
161
  normalized,
@@ -36,6 +36,7 @@ export const vercelAiSdkProviders = [
36
36
  'huggingface',
37
37
  'hume',
38
38
  'klingai',
39
+ 'litellm',
39
40
  'lmnt',
40
41
  'luma',
41
42
  'mistral',
@@ -85,7 +86,7 @@ export const aiModelBindingSchema = z.strictObject({
85
86
  'ui:options': {
86
87
  showWhen: {
87
88
  field: 'provider',
88
- equals: 'gateway',
89
+ in: ['gateway', 'litellm'],
89
90
  },
90
91
  },
91
92
  }),