llmist 0.2.0 → 0.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.
package/README.md CHANGED
@@ -110,13 +110,13 @@ console.log(answer); // "15 times 23 equals 345"
110
110
  ```typescript
111
111
  // Use model shortcuts
112
112
  .withModel('gpt-5-nano') // OpenAI gpt-5-nano
113
- .withModel('sonnet') // Claude 3.5 Sonnet
114
- .withModel('haiku') // Claude 3.5 Haiku
113
+ .withModel('sonnet') // Claude Sonnet 4.5
114
+ .withModel('haiku') // Claude Haiku 4.5
115
115
  .withModel('flash') // Gemini 2.0 Flash
116
116
 
117
117
  // Or full names
118
118
  .withModel('openai:gpt-5-nano')
119
- .withModel('anthropic:claude-3-5-sonnet-latest')
119
+ .withModel('anthropic:claude-sonnet-4-5')
120
120
  .withModel('gemini:gemini-2.0-flash')
121
121
  ```
122
122
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BaseGadget
3
- } from "./chunk-J3NCIWMY.js";
3
+ } from "./chunk-VYBRYR2S.js";
4
4
 
5
5
  // src/gadgets/create-gadget.ts
6
6
  function createGadget(config) {
@@ -19,4 +19,4 @@ function createGadget(config) {
19
19
  export {
20
20
  createGadget
21
21
  };
22
- //# sourceMappingURL=chunk-MO5ONHPZ.js.map
22
+ //# sourceMappingURL=chunk-I55AV3WV.js.map
@@ -7,7 +7,7 @@ import {
7
7
  init_client,
8
8
  init_constants,
9
9
  init_logger
10
- } from "./chunk-J3NCIWMY.js";
10
+ } from "./chunk-VYBRYR2S.js";
11
11
 
12
12
  // src/gadgets/validation.ts
13
13
  function validateAndApplyDefaults(schema, params) {
@@ -898,4 +898,4 @@ export {
898
898
  MockGadgetBuilder,
899
899
  mockGadget
900
900
  };
901
- //# sourceMappingURL=chunk-PVHHXDCV.js.map
901
+ //# sourceMappingURL=chunk-VRTKJK2X.js.map
@@ -91,17 +91,17 @@ var init_model_shortcuts = __esm({
91
91
  "gpt5-mini": "openai:gpt-5-mini",
92
92
  "gpt5-nano": "openai:gpt-5-nano",
93
93
  // Anthropic aliases
94
- sonnet: "anthropic:claude-3-5-sonnet-latest",
95
- "claude-sonnet": "anthropic:claude-3-5-sonnet-latest",
96
- haiku: "anthropic:claude-3-5-haiku-latest",
97
- "claude-haiku": "anthropic:claude-3-5-haiku-latest",
98
- opus: "anthropic:claude-3-opus-latest",
99
- "claude-opus": "anthropic:claude-3-opus-latest",
94
+ sonnet: "anthropic:claude-sonnet-4-5",
95
+ "claude-sonnet": "anthropic:claude-sonnet-4-5",
96
+ haiku: "anthropic:claude-haiku-4-5",
97
+ "claude-haiku": "anthropic:claude-haiku-4-5",
98
+ opus: "anthropic:claude-opus-4-5",
99
+ "claude-opus": "anthropic:claude-opus-4-5",
100
100
  // Gemini aliases
101
101
  flash: "gemini:gemini-2.0-flash",
102
102
  "gemini-flash": "gemini:gemini-2.0-flash",
103
- "gemini-pro": "gemini:gemini-2.0-pro",
104
- pro: "gemini:gemini-2.0-pro"
103
+ "gemini-pro": "gemini:gemini-2.5-pro",
104
+ pro: "gemini:gemini-2.5-pro"
105
105
  };
106
106
  KNOWN_MODEL_PATTERNS = [
107
107
  /^gpt-?\d/i,
@@ -1707,30 +1707,6 @@ var init_anthropic_models = __esm({
1707
1707
  "src/providers/anthropic-models.ts"() {
1708
1708
  "use strict";
1709
1709
  ANTHROPIC_MODELS = [
1710
- {
1711
- provider: "anthropic",
1712
- modelId: "claude-opus-4-5-20251124",
1713
- displayName: "Claude Opus 4.5",
1714
- contextWindow: 2e5,
1715
- maxOutputTokens: 64e3,
1716
- pricing: {
1717
- input: 5,
1718
- output: 25,
1719
- cachedInput: 0.5
1720
- },
1721
- knowledgeCutoff: "2025-03",
1722
- features: {
1723
- streaming: true,
1724
- functionCalling: true,
1725
- vision: true,
1726
- reasoning: true
1727
- },
1728
- metadata: {
1729
- family: "Claude 4",
1730
- releaseDate: "2025-11-24",
1731
- notes: "Most powerful model. 80.9% SWE-bench Verified, 66.3% OSWorld. Best for coding and computer use."
1732
- }
1733
- },
1734
1710
  {
1735
1711
  provider: "anthropic",
1736
1712
  modelId: "claude-sonnet-4-5-20250929",
@@ -1919,6 +1895,79 @@ var init_anthropic_models = __esm({
1919
1895
  releaseDate: "2024-03-07",
1920
1896
  notes: "Legacy model - upgrade to Haiku 4.5 for better performance"
1921
1897
  }
1898
+ },
1899
+ // Modern aliases (recommended by Anthropic)
1900
+ {
1901
+ provider: "anthropic",
1902
+ modelId: "claude-haiku-4-5",
1903
+ displayName: "Claude Haiku 4.5",
1904
+ contextWindow: 2e5,
1905
+ maxOutputTokens: 64e3,
1906
+ pricing: {
1907
+ input: 1,
1908
+ output: 5,
1909
+ cachedInput: 0.1
1910
+ },
1911
+ knowledgeCutoff: "2025-02",
1912
+ features: {
1913
+ streaming: true,
1914
+ functionCalling: true,
1915
+ vision: true,
1916
+ reasoning: true
1917
+ },
1918
+ metadata: {
1919
+ family: "Claude 4",
1920
+ releaseDate: "2025-10-01",
1921
+ notes: "Alias for claude-haiku-4-5-20251001. Fastest model with near-frontier intelligence."
1922
+ }
1923
+ },
1924
+ {
1925
+ provider: "anthropic",
1926
+ modelId: "claude-sonnet-4-5",
1927
+ displayName: "Claude Sonnet 4.5",
1928
+ contextWindow: 2e5,
1929
+ maxOutputTokens: 64e3,
1930
+ pricing: {
1931
+ input: 3,
1932
+ output: 15,
1933
+ cachedInput: 0.3
1934
+ },
1935
+ knowledgeCutoff: "2025-01",
1936
+ features: {
1937
+ streaming: true,
1938
+ functionCalling: true,
1939
+ vision: true,
1940
+ reasoning: true
1941
+ },
1942
+ metadata: {
1943
+ family: "Claude 4",
1944
+ releaseDate: "2025-09-29",
1945
+ notes: "Alias for claude-sonnet-4-5-20250929. Smartest model for complex agents and coding."
1946
+ }
1947
+ },
1948
+ {
1949
+ provider: "anthropic",
1950
+ modelId: "claude-opus-4-5",
1951
+ displayName: "Claude Opus 4.5",
1952
+ contextWindow: 2e5,
1953
+ maxOutputTokens: 64e3,
1954
+ pricing: {
1955
+ input: 5,
1956
+ output: 25,
1957
+ cachedInput: 0.5
1958
+ },
1959
+ knowledgeCutoff: "2025-03",
1960
+ features: {
1961
+ streaming: true,
1962
+ functionCalling: true,
1963
+ vision: true,
1964
+ reasoning: true
1965
+ },
1966
+ metadata: {
1967
+ family: "Claude 4",
1968
+ releaseDate: "2025-11-24",
1969
+ notes: "Alias for claude-opus-4-5-20251124. Most powerful model for coding and computer use."
1970
+ }
1922
1971
  }
1923
1972
  ];
1924
1973
  }
@@ -4445,4 +4494,4 @@ export {
4445
4494
  init_builder,
4446
4495
  BaseGadget
4447
4496
  };
4448
- //# sourceMappingURL=chunk-J3NCIWMY.js.map
4497
+ //# sourceMappingURL=chunk-VYBRYR2S.js.map