@botpress/cognitive 0.2.1 → 0.3.1
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 +7 -7
- package/dist/index.cjs +61 -12
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +143 -42
- package/dist/index.mjs +61 -12
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -636,10 +636,25 @@ import axios from "axios";
|
|
|
636
636
|
|
|
637
637
|
// src/cognitive-v2/models.ts
|
|
638
638
|
var models = {
|
|
639
|
+
"openai:gpt-5.1-2025-11-13": {
|
|
640
|
+
id: "openai:gpt-5.1-2025-11-13",
|
|
641
|
+
name: "GPT-5.1",
|
|
642
|
+
description: "GPT-5.1 is OpenAI's latest and most advanced AI model. It is a reasoning model that chooses the best way to respond based on task complexity and user intent. GPT-5.1 delivers expert-level performance across coding, math, writing, health, and visual perception, with improved accuracy, speed, and reduced hallucinations. It excels in complex tasks, long-context understanding, multimodal inputs (text and images), and safe, nuanced responses.",
|
|
643
|
+
input: {
|
|
644
|
+
maxTokens: 4e5,
|
|
645
|
+
costPer1MTokens: 1.25
|
|
646
|
+
},
|
|
647
|
+
output: {
|
|
648
|
+
maxTokens: 128e3,
|
|
649
|
+
costPer1MTokens: 10
|
|
650
|
+
},
|
|
651
|
+
tags: ["recommended", "reasoning", "general-purpose"],
|
|
652
|
+
lifecycle: "production"
|
|
653
|
+
},
|
|
639
654
|
"openai:gpt-5-2025-08-07": {
|
|
640
655
|
id: "openai:gpt-5-2025-08-07",
|
|
641
656
|
name: "GPT-5",
|
|
642
|
-
description: "GPT-5 is
|
|
657
|
+
description: "GPT-5 is a reasoning model that chooses the best way to respond based on task complexity and user intent. GPT-5 delivers expert-level performance across coding, math, writing, health, and visual perception, with improved accuracy, speed, and reduced hallucinations. It excels in complex tasks, long-context understanding, multimodal inputs (text and images), and safe, nuanced responses.",
|
|
643
658
|
input: {
|
|
644
659
|
maxTokens: 4e5,
|
|
645
660
|
costPer1MTokens: 1.25
|
|
@@ -648,7 +663,7 @@ var models = {
|
|
|
648
663
|
maxTokens: 128e3,
|
|
649
664
|
costPer1MTokens: 10
|
|
650
665
|
},
|
|
651
|
-
tags: ["
|
|
666
|
+
tags: ["reasoning", "general-purpose"],
|
|
652
667
|
lifecycle: "production",
|
|
653
668
|
aliases: ["gpt-5"]
|
|
654
669
|
},
|
|
@@ -719,7 +734,7 @@ var models = {
|
|
|
719
734
|
"openai:gpt-4.1-2025-04-14": {
|
|
720
735
|
id: "openai:gpt-4.1-2025-04-14",
|
|
721
736
|
name: "GPT 4.1",
|
|
722
|
-
description: "GPT 4.1 is
|
|
737
|
+
description: "GPT 4.1 is a model suited for complex tasks and problem solving across domains. The knowledge cutoff is June 2024.",
|
|
723
738
|
input: {
|
|
724
739
|
maxTokens: 1047576,
|
|
725
740
|
costPer1MTokens: 2
|
|
@@ -767,7 +782,7 @@ var models = {
|
|
|
767
782
|
"openai:o3-mini-2025-01-31": {
|
|
768
783
|
id: "openai:o3-mini-2025-01-31",
|
|
769
784
|
name: "GPT o3-mini",
|
|
770
|
-
description: "o3-mini is
|
|
785
|
+
description: "o3-mini is a small reasoning model, providing high intelligence at the same cost and latency targets of o1-mini. Also supports key developer features like Structured Outputs and function calling.",
|
|
771
786
|
input: {
|
|
772
787
|
maxTokens: 2e5,
|
|
773
788
|
costPer1MTokens: 1.1
|
|
@@ -814,7 +829,7 @@ var models = {
|
|
|
814
829
|
"openai:gpt-4o-mini-2024-07-18": {
|
|
815
830
|
id: "openai:gpt-4o-mini-2024-07-18",
|
|
816
831
|
name: "GPT-4o Mini",
|
|
817
|
-
description: "GPT-4o mini is
|
|
832
|
+
description: "GPT-4o mini is an advanced model in the small models category, and their cheapest model yet. Multimodal with higher intelligence than gpt-3.5-turbo but just as fast.",
|
|
818
833
|
input: {
|
|
819
834
|
maxTokens: 128e3,
|
|
820
835
|
costPer1MTokens: 0.15
|
|
@@ -830,7 +845,7 @@ var models = {
|
|
|
830
845
|
"openai:gpt-4o-2024-11-20": {
|
|
831
846
|
id: "openai:gpt-4o-2024-11-20",
|
|
832
847
|
name: "GPT-4o (November 2024)",
|
|
833
|
-
description: "GPT-4o is
|
|
848
|
+
description: "GPT-4o is an advanced multimodal model with the same high intelligence as GPT-4 Turbo but cheaper and more efficient.",
|
|
834
849
|
input: {
|
|
835
850
|
maxTokens: 128e3,
|
|
836
851
|
costPer1MTokens: 2.5
|
|
@@ -846,7 +861,7 @@ var models = {
|
|
|
846
861
|
"openai:gpt-4o-2024-08-06": {
|
|
847
862
|
id: "openai:gpt-4o-2024-08-06",
|
|
848
863
|
name: "GPT-4o (August 2024)",
|
|
849
|
-
description: "GPT-4o is
|
|
864
|
+
description: "GPT-4o is an advanced multimodal model with the same high intelligence as GPT-4 Turbo but cheaper and more efficient.",
|
|
850
865
|
input: {
|
|
851
866
|
maxTokens: 128e3,
|
|
852
867
|
costPer1MTokens: 2.5
|
|
@@ -861,7 +876,7 @@ var models = {
|
|
|
861
876
|
"openai:gpt-4o-2024-05-13": {
|
|
862
877
|
id: "openai:gpt-4o-2024-05-13",
|
|
863
878
|
name: "GPT-4o (May 2024)",
|
|
864
|
-
description: "GPT-4o is
|
|
879
|
+
description: "GPT-4o is an advanced multimodal model with the same high intelligence as GPT-4 Turbo but cheaper and more efficient.",
|
|
865
880
|
input: {
|
|
866
881
|
maxTokens: 128e3,
|
|
867
882
|
costPer1MTokens: 5
|
|
@@ -951,6 +966,40 @@ var models = {
|
|
|
951
966
|
lifecycle: "deprecated",
|
|
952
967
|
aliases: ["claude-sonnet-4-reasoning"]
|
|
953
968
|
},
|
|
969
|
+
"anthropic:claude-haiku-4-5-20251001": {
|
|
970
|
+
id: "anthropic:claude-haiku-4-5-20251001",
|
|
971
|
+
name: "Claude Haiku 4.5",
|
|
972
|
+
description: "Claude Haiku 4.5 is Anthropic's fastest and most efficient model, delivering near-frontier intelligence at a fraction of the cost and latency of larger Claude models. Matching Claude Sonnet 4's performance across reasoning, coding, and computer-use tasks, Haiku 4.5 brings frontier-level capability to real-time and high-volume applications.",
|
|
973
|
+
input: {
|
|
974
|
+
maxTokens: 2e5,
|
|
975
|
+
costPer1MTokens: 1
|
|
976
|
+
},
|
|
977
|
+
output: {
|
|
978
|
+
maxTokens: 64e3,
|
|
979
|
+
costPer1MTokens: 5
|
|
980
|
+
},
|
|
981
|
+
tags: ["recommended", "agents", "vision", "general-purpose", "coding"],
|
|
982
|
+
lifecycle: "production",
|
|
983
|
+
aliases: ["claude-haiku-4-5"]
|
|
984
|
+
},
|
|
985
|
+
"anthropic:claude-haiku-4-5-reasoning-20251001": {
|
|
986
|
+
id: "anthropic:claude-haiku-4-5-reasoning-20251001",
|
|
987
|
+
name: "Claude Haiku 4.5 (Reasoning Mode)",
|
|
988
|
+
description: `This model uses the "Extended Thinking" mode and will use a significantly higher amount of output tokens than the Standard Mode, so this model should only be used for tasks that actually require it.
|
|
989
|
+
|
|
990
|
+
Claude Haiku 4.5 is Anthropic's fastest and most efficient model, delivering near-frontier intelligence at a fraction of the cost and latency of larger Claude models. Matching Claude Sonnet 4's performance across reasoning, coding, and computer-use tasks, Haiku 4.5 brings frontier-level capability to real-time and high-volume applications.`,
|
|
991
|
+
input: {
|
|
992
|
+
maxTokens: 2e5,
|
|
993
|
+
costPer1MTokens: 1
|
|
994
|
+
},
|
|
995
|
+
output: {
|
|
996
|
+
maxTokens: 64e3,
|
|
997
|
+
costPer1MTokens: 5
|
|
998
|
+
},
|
|
999
|
+
tags: ["recommended", "reasoning", "agents", "vision", "general-purpose", "coding"],
|
|
1000
|
+
lifecycle: "production",
|
|
1001
|
+
aliases: ["claude-haiku-4-5-reasoning"]
|
|
1002
|
+
},
|
|
954
1003
|
"anthropic:claude-3-7-sonnet-20250219": {
|
|
955
1004
|
id: "anthropic:claude-3-7-sonnet-20250219",
|
|
956
1005
|
name: "Claude 3.7 Sonnet",
|
|
@@ -1009,7 +1058,7 @@ var models = {
|
|
|
1009
1058
|
costPer1MTokens: 15
|
|
1010
1059
|
},
|
|
1011
1060
|
tags: ["vision", "general-purpose", "agents", "coding", "storytelling"],
|
|
1012
|
-
lifecycle: "
|
|
1061
|
+
lifecycle: "discontinued"
|
|
1013
1062
|
},
|
|
1014
1063
|
"anthropic:claude-3-5-sonnet-20240620": {
|
|
1015
1064
|
id: "anthropic:claude-3-5-sonnet-20240620",
|
|
@@ -1024,7 +1073,7 @@ var models = {
|
|
|
1024
1073
|
costPer1MTokens: 15
|
|
1025
1074
|
},
|
|
1026
1075
|
tags: ["vision", "general-purpose", "agents", "coding", "storytelling"],
|
|
1027
|
-
lifecycle: "
|
|
1076
|
+
lifecycle: "discontinued"
|
|
1028
1077
|
},
|
|
1029
1078
|
"anthropic:claude-3-haiku-20240307": {
|
|
1030
1079
|
id: "anthropic:claude-3-haiku-20240307",
|
|
@@ -1686,7 +1735,7 @@ var models = {
|
|
|
1686
1735
|
costPer1MTokens: 0.5
|
|
1687
1736
|
},
|
|
1688
1737
|
tags: ["low-cost", "general-purpose"],
|
|
1689
|
-
lifecycle: "
|
|
1738
|
+
lifecycle: "discontinued",
|
|
1690
1739
|
aliases: ["accounts/fireworks/models/mixtral-8x7b-instruct"]
|
|
1691
1740
|
},
|
|
1692
1741
|
"fireworks-ai:mythomax-l2-13b": {
|
|
@@ -1702,7 +1751,7 @@ var models = {
|
|
|
1702
1751
|
costPer1MTokens: 0.2
|
|
1703
1752
|
},
|
|
1704
1753
|
tags: ["roleplay", "storytelling", "low-cost"],
|
|
1705
|
-
lifecycle: "
|
|
1754
|
+
lifecycle: "discontinued",
|
|
1706
1755
|
aliases: ["accounts/fireworks/models/mythomax-l2-13b"]
|
|
1707
1756
|
},
|
|
1708
1757
|
"fireworks-ai:gemma2-9b-it": {
|