manychat-ai-agent 0.23.2 → 0.23.4
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/CHANGELOG.md +34 -0
- package/dist/agent/registry.js +23 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.23.4](https://github.com/pedronastasi/manychat-ai-agent/compare/v0.23.3...v0.23.4) (2026-10-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* **deps:** update patch dependencies ([ebdedc0](https://github.com/pedronastasi/manychat-ai-agent/commit/ebdedc0c53a4f097465a364ac1b3422fc4a84a07))
|
|
9
|
+
|
|
10
|
+
## [0.23.3](https://github.com/pedronastasi/manychat-ai-agent/compare/v0.23.2...v0.23.3) (2026-10-14)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **deps:** update patch dependencies ([8790819](https://github.com/pedronastasi/manychat-ai-agent/commit/87908192e30abafdf11f02a49692048f1177a10b))
|
|
16
|
+
* **deps:** update patch dependencies ([e19e412](https://github.com/pedronastasi/manychat-ai-agent/commit/e19e41258dc91d7187a1cf476f992de10311f7f0))
|
|
17
|
+
* price openai:gpt-6-luna at its list price for the budget cap ([76d5f9a](https://github.com/pedronastasi/manychat-ai-agent/commit/76d5f9aca411f528198edfd4cccc1934c6df2a1b))
|
|
18
|
+
* price the common chat models of each hosted provider ([f6fd2c7](https://github.com/pedronastasi/manychat-ai-agent/commit/f6fd2c7d740d0f90d354449d2b935394f677641c))
|
|
19
|
+
* price the common chat models so the budget cap tracks real spend ([0c3a3ea](https://github.com/pedronastasi/manychat-ai-agent/commit/0c3a3ead45102b8e5f6879ced90fd4d3b76f717e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Specs and Docs
|
|
23
|
+
|
|
24
|
+
* specify tenant overrides for system prompt sections ([4cc2f6e](https://github.com/pedronastasi/manychat-ai-agent/commit/4cc2f6eb26d714cba26afa68374ba50c9156ba09))
|
|
25
|
+
* specify tenant overrides for system prompt sections ([6ca8001](https://github.com/pedronastasi/manychat-ai-agent/commit/6ca800150bfbad24c7af76788bbf738b543728f8))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Dependencies
|
|
29
|
+
|
|
30
|
+
* **deps:** lock file maintenance ([1190025](https://github.com/pedronastasi/manychat-ai-agent/commit/11900256fc78d9244eabc521f5433cc35a981da0))
|
|
31
|
+
* **deps:** lock file maintenance ([cc15348](https://github.com/pedronastasi/manychat-ai-agent/commit/cc15348e34a23fddf8832dddc71229664b32a2e1))
|
|
32
|
+
* **deps:** update dependency mermaid to v12.2.0 ([c01cf91](https://github.com/pedronastasi/manychat-ai-agent/commit/c01cf9140f919f36d3df125c7a0a27fbb0001b50))
|
|
33
|
+
* **deps:** update dependency mermaid to v12.2.0 ([5b3d363](https://github.com/pedronastasi/manychat-ai-agent/commit/5b3d363a8a804309caa284dcfd1f10b6c27b6a77))
|
|
34
|
+
* **deps:** update pnpm to v12.11.2 ([8f565b5](https://github.com/pedronastasi/manychat-ai-agent/commit/8f565b59fbf949ae0de3f2ed81c659d607ea967a))
|
|
35
|
+
* **deps:** update pnpm to v12.11.2 ([73dee04](https://github.com/pedronastasi/manychat-ai-agent/commit/73dee04d192aed76279fe17e2f31775bcab8096f))
|
|
36
|
+
|
|
3
37
|
## [0.23.2](https://github.com/pedronastasi/manychat-ai-agent/compare/v0.23.1...v0.23.2) (2026-10-13)
|
|
4
38
|
|
|
5
39
|
|
package/dist/agent/registry.js
CHANGED
|
@@ -15,14 +15,33 @@ const ollama = createOpenAI({
|
|
|
15
15
|
const registry = createProviderRegistry({ anthropic, openai, google, ollama });
|
|
16
16
|
/**
|
|
17
17
|
* Prices drift, and a stale table would silently mis-cap spend. Treated as a
|
|
18
|
-
* best-effort estimate:
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* best-effort estimate: an unknown model falls back to a deliberately
|
|
19
|
+
* pessimistic estimate so the cap errs toward stopping early. That fallback
|
|
20
|
+
* prices a cheap model at many times its list price, so a model in regular use
|
|
21
|
+
* belongs in this table.
|
|
21
22
|
*/
|
|
22
23
|
const PRICING = {
|
|
23
|
-
|
|
24
|
+
// Standard list prices as of October 2026. Where a model has a long-prompt
|
|
25
|
+
// tier, this is the short-prompt price: a prompt past that threshold (100k
|
|
26
|
+
// tokens on Haiku 5.5, 272k on GPT-6) is under-counted.
|
|
27
|
+
'anthropic:claude-haiku-5-5': { inputPerMTok: 0.1, outputPerMTok: 0.5, cacheReadPerMTok: 0.01 },
|
|
28
|
+
'anthropic:claude-sonnet-5-5': { inputPerMTok: 2, outputPerMTok: 10, cacheReadPerMTok: 0.1 },
|
|
29
|
+
'anthropic:claude-opus-5-5': { inputPerMTok: 4, outputPerMTok: 20, cacheReadPerMTok: 0.2 },
|
|
24
30
|
'anthropic:claude-sonnet-5': { inputPerMTok: 2, outputPerMTok: 10, cacheReadPerMTok: 0.2 },
|
|
25
31
|
'anthropic:claude-opus-5': { inputPerMTok: 5, outputPerMTok: 25, cacheReadPerMTok: 0.5 },
|
|
32
|
+
'anthropic:claude-sonnet-4-6': { inputPerMTok: 3, outputPerMTok: 15, cacheReadPerMTok: 0.3 },
|
|
33
|
+
'anthropic:claude-sonnet-4-5': { inputPerMTok: 3, outputPerMTok: 15, cacheReadPerMTok: 0.3 },
|
|
34
|
+
'anthropic:claude-haiku-4-5': { inputPerMTok: 1, outputPerMTok: 5, cacheReadPerMTok: 0.1 },
|
|
35
|
+
'openai:gpt-6-sol': { inputPerMTok: 2, outputPerMTok: 10, cacheReadPerMTok: 0.2 },
|
|
36
|
+
'openai:gpt-6-luna': { inputPerMTok: 0.1, outputPerMTok: 0.5, cacheReadPerMTok: 0.01 },
|
|
37
|
+
'openai:gpt-5': { inputPerMTok: 1.25, outputPerMTok: 10, cacheReadPerMTok: 0.125 },
|
|
38
|
+
'openai:gpt-5-mini': { inputPerMTok: 0.25, outputPerMTok: 2, cacheReadPerMTok: 0.025 },
|
|
39
|
+
'openai:gpt-5-nano': { inputPerMTok: 0.05, outputPerMTok: 0.4, cacheReadPerMTok: 0.005 },
|
|
40
|
+
// Introductory pricing halves this until 2027; the table holds the standard
|
|
41
|
+
// price, so the cap errs toward stopping early meanwhile. Cache reads at 10%
|
|
42
|
+
// of input, Google's ratio on its other Flash models.
|
|
43
|
+
'google:gemini-3.8-flash': { inputPerMTok: 1.5, outputPerMTok: 7.5, cacheReadPerMTok: 0.15 },
|
|
44
|
+
'google:gemini-3.5-flash-lite': { inputPerMTok: 0.3, outputPerMTok: 2.5, cacheReadPerMTok: 0.03 },
|
|
26
45
|
};
|
|
27
46
|
const FALLBACK_PRICING = {
|
|
28
47
|
inputPerMTok: 5,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "manychat-ai-agent",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.4",
|
|
4
4
|
"description": "A provider-agnostic conversational AI agent gateway that bridges no-code chat platforms to any LLM.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=22"
|
|
38
38
|
},
|
|
39
|
-
"packageManager": "pnpm@12.
|
|
39
|
+
"packageManager": "pnpm@12.11.2",
|
|
40
40
|
"scripts": {
|
|
41
41
|
"dev": "node --experimental-strip-types --disable-warning=ExperimentalWarning --env-file=.env --watch src/main.ts",
|
|
42
42
|
"bootstrap": "node scripts/setup.mjs",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@ai-sdk/anthropic": "^4.0.53",
|
|
72
72
|
"@ai-sdk/google": "^4.0.69",
|
|
73
73
|
"@ai-sdk/openai": "^4.0.66",
|
|
74
|
-
"@ai-sdk/provider": "4.0.
|
|
74
|
+
"@ai-sdk/provider": "4.0.27",
|
|
75
75
|
"@fastify/helmet": "^13.1.1",
|
|
76
76
|
"@fastify/rate-limit": "^11.2.0",
|
|
77
77
|
"@fastify/swagger": "^9.8.1",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"@electric-sql/pglite": "^0.5.8",
|
|
98
98
|
"@eslint/js": "^10.0.1",
|
|
99
99
|
"@types/node": "^24.0.0",
|
|
100
|
-
"@vitest/coverage-v8": "5.0.
|
|
100
|
+
"@vitest/coverage-v8": "5.0.4",
|
|
101
101
|
"drizzle-kit": "^0.31.10",
|
|
102
102
|
"eslint": "^10.10.0",
|
|
103
103
|
"mermaid": "^12.0.0",
|