@mariozechner/pi-ai 0.7.25 → 0.7.27

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.
@@ -1627,23 +1627,6 @@ export const MODELS = {
1627
1627
  contextWindow: 8192,
1628
1628
  maxTokens: 4096,
1629
1629
  },
1630
- "grok-4.1-fast-non-reasoning": {
1631
- id: "grok-4.1-fast-non-reasoning",
1632
- name: "Grok 4.1 Fast (Non-Reasoning)",
1633
- api: "openai-completions",
1634
- provider: "xai",
1635
- baseUrl: "https://api.x.ai/v1",
1636
- reasoning: false,
1637
- input: ["text", "image"],
1638
- cost: {
1639
- input: 0.2,
1640
- output: 0.5,
1641
- cacheRead: 0.05,
1642
- cacheWrite: 0,
1643
- },
1644
- contextWindow: 2000000,
1645
- maxTokens: 30000,
1646
- },
1647
1630
  "grok-3": {
1648
1631
  id: "grok-3",
1649
1632
  name: "Grok 3",
@@ -1695,6 +1678,23 @@ export const MODELS = {
1695
1678
  contextWindow: 131072,
1696
1679
  maxTokens: 8192,
1697
1680
  },
1681
+ "grok-4-1-fast": {
1682
+ id: "grok-4-1-fast",
1683
+ name: "Grok 4.1 Fast",
1684
+ api: "openai-completions",
1685
+ provider: "xai",
1686
+ baseUrl: "https://api.x.ai/v1",
1687
+ reasoning: true,
1688
+ input: ["text", "image"],
1689
+ cost: {
1690
+ input: 0.2,
1691
+ output: 0.5,
1692
+ cacheRead: 0.05,
1693
+ cacheWrite: 0,
1694
+ },
1695
+ contextWindow: 2000000,
1696
+ maxTokens: 30000,
1697
+ },
1698
1698
  "grok-2-1212": {
1699
1699
  id: "grok-2-1212",
1700
1700
  name: "Grok 2 (1212)",
@@ -1814,23 +1814,6 @@ export const MODELS = {
1814
1814
  contextWindow: 131072,
1815
1815
  maxTokens: 4096,
1816
1816
  },
1817
- "grok-4.1-fast": {
1818
- id: "grok-4.1-fast",
1819
- name: "Grok 4.1 Fast",
1820
- api: "openai-completions",
1821
- provider: "xai",
1822
- baseUrl: "https://api.x.ai/v1",
1823
- reasoning: true,
1824
- input: ["text", "image"],
1825
- cost: {
1826
- input: 0.2,
1827
- output: 0.5,
1828
- cacheRead: 0.05,
1829
- cacheWrite: 0,
1830
- },
1831
- contextWindow: 2000000,
1832
- maxTokens: 30000,
1833
- },
1834
1817
  "grok-3-mini-latest": {
1835
1818
  id: "grok-3-mini-latest",
1836
1819
  name: "Grok 3 Mini Latest",
@@ -1848,6 +1831,23 @@ export const MODELS = {
1848
1831
  contextWindow: 131072,
1849
1832
  maxTokens: 8192,
1850
1833
  },
1834
+ "grok-4-1-fast-non-reasoning": {
1835
+ id: "grok-4-1-fast-non-reasoning",
1836
+ name: "Grok 4.1 Fast (Non-Reasoning)",
1837
+ api: "openai-completions",
1838
+ provider: "xai",
1839
+ baseUrl: "https://api.x.ai/v1",
1840
+ reasoning: false,
1841
+ input: ["text", "image"],
1842
+ cost: {
1843
+ input: 0.2,
1844
+ output: 0.5,
1845
+ cacheRead: 0.05,
1846
+ cacheWrite: 0,
1847
+ },
1848
+ contextWindow: 2000000,
1849
+ maxTokens: 30000,
1850
+ },
1851
1851
  "grok-3-mini-fast": {
1852
1852
  id: "grok-3-mini-fast",
1853
1853
  name: "Grok 3 Mini Fast",
@@ -1971,6 +1971,23 @@ export const MODELS = {
1971
1971
  contextWindow: 2000000,
1972
1972
  maxTokens: 30000,
1973
1973
  },
1974
+ "x-ai/grok-4.1-fast:free": {
1975
+ id: "x-ai/grok-4.1-fast:free",
1976
+ name: "xAI: Grok 4.1 Fast (free)",
1977
+ api: "openai-completions",
1978
+ provider: "openrouter",
1979
+ baseUrl: "https://openrouter.ai/api/v1",
1980
+ reasoning: true,
1981
+ input: ["text", "image"],
1982
+ cost: {
1983
+ input: 0,
1984
+ output: 0,
1985
+ cacheRead: 0,
1986
+ cacheWrite: 0,
1987
+ },
1988
+ contextWindow: 2000000,
1989
+ maxTokens: 30000,
1990
+ },
1974
1991
  "google/gemini-3-pro-preview": {
1975
1992
  id: "google/gemini-3-pro-preview",
1976
1993
  name: "Google: Gemini 3 Pro Preview",
@@ -4827,34 +4844,34 @@ export const MODELS = {
4827
4844
  contextWindow: 200000,
4828
4845
  maxTokens: 8192,
4829
4846
  },
4830
- "mistralai/ministral-3b": {
4831
- id: "mistralai/ministral-3b",
4832
- name: "Mistral: Ministral 3B",
4847
+ "mistralai/ministral-8b": {
4848
+ id: "mistralai/ministral-8b",
4849
+ name: "Mistral: Ministral 8B",
4833
4850
  api: "openai-completions",
4834
4851
  provider: "openrouter",
4835
4852
  baseUrl: "https://openrouter.ai/api/v1",
4836
4853
  reasoning: false,
4837
4854
  input: ["text"],
4838
4855
  cost: {
4839
- input: 0.04,
4840
- output: 0.04,
4856
+ input: 0.09999999999999999,
4857
+ output: 0.09999999999999999,
4841
4858
  cacheRead: 0,
4842
4859
  cacheWrite: 0,
4843
4860
  },
4844
4861
  contextWindow: 131072,
4845
4862
  maxTokens: 4096,
4846
4863
  },
4847
- "mistralai/ministral-8b": {
4848
- id: "mistralai/ministral-8b",
4849
- name: "Mistral: Ministral 8B",
4864
+ "mistralai/ministral-3b": {
4865
+ id: "mistralai/ministral-3b",
4866
+ name: "Mistral: Ministral 3B",
4850
4867
  api: "openai-completions",
4851
4868
  provider: "openrouter",
4852
4869
  baseUrl: "https://openrouter.ai/api/v1",
4853
4870
  reasoning: false,
4854
4871
  input: ["text"],
4855
4872
  cost: {
4856
- input: 0.09999999999999999,
4857
- output: 0.09999999999999999,
4873
+ input: 0.04,
4874
+ output: 0.04,
4858
4875
  cacheRead: 0,
4859
4876
  cacheWrite: 0,
4860
4877
  },
@@ -5065,6 +5082,23 @@ export const MODELS = {
5065
5082
  contextWindow: 128000,
5066
5083
  maxTokens: 16384,
5067
5084
  },
5085
+ "meta-llama/llama-3.1-8b-instruct": {
5086
+ id: "meta-llama/llama-3.1-8b-instruct",
5087
+ name: "Meta: Llama 3.1 8B Instruct",
5088
+ api: "openai-completions",
5089
+ provider: "openrouter",
5090
+ baseUrl: "https://openrouter.ai/api/v1",
5091
+ reasoning: false,
5092
+ input: ["text"],
5093
+ cost: {
5094
+ input: 0.02,
5095
+ output: 0.03,
5096
+ cacheRead: 0,
5097
+ cacheWrite: 0,
5098
+ },
5099
+ contextWindow: 131072,
5100
+ maxTokens: 16384,
5101
+ },
5068
5102
  "meta-llama/llama-3.1-70b-instruct": {
5069
5103
  id: "meta-llama/llama-3.1-70b-instruct",
5070
5104
  name: "Meta: Llama 3.1 70B Instruct",
@@ -5099,23 +5133,6 @@ export const MODELS = {
5099
5133
  contextWindow: 130815,
5100
5134
  maxTokens: 4096,
5101
5135
  },
5102
- "meta-llama/llama-3.1-8b-instruct": {
5103
- id: "meta-llama/llama-3.1-8b-instruct",
5104
- name: "Meta: Llama 3.1 8B Instruct",
5105
- api: "openai-completions",
5106
- provider: "openrouter",
5107
- baseUrl: "https://openrouter.ai/api/v1",
5108
- reasoning: false,
5109
- input: ["text"],
5110
- cost: {
5111
- input: 0.02,
5112
- output: 0.03,
5113
- cacheRead: 0,
5114
- cacheWrite: 0,
5115
- },
5116
- contextWindow: 131072,
5117
- maxTokens: 16384,
5118
- },
5119
5136
  "mistralai/mistral-nemo": {
5120
5137
  id: "mistralai/mistral-nemo",
5121
5138
  name: "Mistral: Mistral Nemo",