@mariozechner/pi-ai 0.7.22 → 0.7.23

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,6 +1627,23 @@ 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
+ },
1630
1647
  "grok-3": {
1631
1648
  id: "grok-3",
1632
1649
  name: "Grok 3",
@@ -1797,6 +1814,23 @@ export const MODELS = {
1797
1814
  contextWindow: 131072,
1798
1815
  maxTokens: 4096,
1799
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
+ },
1800
1834
  "grok-3-mini-latest": {
1801
1835
  id: "grok-3-mini-latest",
1802
1836
  name: "Grok 3 Mini Latest",
@@ -1920,56 +1954,39 @@ export const MODELS = {
1920
1954
  },
1921
1955
  },
1922
1956
  openrouter: {
1923
- "google/gemini-3-pro-preview": {
1924
- id: "google/gemini-3-pro-preview",
1925
- name: "Google: Gemini 3 Pro Preview",
1957
+ "x-ai/grok-4.1-fast": {
1958
+ id: "x-ai/grok-4.1-fast",
1959
+ name: "xAI: Grok 4.1 Fast",
1926
1960
  api: "openai-completions",
1927
1961
  provider: "openrouter",
1928
1962
  baseUrl: "https://openrouter.ai/api/v1",
1929
1963
  reasoning: true,
1930
1964
  input: ["text", "image"],
1931
- cost: {
1932
- input: 2,
1933
- output: 12,
1934
- cacheRead: 0.19999999999999998,
1935
- cacheWrite: 2.375,
1936
- },
1937
- contextWindow: 1048576,
1938
- maxTokens: 65536,
1939
- },
1940
- "openrouter/sherlock-dash-alpha": {
1941
- id: "openrouter/sherlock-dash-alpha",
1942
- name: "Sherlock Dash Alpha",
1943
- api: "openai-completions",
1944
- provider: "openrouter",
1945
- baseUrl: "https://openrouter.ai/api/v1",
1946
- reasoning: false,
1947
- input: ["text", "image"],
1948
1965
  cost: {
1949
1966
  input: 0,
1950
1967
  output: 0,
1951
1968
  cacheRead: 0,
1952
1969
  cacheWrite: 0,
1953
1970
  },
1954
- contextWindow: 1840000,
1955
- maxTokens: 64000,
1971
+ contextWindow: 2000000,
1972
+ maxTokens: 30000,
1956
1973
  },
1957
- "openrouter/sherlock-think-alpha": {
1958
- id: "openrouter/sherlock-think-alpha",
1959
- name: "Sherlock Think Alpha",
1974
+ "google/gemini-3-pro-preview": {
1975
+ id: "google/gemini-3-pro-preview",
1976
+ name: "Google: Gemini 3 Pro Preview",
1960
1977
  api: "openai-completions",
1961
1978
  provider: "openrouter",
1962
1979
  baseUrl: "https://openrouter.ai/api/v1",
1963
1980
  reasoning: true,
1964
1981
  input: ["text", "image"],
1965
1982
  cost: {
1966
- input: 0,
1967
- output: 0,
1968
- cacheRead: 0,
1969
- cacheWrite: 0,
1983
+ input: 2,
1984
+ output: 12,
1985
+ cacheRead: 0.19999999999999998,
1986
+ cacheWrite: 2.375,
1970
1987
  },
1971
- contextWindow: 1840000,
1972
- maxTokens: 64000,
1988
+ contextWindow: 1048576,
1989
+ maxTokens: 65536,
1973
1990
  },
1974
1991
  "openai/gpt-5.1": {
1975
1992
  id: "openai/gpt-5.1",
@@ -2065,13 +2082,13 @@ export const MODELS = {
2065
2082
  reasoning: true,
2066
2083
  input: ["text"],
2067
2084
  cost: {
2068
- input: 0.5,
2069
- output: 2.5,
2085
+ input: 0.44999999999999996,
2086
+ output: 2.35,
2070
2087
  cacheRead: 0,
2071
2088
  cacheWrite: 0,
2072
2089
  },
2073
2090
  contextWindow: 262144,
2074
- maxTokens: 262144,
2091
+ maxTokens: 16384,
2075
2092
  },
2076
2093
  "amazon/nova-premier-v1": {
2077
2094
  id: "amazon/nova-premier-v1",
@@ -4810,34 +4827,34 @@ export const MODELS = {
4810
4827
  contextWindow: 200000,
4811
4828
  maxTokens: 8192,
4812
4829
  },
4813
- "mistralai/ministral-8b": {
4814
- id: "mistralai/ministral-8b",
4815
- name: "Mistral: Ministral 8B",
4830
+ "mistralai/ministral-3b": {
4831
+ id: "mistralai/ministral-3b",
4832
+ name: "Mistral: Ministral 3B",
4816
4833
  api: "openai-completions",
4817
4834
  provider: "openrouter",
4818
4835
  baseUrl: "https://openrouter.ai/api/v1",
4819
4836
  reasoning: false,
4820
4837
  input: ["text"],
4821
4838
  cost: {
4822
- input: 0.09999999999999999,
4823
- output: 0.09999999999999999,
4839
+ input: 0.04,
4840
+ output: 0.04,
4824
4841
  cacheRead: 0,
4825
4842
  cacheWrite: 0,
4826
4843
  },
4827
4844
  contextWindow: 131072,
4828
4845
  maxTokens: 4096,
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
  },
@@ -5116,9 +5133,9 @@ export const MODELS = {
5116
5133
  contextWindow: 131072,
5117
5134
  maxTokens: 16384,
5118
5135
  },
5119
- "openai/gpt-4o-mini-2024-07-18": {
5120
- id: "openai/gpt-4o-mini-2024-07-18",
5121
- name: "OpenAI: GPT-4o-mini (2024-07-18)",
5136
+ "openai/gpt-4o-mini": {
5137
+ id: "openai/gpt-4o-mini",
5138
+ name: "OpenAI: GPT-4o-mini",
5122
5139
  api: "openai-completions",
5123
5140
  provider: "openrouter",
5124
5141
  baseUrl: "https://openrouter.ai/api/v1",
@@ -5133,9 +5150,9 @@ export const MODELS = {
5133
5150
  contextWindow: 128000,
5134
5151
  maxTokens: 16384,
5135
5152
  },
5136
- "openai/gpt-4o-mini": {
5137
- id: "openai/gpt-4o-mini",
5138
- name: "OpenAI: GPT-4o-mini",
5153
+ "openai/gpt-4o-mini-2024-07-18": {
5154
+ id: "openai/gpt-4o-mini-2024-07-18",
5155
+ name: "OpenAI: GPT-4o-mini (2024-07-18)",
5139
5156
  api: "openai-completions",
5140
5157
  provider: "openrouter",
5141
5158
  baseUrl: "https://openrouter.ai/api/v1",