llm-zoo 1.0.1 → 1.0.3

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  LLM pricing and capabilities change weekly. Docs are scattered. There's no single source of truth.
4
4
 
5
- **One package. 80+ models. Always current.**
5
+ **One package. 70+ models. Always current.**
6
6
 
7
7
  ```typescript
8
8
  import { lookup, cost, cheapest } from 'llm-zoo';
@@ -142,13 +142,12 @@ const { totalModels, providers, pricing, context } = insights();
142
142
 
143
143
  ---
144
144
 
145
- ## Zod Schemas
145
+ ## Zod Schemas (v4)
146
146
 
147
- Validate model configs at runtime:
147
+ Validate model configs at runtime (requires `zod@^4.0.0`):
148
148
 
149
149
  ```typescript
150
- import { ModelConfigSchema } from 'llm-zoo';
151
- // or import { ModelConfigSchema } from 'llm-zoo/schemas';
150
+ import { ModelConfigSchema } from 'llm-zoo/schemas';
152
151
 
153
152
  // Validate custom model config
154
153
  const result = ModelConfigSchema.safeParse(myConfig);
@@ -153,74 +153,4 @@ interface ModelConfig {
153
153
  requiresResponsesAPI?: boolean;
154
154
  }
155
155
 
156
- /**
157
- * Anthropic Claude model configurations.
158
- * Includes Claude 4.x, 3.x Opus, Sonnet, and Haiku variants.
159
- */
160
- declare const ANTHROPIC_MODELS: Record<string, ModelConfig>;
161
-
162
- /**
163
- * GitHub Copilot model configurations.
164
- * These models are free-tier and powered by GPT-4o.
165
- */
166
- declare const COPILOT_MODELS: Record<string, ModelConfig>;
167
-
168
- /**
169
- * Alibaba DashScope (Qwen) model configurations.
170
- * Includes Qwen 3 Max, Plus, and Turbo variants.
171
- */
172
- declare const DASHSCOPE_MODELS: Record<string, ModelConfig>;
173
-
174
- /**
175
- * DeepSeek model configurations.
176
- * Includes V3.2, R1, and thinking variants.
177
- *
178
- * Model name conventions:
179
- * - fullName: Model name for native DeepSeek API (e.g., 'deepseek-chat', 'deepseek-reasoner')
180
- * - openrouterFullName: Model name for OpenRouter API (e.g., 'deepseek/deepseek-v3.2')
181
- */
182
- declare const DEEPSEEK_MODELS: Record<string, ModelConfig>;
183
-
184
- /**
185
- * Google Gemini model configurations.
186
- * Includes Gemini 3.x and 2.5 Pro/Flash variants.
187
- */
188
- declare const GOOGLE_MODELS: Record<string, ModelConfig>;
189
-
190
- /**
191
- * Moonshot AI (Kimi) model configurations.
192
- * Includes Kimi K2 and thinking variants.
193
- */
194
- declare const MOONSHOT_MODELS: Record<string, ModelConfig>;
195
-
196
- /**
197
- * OpenAI deep research model configurations.
198
- * These models require the Responses API and are optimized for research tasks.
199
- */
200
- declare const OPENAI_DEEP_RESEARCH_MODELS: Record<string, ModelConfig>;
201
-
202
- /**
203
- * OpenAI GPT model configurations.
204
- * Includes GPT-4.x, GPT-4o, and GPT-4.5 variants.
205
- */
206
- declare const OPENAI_MODELS: Record<string, ModelConfig>;
207
-
208
- /**
209
- * OpenAI reasoning model configurations.
210
- * Includes o1, o3, o4, and GPT-5 reasoning variants.
211
- */
212
- declare const OPENAI_REASONING_MODELS: Record<string, ModelConfig>;
213
-
214
- /**
215
- * Other model configurations (OpenRouter-only models).
216
- * Includes models that are only available through OpenRouter proxy.
217
- */
218
- declare const OTHER_MODELS: Record<string, ModelConfig>;
219
-
220
- /**
221
- * xAI Grok model configurations.
222
- * Includes Grok 4, 3, and 2 variants.
223
- */
224
- declare const XAI_MODELS: Record<string, ModelConfig>;
225
-
226
- export { ANTHROPIC_MODELS as A, COPILOT_MODELS as C, DEFAULT_MODEL_CAPABILITIES as D, GOOGLE_MODELS as G, type ModelConfig as M, OPENAI_MODELS as O, ReasoningEffort as R, XAI_MODELS as X, ModelProvider as a, type ModelCapabilities as b, DEFAULT_CONTEXT_WINDOW as c, OPENAI_REASONING_MODELS as d, OPENAI_DEEP_RESEARCH_MODELS as e, DEEPSEEK_MODELS as f, MOONSHOT_MODELS as g, DASHSCOPE_MODELS as h, OTHER_MODELS as i };
156
+ export { DEFAULT_MODEL_CAPABILITIES as D, ModelProvider as M, ReasoningEffort as R, type ModelConfig as a, type ModelCapabilities as b, DEFAULT_CONTEXT_WINDOW as c };
@@ -153,74 +153,4 @@ interface ModelConfig {
153
153
  requiresResponsesAPI?: boolean;
154
154
  }
155
155
 
156
- /**
157
- * Anthropic Claude model configurations.
158
- * Includes Claude 4.x, 3.x Opus, Sonnet, and Haiku variants.
159
- */
160
- declare const ANTHROPIC_MODELS: Record<string, ModelConfig>;
161
-
162
- /**
163
- * GitHub Copilot model configurations.
164
- * These models are free-tier and powered by GPT-4o.
165
- */
166
- declare const COPILOT_MODELS: Record<string, ModelConfig>;
167
-
168
- /**
169
- * Alibaba DashScope (Qwen) model configurations.
170
- * Includes Qwen 3 Max, Plus, and Turbo variants.
171
- */
172
- declare const DASHSCOPE_MODELS: Record<string, ModelConfig>;
173
-
174
- /**
175
- * DeepSeek model configurations.
176
- * Includes V3.2, R1, and thinking variants.
177
- *
178
- * Model name conventions:
179
- * - fullName: Model name for native DeepSeek API (e.g., 'deepseek-chat', 'deepseek-reasoner')
180
- * - openrouterFullName: Model name for OpenRouter API (e.g., 'deepseek/deepseek-v3.2')
181
- */
182
- declare const DEEPSEEK_MODELS: Record<string, ModelConfig>;
183
-
184
- /**
185
- * Google Gemini model configurations.
186
- * Includes Gemini 3.x and 2.5 Pro/Flash variants.
187
- */
188
- declare const GOOGLE_MODELS: Record<string, ModelConfig>;
189
-
190
- /**
191
- * Moonshot AI (Kimi) model configurations.
192
- * Includes Kimi K2 and thinking variants.
193
- */
194
- declare const MOONSHOT_MODELS: Record<string, ModelConfig>;
195
-
196
- /**
197
- * OpenAI deep research model configurations.
198
- * These models require the Responses API and are optimized for research tasks.
199
- */
200
- declare const OPENAI_DEEP_RESEARCH_MODELS: Record<string, ModelConfig>;
201
-
202
- /**
203
- * OpenAI GPT model configurations.
204
- * Includes GPT-4.x, GPT-4o, and GPT-4.5 variants.
205
- */
206
- declare const OPENAI_MODELS: Record<string, ModelConfig>;
207
-
208
- /**
209
- * OpenAI reasoning model configurations.
210
- * Includes o1, o3, o4, and GPT-5 reasoning variants.
211
- */
212
- declare const OPENAI_REASONING_MODELS: Record<string, ModelConfig>;
213
-
214
- /**
215
- * Other model configurations (OpenRouter-only models).
216
- * Includes models that are only available through OpenRouter proxy.
217
- */
218
- declare const OTHER_MODELS: Record<string, ModelConfig>;
219
-
220
- /**
221
- * xAI Grok model configurations.
222
- * Includes Grok 4, 3, and 2 variants.
223
- */
224
- declare const XAI_MODELS: Record<string, ModelConfig>;
225
-
226
- export { ANTHROPIC_MODELS as A, COPILOT_MODELS as C, DEFAULT_MODEL_CAPABILITIES as D, GOOGLE_MODELS as G, type ModelConfig as M, OPENAI_MODELS as O, ReasoningEffort as R, XAI_MODELS as X, ModelProvider as a, type ModelCapabilities as b, DEFAULT_CONTEXT_WINDOW as c, OPENAI_REASONING_MODELS as d, OPENAI_DEEP_RESEARCH_MODELS as e, DEEPSEEK_MODELS as f, MOONSHOT_MODELS as g, DASHSCOPE_MODELS as h, OTHER_MODELS as i };
156
+ export { DEFAULT_MODEL_CAPABILITIES as D, ModelProvider as M, ReasoningEffort as R, type ModelConfig as a, type ModelCapabilities as b, DEFAULT_CONTEXT_WINDOW as c };
package/dist/index.cjs CHANGED
@@ -775,9 +775,9 @@ var MOONSHOT_MODELS = {
775
775
  openrouterFullName: "moonshotai/moonshot-v1-128k",
776
776
  provider: "moonshot" /* MOONSHOT */,
777
777
  maxOutputTokens: 64e3,
778
- contextWindow: 128e3,
779
- inputPrice: 0.28,
780
- outputPrice: 1.12,
778
+ contextWindow: 131072,
779
+ inputPrice: 2,
780
+ outputPrice: 5,
781
781
  capabilities: {
782
782
  ...MOONSHOT_DEFAULT_CAPABILITIES,
783
783
  supportsVision: false
@@ -786,13 +786,13 @@ var MOONSHOT_MODELS = {
786
786
  },
787
787
  kimiv: {
788
788
  name: "kimi128kv",
789
- fullName: "moonshot-v1-128k-vision",
789
+ fullName: "moonshot-v1-128k-vision-preview",
790
790
  openrouterFullName: "moonshotai/moonshot-v1-128k-vision",
791
791
  provider: "moonshot" /* MOONSHOT */,
792
792
  maxOutputTokens: 64e3,
793
- contextWindow: 128e3,
794
- inputPrice: 0.35,
795
- outputPrice: 1.4,
793
+ contextWindow: 131072,
794
+ inputPrice: 2,
795
+ outputPrice: 5,
796
796
  capabilities: {
797
797
  ...MOONSHOT_DEFAULT_CAPABILITIES,
798
798
  supportsVision: true
@@ -840,13 +840,13 @@ var MOONSHOT_MODELS = {
840
840
  provider: "moonshot" /* MOONSHOT */,
841
841
  maxOutputTokens: 64e3,
842
842
  contextWindow: 262144,
843
- inputPrice: 0.56 * 4,
844
- outputPrice: 2.22 * 4,
843
+ inputPrice: 1.15,
844
+ outputPrice: 8,
845
845
  capabilities: {
846
846
  ...MOONSHOT_DEFAULT_CAPABILITIES,
847
847
  supportsVision: false,
848
848
  supportsAutoPromptCaching: true,
849
- cacheDiscountFactor: 0.25,
849
+ cacheDiscountFactor: 0.15 / 1.15,
850
850
  supportsReasoning: false
851
851
  },
852
852
  openRouterOnly: false
@@ -858,8 +858,8 @@ var MOONSHOT_MODELS = {
858
858
  provider: "moonshot" /* MOONSHOT */,
859
859
  maxOutputTokens: 64e3,
860
860
  contextWindow: 262144,
861
- inputPrice: 0.56,
862
- outputPrice: 2.22,
861
+ inputPrice: 0.6,
862
+ outputPrice: 2.5,
863
863
  capabilities: {
864
864
  ...MOONSHOT_DEFAULT_CAPABILITIES,
865
865
  supportsVision: false,
@@ -878,15 +878,53 @@ var MOONSHOT_MODELS = {
878
878
  provider: "moonshot" /* MOONSHOT */,
879
879
  maxOutputTokens: 64e3,
880
880
  contextWindow: 262144,
881
- inputPrice: 0.56 * 4,
882
- outputPrice: 2.22 * 4,
881
+ inputPrice: 1.15,
882
+ outputPrice: 8,
883
883
  capabilities: {
884
884
  ...MOONSHOT_DEFAULT_CAPABILITIES,
885
885
  supportsVision: false,
886
886
  supportsReasoning: true,
887
887
  supportsInterleavedThinking: true,
888
888
  supportsAutoPromptCaching: true,
889
- cacheDiscountFactor: 0.25,
889
+ cacheDiscountFactor: 0.15 / 1.15,
890
+ reasoningEffort: "high" /* HIGH */
891
+ },
892
+ openRouterOnly: false
893
+ },
894
+ // kimi-k2.5: A model that can enable or disable thinking capability, enabled by default. You can disable thinking by using {"type": "disabled"}
895
+ kimi25: {
896
+ name: "kimi25",
897
+ fullName: "kimi-k2.5",
898
+ openrouterFullName: "moonshotai/kimi-k2.5",
899
+ provider: "moonshot" /* MOONSHOT */,
900
+ maxOutputTokens: 64e3,
901
+ contextWindow: 262144,
902
+ inputPrice: 0.6,
903
+ outputPrice: 3,
904
+ capabilities: {
905
+ ...MOONSHOT_DEFAULT_CAPABILITIES,
906
+ supportsVision: true,
907
+ supportsAutoPromptCaching: true,
908
+ cacheDiscountFactor: 0.1 / 0.6
909
+ },
910
+ openRouterOnly: false
911
+ },
912
+ kimi25T: {
913
+ name: "kimi25T",
914
+ fullName: "kimi-k2.5",
915
+ openrouterFullName: "moonshotai/kimi-k2.5",
916
+ provider: "moonshot" /* MOONSHOT */,
917
+ maxOutputTokens: 64e3,
918
+ contextWindow: 262144,
919
+ inputPrice: 0.6,
920
+ outputPrice: 3,
921
+ capabilities: {
922
+ ...MOONSHOT_DEFAULT_CAPABILITIES,
923
+ supportsVision: true,
924
+ supportsReasoning: true,
925
+ supportsInterleavedThinking: true,
926
+ supportsAutoPromptCaching: true,
927
+ cacheDiscountFactor: 0.1 / 0.6,
890
928
  reasoningEffort: "high" /* HIGH */
891
929
  },
892
930
  openRouterOnly: false