modelpedia 0.0.2 → 0.0.5
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 +141 -0
- package/dist/index.cjs +1 -101
- package/dist/index.d.cts +10 -2
- package/dist/index.d.mts +10 -2
- package/dist/index.mjs +1 -92
- package/dist/providers/alibaba.cjs +4 -835
- package/dist/providers/alibaba.d.cts +1 -1
- package/dist/providers/alibaba.d.mts +1 -1
- package/dist/providers/alibaba.mjs +4 -833
- package/dist/providers/amazon.cjs +4 -1484
- package/dist/providers/amazon.d.cts +1 -1
- package/dist/providers/amazon.d.mts +1 -1
- package/dist/providers/amazon.mjs +4 -1482
- package/dist/providers/anthropic.cjs +3 -698
- package/dist/providers/anthropic.d.cts +1 -1
- package/dist/providers/anthropic.d.mts +1 -1
- package/dist/providers/anthropic.mjs +3 -696
- package/dist/providers/azure.cjs +6 -1491
- package/dist/providers/azure.d.cts +1 -1
- package/dist/providers/azure.d.mts +1 -1
- package/dist/providers/azure.mjs +6 -1489
- package/dist/providers/baseten.cjs +3 -279
- package/dist/providers/baseten.d.cts +1 -1
- package/dist/providers/baseten.d.mts +1 -1
- package/dist/providers/baseten.mjs +3 -277
- package/dist/providers/cerebras.cjs +4 -145
- package/dist/providers/cerebras.d.cts +1 -1
- package/dist/providers/cerebras.d.mts +1 -1
- package/dist/providers/cerebras.mjs +4 -143
- package/dist/providers/cloudflare-ai-gateway.cjs +4 -0
- package/dist/providers/cloudflare-ai-gateway.d.cts +7 -0
- package/dist/providers/cloudflare-ai-gateway.d.mts +7 -0
- package/dist/providers/cloudflare-ai-gateway.mjs +4 -0
- package/dist/providers/cloudflare-workers-ai.cjs +4 -0
- package/dist/providers/cloudflare-workers-ai.d.cts +7 -0
- package/dist/providers/cloudflare-workers-ai.d.mts +7 -0
- package/dist/providers/cloudflare-workers-ai.mjs +4 -0
- package/dist/providers/cohere.cjs +5 -525
- package/dist/providers/cohere.d.cts +1 -1
- package/dist/providers/cohere.d.mts +1 -1
- package/dist/providers/cohere.mjs +5 -523
- package/dist/providers/cursor.cjs +1 -856
- package/dist/providers/cursor.d.cts +1 -1
- package/dist/providers/cursor.d.mts +1 -1
- package/dist/providers/cursor.mjs +1 -854
- package/dist/providers/deepseek.cjs +3 -64
- package/dist/providers/deepseek.d.cts +1 -1
- package/dist/providers/deepseek.d.mts +1 -1
- package/dist/providers/deepseek.mjs +3 -62
- package/dist/providers/fireworks.cjs +3 -3794
- package/dist/providers/fireworks.d.cts +1 -1
- package/dist/providers/fireworks.d.mts +1 -1
- package/dist/providers/fireworks.mjs +3 -3792
- package/dist/providers/google.cjs +6 -972
- package/dist/providers/google.d.cts +1 -1
- package/dist/providers/google.d.mts +1 -1
- package/dist/providers/google.mjs +6 -970
- package/dist/providers/groq.cjs +3 -353
- package/dist/providers/groq.d.cts +1 -1
- package/dist/providers/groq.d.mts +1 -1
- package/dist/providers/groq.mjs +3 -351
- package/dist/providers/huggingface.cjs +3 -1022
- package/dist/providers/huggingface.d.cts +1 -1
- package/dist/providers/huggingface.d.mts +1 -1
- package/dist/providers/huggingface.mjs +3 -1020
- package/dist/providers/meta.cjs +3 -481
- package/dist/providers/meta.d.cts +1 -1
- package/dist/providers/meta.d.mts +1 -1
- package/dist/providers/meta.mjs +3 -479
- package/dist/providers/minimax.cjs +3 -156
- package/dist/providers/minimax.d.cts +1 -1
- package/dist/providers/minimax.d.mts +1 -1
- package/dist/providers/minimax.mjs +3 -154
- package/dist/providers/mistral.cjs +3 -1594
- package/dist/providers/mistral.d.cts +1 -1
- package/dist/providers/mistral.d.mts +1 -1
- package/dist/providers/mistral.mjs +3 -1592
- package/dist/providers/moonshot.cjs +3 -138
- package/dist/providers/moonshot.d.cts +1 -1
- package/dist/providers/moonshot.d.mts +1 -1
- package/dist/providers/moonshot.mjs +3 -136
- package/dist/providers/nvidia.cjs +3 -2040
- package/dist/providers/nvidia.d.cts +1 -1
- package/dist/providers/nvidia.d.mts +1 -1
- package/dist/providers/nvidia.mjs +3 -2038
- package/dist/providers/ollama.cjs +3 -326
- package/dist/providers/ollama.d.cts +1 -1
- package/dist/providers/ollama.d.mts +1 -1
- package/dist/providers/ollama.mjs +3 -324
- package/dist/providers/openai.cjs +3 -9079
- package/dist/providers/openai.d.cts +1 -1
- package/dist/providers/openai.d.mts +1 -1
- package/dist/providers/openai.mjs +3 -9077
- package/dist/providers/opencode.cjs +3 -367
- package/dist/providers/opencode.d.cts +1 -1
- package/dist/providers/opencode.d.mts +1 -1
- package/dist/providers/opencode.mjs +3 -365
- package/dist/providers/openrouter.cjs +21 -7835
- package/dist/providers/openrouter.d.cts +1 -1
- package/dist/providers/openrouter.d.mts +1 -1
- package/dist/providers/openrouter.mjs +21 -7833
- package/dist/providers/perplexity.cjs +3 -311
- package/dist/providers/perplexity.d.cts +1 -1
- package/dist/providers/perplexity.d.mts +1 -1
- package/dist/providers/perplexity.mjs +3 -309
- package/dist/providers/qwen.cjs +3 -835
- package/dist/providers/qwen.d.cts +1 -1
- package/dist/providers/qwen.d.mts +1 -1
- package/dist/providers/qwen.mjs +3 -833
- package/dist/providers/together.cjs +4 -360
- package/dist/providers/together.d.cts +1 -1
- package/dist/providers/together.d.mts +1 -1
- package/dist/providers/together.mjs +4 -358
- package/dist/providers/vercel.cjs +3 -4037
- package/dist/providers/vercel.d.cts +1 -1
- package/dist/providers/vercel.d.mts +1 -1
- package/dist/providers/vercel.mjs +3 -4035
- package/dist/providers/vertex.cjs +10 -1072
- package/dist/providers/vertex.d.cts +1 -1
- package/dist/providers/vertex.d.mts +1 -1
- package/dist/providers/vertex.mjs +10 -1070
- package/dist/providers/xai.cjs +3 -301
- package/dist/providers/xai.d.cts +1 -1
- package/dist/providers/xai.d.mts +1 -1
- package/dist/providers/xai.mjs +3 -299
- package/dist/providers/zai.cjs +3 -243
- package/dist/providers/zai.d.cts +1 -1
- package/dist/providers/zai.d.mts +1 -1
- package/dist/providers/zai.mjs +3 -241
- package/dist/types.d.cts +80 -8
- package/dist/types.d.mts +80 -8
- package/package.json +3 -3
- package/dist/providers/cloudflare.cjs +0 -826
- package/dist/providers/cloudflare.d.cts +0 -7
- package/dist/providers/cloudflare.d.mts +0 -7
- package/dist/providers/cloudflare.mjs +0 -824
package/dist/types.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region src/types.d.ts
|
|
1
|
+
//#region ../data/src/types.d.ts
|
|
2
2
|
/** Model lifecycle status */
|
|
3
3
|
type ModelStatus = "active" | "deprecated" | "preview";
|
|
4
4
|
/** Data source: "official" (auto-fetched, scripts can overwrite) or "community" (manual, scripts skip) */
|
|
@@ -26,6 +26,8 @@ interface ModelCapabilities {
|
|
|
26
26
|
fine_tuning?: boolean;
|
|
27
27
|
/** Supports batch API */
|
|
28
28
|
batch?: boolean;
|
|
29
|
+
/** Supports prompt caching */
|
|
30
|
+
prompt_caching?: boolean;
|
|
29
31
|
}
|
|
30
32
|
/** Input and output modality support */
|
|
31
33
|
interface ModelModalities {
|
|
@@ -97,6 +99,8 @@ interface ModelData {
|
|
|
97
99
|
description?: string;
|
|
98
100
|
/** One-line tagline / subtitle */
|
|
99
101
|
tagline?: string;
|
|
102
|
+
/** URL to the model's official page / introduction page */
|
|
103
|
+
page_url?: string;
|
|
100
104
|
/** Current lifecycle status */
|
|
101
105
|
status?: ModelStatus;
|
|
102
106
|
/** Release date (YYYY-MM-DD), null if not applicable */
|
|
@@ -120,13 +124,19 @@ interface ModelData {
|
|
|
120
124
|
/** Pricing per 1M tokens */
|
|
121
125
|
pricing?: ModelPricing;
|
|
122
126
|
/** Model type classification */
|
|
123
|
-
model_type?: "chat" | "reasoning" | "embed" | "rerank" | "image" | "video" | "audio" | "tts" | "transcription" | "moderation" | "code" | "translation" | "other";
|
|
127
|
+
model_type?: "chat" | "reasoning" | "embed" | "rerank" | "image" | "video" | "audio" | "tts" | "transcription" | "moderation" | "code" | "translation" | "classification" | "other";
|
|
124
128
|
/** Supported tools and integrations (e.g. "function_calling", "web_search", "computer_use", "mcp") */
|
|
125
129
|
tools?: string[];
|
|
126
130
|
/** Supported API endpoints (e.g. "chat_completions", "responses", "batch") */
|
|
127
131
|
endpoints?: string[];
|
|
128
132
|
/** Whether output includes reasoning/thinking tokens (o-series, extended thinking) */
|
|
129
133
|
reasoning_tokens?: boolean;
|
|
134
|
+
/** License: SPDX ID ("apache-2.0", "mit"), custom name ("llama-3.3"), or "proprietary" */
|
|
135
|
+
license?: string;
|
|
136
|
+
/** Total parameters in billions (e.g. 70 for 70B) */
|
|
137
|
+
parameters?: number;
|
|
138
|
+
/** Active parameters in billions for MoE architectures (e.g. 22 for 235B-A22B) */
|
|
139
|
+
active_parameters?: number;
|
|
130
140
|
/**
|
|
131
141
|
* For alias models: list of snapshot IDs this alias has pointed to.
|
|
132
142
|
* e.g. on "claude-opus-4-6": ["claude-opus-4-6-20260101", "claude-opus-4-6-20260701"]
|
|
@@ -144,26 +154,44 @@ interface ModelData {
|
|
|
144
154
|
reasoning?: number;
|
|
145
155
|
/** Speed/latency rating (1-5 scale, 1=slow 5=fast) */
|
|
146
156
|
speed?: number;
|
|
147
|
-
/** Recommended successor model ID (for deprecated models) */
|
|
148
|
-
successor?: string;
|
|
157
|
+
/** Recommended successor model ID(s) (for deprecated models) */
|
|
158
|
+
successor?: string | string[];
|
|
149
159
|
/** Pricing notes/caveats (e.g. long-context surcharges, regional uplifts) */
|
|
150
160
|
pricing_notes?: string[];
|
|
161
|
+
/** Training data cutoff date (YYYY-MM or YYYY-MM-DD). Distinct from knowledge_cutoff which is the model's effective knowledge boundary. */
|
|
162
|
+
training_data_cutoff?: string | null;
|
|
163
|
+
/** Model architecture (e.g. "transformer", "moe", "ssm", "hybrid") */
|
|
164
|
+
architecture?: string;
|
|
165
|
+
/** Whether the model weights are publicly available for download */
|
|
166
|
+
open_weight?: boolean;
|
|
167
|
+
/** Provider-specific extra fields */
|
|
168
|
+
[key: string]: unknown;
|
|
151
169
|
}
|
|
152
170
|
/** Model data with provider context, used at runtime */
|
|
153
171
|
interface Model extends ModelData {
|
|
154
172
|
/** Provider this model belongs to (directory name, e.g. "openai", "openrouter") */
|
|
155
173
|
provider: string;
|
|
156
174
|
}
|
|
175
|
+
/** Provider type classification */
|
|
176
|
+
type ProviderType = "direct" | "aggregator" | "cloud";
|
|
157
177
|
/** AI model provider / API service */
|
|
158
178
|
interface Provider {
|
|
159
179
|
/** Unique provider identifier (directory name, e.g. "openai", "openrouter") */
|
|
160
180
|
id: string;
|
|
161
181
|
/** Display name (e.g. "OpenAI", "OpenRouter") */
|
|
162
182
|
name: string;
|
|
183
|
+
/** Short description of the provider */
|
|
184
|
+
description?: string;
|
|
185
|
+
/** Provider type: direct (creates models), aggregator (resells), cloud (platform) */
|
|
186
|
+
type?: ProviderType;
|
|
187
|
+
/** Alternative names / IDs this provider is known by (e.g. ["zhipu"] for "zai") */
|
|
188
|
+
aliases?: string[];
|
|
163
189
|
/** Headquarters country, ISO 3166-1 alpha-2 (e.g. "US", "CN", "FR") */
|
|
164
190
|
region: string;
|
|
165
|
-
/**
|
|
166
|
-
|
|
191
|
+
/** Headquarters city (e.g. "San Francisco, CA", "Paris", "Beijing") */
|
|
192
|
+
headquarters?: string;
|
|
193
|
+
/** Year the company was founded (e.g. 2021) */
|
|
194
|
+
founded?: number;
|
|
167
195
|
/** Provider website URL */
|
|
168
196
|
url: string;
|
|
169
197
|
/** API base URL */
|
|
@@ -172,15 +200,59 @@ interface Provider {
|
|
|
172
200
|
docs_url: string;
|
|
173
201
|
/** Pricing page URL */
|
|
174
202
|
pricing_url: string;
|
|
175
|
-
/** Playground base URL
|
|
203
|
+
/** Playground base URL */
|
|
176
204
|
playground_url?: string;
|
|
205
|
+
/** Status / uptime page URL */
|
|
206
|
+
status_url?: string;
|
|
207
|
+
/** Changelog / release notes URL */
|
|
208
|
+
changelog_url?: string;
|
|
209
|
+
/** Official SDK packages (e.g. { python: "openai", javascript: "@anthropic-ai/sdk" }) */
|
|
210
|
+
sdk?: Record<string, string>;
|
|
211
|
+
/** Whether the provider offers a free tier / free credits */
|
|
212
|
+
free_tier?: boolean;
|
|
213
|
+
/** Whether the API is OpenAI-compatible (accepts OpenAI SDK requests) */
|
|
214
|
+
openai_compatible?: boolean;
|
|
215
|
+
/** GitHub organization or repository URL */
|
|
216
|
+
github_url?: string;
|
|
217
|
+
/** URL to the provider's model listing / catalog page */
|
|
218
|
+
models_url?: string;
|
|
219
|
+
/** URL to the provider's tokenizer tool */
|
|
220
|
+
tokenizer_url?: string;
|
|
221
|
+
/** X/Twitter profile URL */
|
|
222
|
+
twitter_url?: string;
|
|
223
|
+
/** Discord community invite URL */
|
|
224
|
+
discord_url?: string;
|
|
225
|
+
/** Official blog or research blog URL */
|
|
226
|
+
blog_url?: string;
|
|
227
|
+
/** Terms of service URL */
|
|
228
|
+
terms_url?: string;
|
|
229
|
+
/** Support or contact page URL */
|
|
230
|
+
support_url?: string;
|
|
177
231
|
/** Inline SVG icon (monochrome, viewBox 0 0 24 24, fill="currentColor"). Auto-read from icon.svg. */
|
|
178
232
|
icon?: string;
|
|
179
233
|
}
|
|
234
|
+
/** A single entry in the changes log */
|
|
235
|
+
interface ChangeEntry {
|
|
236
|
+
/** ISO-8601 timestamp */
|
|
237
|
+
ts: string;
|
|
238
|
+
/** Provider id */
|
|
239
|
+
provider: string;
|
|
240
|
+
/** Model id */
|
|
241
|
+
model: string;
|
|
242
|
+
/** Type of change */
|
|
243
|
+
action: "create" | "update" | "delete";
|
|
244
|
+
/** Git commit hash */
|
|
245
|
+
commit?: string;
|
|
246
|
+
/** Field-level diffs (for updates) */
|
|
247
|
+
changes?: Record<string, {
|
|
248
|
+
from: unknown;
|
|
249
|
+
to: unknown;
|
|
250
|
+
}>;
|
|
251
|
+
}
|
|
180
252
|
/** Provider with its full model list, used in generated data */
|
|
181
253
|
interface ProviderWithModels extends Provider {
|
|
182
254
|
/** All models under this provider */
|
|
183
255
|
models: ModelData[];
|
|
184
256
|
}
|
|
185
257
|
//#endregion
|
|
186
|
-
export {
|
|
258
|
+
export { ModelData as a, ModelSource as c, PricingTierRow as d, Provider as f, ModelCapabilities as i, ModelStatus as l, ProviderWithModels as m, Modality as n, ModelModalities as o, ProviderType as p, Model as r, ModelPricing as s, ChangeEntry as t, PricingTier as u };
|
package/dist/types.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region src/types.d.ts
|
|
1
|
+
//#region ../data/src/types.d.ts
|
|
2
2
|
/** Model lifecycle status */
|
|
3
3
|
type ModelStatus = "active" | "deprecated" | "preview";
|
|
4
4
|
/** Data source: "official" (auto-fetched, scripts can overwrite) or "community" (manual, scripts skip) */
|
|
@@ -26,6 +26,8 @@ interface ModelCapabilities {
|
|
|
26
26
|
fine_tuning?: boolean;
|
|
27
27
|
/** Supports batch API */
|
|
28
28
|
batch?: boolean;
|
|
29
|
+
/** Supports prompt caching */
|
|
30
|
+
prompt_caching?: boolean;
|
|
29
31
|
}
|
|
30
32
|
/** Input and output modality support */
|
|
31
33
|
interface ModelModalities {
|
|
@@ -97,6 +99,8 @@ interface ModelData {
|
|
|
97
99
|
description?: string;
|
|
98
100
|
/** One-line tagline / subtitle */
|
|
99
101
|
tagline?: string;
|
|
102
|
+
/** URL to the model's official page / introduction page */
|
|
103
|
+
page_url?: string;
|
|
100
104
|
/** Current lifecycle status */
|
|
101
105
|
status?: ModelStatus;
|
|
102
106
|
/** Release date (YYYY-MM-DD), null if not applicable */
|
|
@@ -120,13 +124,19 @@ interface ModelData {
|
|
|
120
124
|
/** Pricing per 1M tokens */
|
|
121
125
|
pricing?: ModelPricing;
|
|
122
126
|
/** Model type classification */
|
|
123
|
-
model_type?: "chat" | "reasoning" | "embed" | "rerank" | "image" | "video" | "audio" | "tts" | "transcription" | "moderation" | "code" | "translation" | "other";
|
|
127
|
+
model_type?: "chat" | "reasoning" | "embed" | "rerank" | "image" | "video" | "audio" | "tts" | "transcription" | "moderation" | "code" | "translation" | "classification" | "other";
|
|
124
128
|
/** Supported tools and integrations (e.g. "function_calling", "web_search", "computer_use", "mcp") */
|
|
125
129
|
tools?: string[];
|
|
126
130
|
/** Supported API endpoints (e.g. "chat_completions", "responses", "batch") */
|
|
127
131
|
endpoints?: string[];
|
|
128
132
|
/** Whether output includes reasoning/thinking tokens (o-series, extended thinking) */
|
|
129
133
|
reasoning_tokens?: boolean;
|
|
134
|
+
/** License: SPDX ID ("apache-2.0", "mit"), custom name ("llama-3.3"), or "proprietary" */
|
|
135
|
+
license?: string;
|
|
136
|
+
/** Total parameters in billions (e.g. 70 for 70B) */
|
|
137
|
+
parameters?: number;
|
|
138
|
+
/** Active parameters in billions for MoE architectures (e.g. 22 for 235B-A22B) */
|
|
139
|
+
active_parameters?: number;
|
|
130
140
|
/**
|
|
131
141
|
* For alias models: list of snapshot IDs this alias has pointed to.
|
|
132
142
|
* e.g. on "claude-opus-4-6": ["claude-opus-4-6-20260101", "claude-opus-4-6-20260701"]
|
|
@@ -144,26 +154,44 @@ interface ModelData {
|
|
|
144
154
|
reasoning?: number;
|
|
145
155
|
/** Speed/latency rating (1-5 scale, 1=slow 5=fast) */
|
|
146
156
|
speed?: number;
|
|
147
|
-
/** Recommended successor model ID (for deprecated models) */
|
|
148
|
-
successor?: string;
|
|
157
|
+
/** Recommended successor model ID(s) (for deprecated models) */
|
|
158
|
+
successor?: string | string[];
|
|
149
159
|
/** Pricing notes/caveats (e.g. long-context surcharges, regional uplifts) */
|
|
150
160
|
pricing_notes?: string[];
|
|
161
|
+
/** Training data cutoff date (YYYY-MM or YYYY-MM-DD). Distinct from knowledge_cutoff which is the model's effective knowledge boundary. */
|
|
162
|
+
training_data_cutoff?: string | null;
|
|
163
|
+
/** Model architecture (e.g. "transformer", "moe", "ssm", "hybrid") */
|
|
164
|
+
architecture?: string;
|
|
165
|
+
/** Whether the model weights are publicly available for download */
|
|
166
|
+
open_weight?: boolean;
|
|
167
|
+
/** Provider-specific extra fields */
|
|
168
|
+
[key: string]: unknown;
|
|
151
169
|
}
|
|
152
170
|
/** Model data with provider context, used at runtime */
|
|
153
171
|
interface Model extends ModelData {
|
|
154
172
|
/** Provider this model belongs to (directory name, e.g. "openai", "openrouter") */
|
|
155
173
|
provider: string;
|
|
156
174
|
}
|
|
175
|
+
/** Provider type classification */
|
|
176
|
+
type ProviderType = "direct" | "aggregator" | "cloud";
|
|
157
177
|
/** AI model provider / API service */
|
|
158
178
|
interface Provider {
|
|
159
179
|
/** Unique provider identifier (directory name, e.g. "openai", "openrouter") */
|
|
160
180
|
id: string;
|
|
161
181
|
/** Display name (e.g. "OpenAI", "OpenRouter") */
|
|
162
182
|
name: string;
|
|
183
|
+
/** Short description of the provider */
|
|
184
|
+
description?: string;
|
|
185
|
+
/** Provider type: direct (creates models), aggregator (resells), cloud (platform) */
|
|
186
|
+
type?: ProviderType;
|
|
187
|
+
/** Alternative names / IDs this provider is known by (e.g. ["zhipu"] for "zai") */
|
|
188
|
+
aliases?: string[];
|
|
163
189
|
/** Headquarters country, ISO 3166-1 alpha-2 (e.g. "US", "CN", "FR") */
|
|
164
190
|
region: string;
|
|
165
|
-
/**
|
|
166
|
-
|
|
191
|
+
/** Headquarters city (e.g. "San Francisco, CA", "Paris", "Beijing") */
|
|
192
|
+
headquarters?: string;
|
|
193
|
+
/** Year the company was founded (e.g. 2021) */
|
|
194
|
+
founded?: number;
|
|
167
195
|
/** Provider website URL */
|
|
168
196
|
url: string;
|
|
169
197
|
/** API base URL */
|
|
@@ -172,15 +200,59 @@ interface Provider {
|
|
|
172
200
|
docs_url: string;
|
|
173
201
|
/** Pricing page URL */
|
|
174
202
|
pricing_url: string;
|
|
175
|
-
/** Playground base URL
|
|
203
|
+
/** Playground base URL */
|
|
176
204
|
playground_url?: string;
|
|
205
|
+
/** Status / uptime page URL */
|
|
206
|
+
status_url?: string;
|
|
207
|
+
/** Changelog / release notes URL */
|
|
208
|
+
changelog_url?: string;
|
|
209
|
+
/** Official SDK packages (e.g. { python: "openai", javascript: "@anthropic-ai/sdk" }) */
|
|
210
|
+
sdk?: Record<string, string>;
|
|
211
|
+
/** Whether the provider offers a free tier / free credits */
|
|
212
|
+
free_tier?: boolean;
|
|
213
|
+
/** Whether the API is OpenAI-compatible (accepts OpenAI SDK requests) */
|
|
214
|
+
openai_compatible?: boolean;
|
|
215
|
+
/** GitHub organization or repository URL */
|
|
216
|
+
github_url?: string;
|
|
217
|
+
/** URL to the provider's model listing / catalog page */
|
|
218
|
+
models_url?: string;
|
|
219
|
+
/** URL to the provider's tokenizer tool */
|
|
220
|
+
tokenizer_url?: string;
|
|
221
|
+
/** X/Twitter profile URL */
|
|
222
|
+
twitter_url?: string;
|
|
223
|
+
/** Discord community invite URL */
|
|
224
|
+
discord_url?: string;
|
|
225
|
+
/** Official blog or research blog URL */
|
|
226
|
+
blog_url?: string;
|
|
227
|
+
/** Terms of service URL */
|
|
228
|
+
terms_url?: string;
|
|
229
|
+
/** Support or contact page URL */
|
|
230
|
+
support_url?: string;
|
|
177
231
|
/** Inline SVG icon (monochrome, viewBox 0 0 24 24, fill="currentColor"). Auto-read from icon.svg. */
|
|
178
232
|
icon?: string;
|
|
179
233
|
}
|
|
234
|
+
/** A single entry in the changes log */
|
|
235
|
+
interface ChangeEntry {
|
|
236
|
+
/** ISO-8601 timestamp */
|
|
237
|
+
ts: string;
|
|
238
|
+
/** Provider id */
|
|
239
|
+
provider: string;
|
|
240
|
+
/** Model id */
|
|
241
|
+
model: string;
|
|
242
|
+
/** Type of change */
|
|
243
|
+
action: "create" | "update" | "delete";
|
|
244
|
+
/** Git commit hash */
|
|
245
|
+
commit?: string;
|
|
246
|
+
/** Field-level diffs (for updates) */
|
|
247
|
+
changes?: Record<string, {
|
|
248
|
+
from: unknown;
|
|
249
|
+
to: unknown;
|
|
250
|
+
}>;
|
|
251
|
+
}
|
|
180
252
|
/** Provider with its full model list, used in generated data */
|
|
181
253
|
interface ProviderWithModels extends Provider {
|
|
182
254
|
/** All models under this provider */
|
|
183
255
|
models: ModelData[];
|
|
184
256
|
}
|
|
185
257
|
//#endregion
|
|
186
|
-
export {
|
|
258
|
+
export { ModelData as a, ModelSource as c, PricingTierRow as d, Provider as f, ModelCapabilities as i, ModelStatus as l, ProviderWithModels as m, Modality as n, ModelModalities as o, ProviderType as p, Model as r, ModelPricing as s, ChangeEntry as t, PricingTier as u };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "modelpedia",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Open catalog of AI model data — specs, pricing, and capabilities across 30+ providers and
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"description": "Open catalog of AI model data — specs, pricing, and capabilities across 30+ providers and 4000+ models",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -70,4 +70,4 @@
|
|
|
70
70
|
"tsdown": "^0.21.4",
|
|
71
71
|
"typescript": "catalog:"
|
|
72
72
|
}
|
|
73
|
-
}
|
|
73
|
+
}
|