language-models 0.0.1
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/.turbo/turbo-build.log +4 -0
- package/.turbo/turbo-test.log +18 -0
- package/README.md +79 -0
- package/data/models.json +18805 -0
- package/dist/aliases.d.ts +5 -0
- package/dist/aliases.d.ts.map +1 -0
- package/dist/aliases.js +41 -0
- package/dist/aliases.js.map +1 -0
- package/dist/data/models.json +18805 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/models.d.ts +97 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +109 -0
- package/dist/models.js.map +1 -0
- package/package.json +34 -0
- package/scripts/fetch-models.ts +115 -0
- package/src/aliases.test.ts +319 -0
- package/src/aliases.ts +49 -0
- package/src/index.test.ts +400 -0
- package/src/index.ts +21 -0
- package/src/models.test.ts +392 -0
- package/src/models.ts +174 -0
- package/tsconfig.json +9 -0
- package/vitest.config.ts +11 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aliases.d.ts","sourceRoot":"","sources":["../src/aliases.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA4C1C,CAAA"}
|
package/dist/aliases.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model aliases - map simple names to full model IDs
|
|
3
|
+
*/
|
|
4
|
+
export const ALIASES = {
|
|
5
|
+
// Claude (Anthropic)
|
|
6
|
+
'opus': 'anthropic/claude-opus-4.5',
|
|
7
|
+
'sonnet': 'anthropic/claude-sonnet-4.5',
|
|
8
|
+
'haiku': 'anthropic/claude-haiku-4.5',
|
|
9
|
+
'claude': 'anthropic/claude-sonnet-4.5',
|
|
10
|
+
// GPT (OpenAI)
|
|
11
|
+
'gpt': 'openai/gpt-4o',
|
|
12
|
+
'gpt-4o': 'openai/gpt-4o',
|
|
13
|
+
'gpt-4o-mini': 'openai/gpt-4o-mini',
|
|
14
|
+
'4o': 'openai/gpt-4o',
|
|
15
|
+
'o1': 'openai/o1',
|
|
16
|
+
'o3': 'openai/o3',
|
|
17
|
+
'o3-mini': 'openai/o3-mini',
|
|
18
|
+
'o4-mini': 'openai/o4-mini',
|
|
19
|
+
// Gemini (Google)
|
|
20
|
+
'gemini': 'google/gemini-2.5-flash',
|
|
21
|
+
'flash': 'google/gemini-2.5-flash',
|
|
22
|
+
'gemini-flash': 'google/gemini-2.5-flash',
|
|
23
|
+
'gemini-pro': 'google/gemini-2.5-pro',
|
|
24
|
+
// Llama (Meta)
|
|
25
|
+
'llama': 'meta-llama/llama-4-maverick',
|
|
26
|
+
'llama-4': 'meta-llama/llama-4-maverick',
|
|
27
|
+
'llama-70b': 'meta-llama/llama-3.3-70b-instruct',
|
|
28
|
+
// DeepSeek
|
|
29
|
+
'deepseek': 'deepseek/deepseek-chat',
|
|
30
|
+
'r1': 'deepseek/deepseek-r1',
|
|
31
|
+
// Mistral
|
|
32
|
+
'mistral': 'mistralai/mistral-large-2411',
|
|
33
|
+
'codestral': 'mistralai/codestral-2501',
|
|
34
|
+
// Qwen
|
|
35
|
+
'qwen': 'qwen/qwen3-235b-a22b',
|
|
36
|
+
// Grok
|
|
37
|
+
'grok': 'x-ai/grok-3',
|
|
38
|
+
// Perplexity
|
|
39
|
+
'sonar': 'perplexity/sonar-pro',
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=aliases.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aliases.js","sourceRoot":"","sources":["../src/aliases.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,OAAO,GAA2B;IAC7C,qBAAqB;IACrB,MAAM,EAAE,2BAA2B;IACnC,QAAQ,EAAE,6BAA6B;IACvC,OAAO,EAAE,4BAA4B;IACrC,QAAQ,EAAE,6BAA6B;IAEvC,eAAe;IACf,KAAK,EAAE,eAAe;IACtB,QAAQ,EAAE,eAAe;IACzB,aAAa,EAAE,oBAAoB;IACnC,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,WAAW;IACjB,SAAS,EAAE,gBAAgB;IAC3B,SAAS,EAAE,gBAAgB;IAE3B,kBAAkB;IAClB,QAAQ,EAAE,yBAAyB;IACnC,OAAO,EAAE,yBAAyB;IAClC,cAAc,EAAE,yBAAyB;IACzC,YAAY,EAAE,uBAAuB;IAErC,eAAe;IACf,OAAO,EAAE,6BAA6B;IACtC,SAAS,EAAE,6BAA6B;IACxC,WAAW,EAAE,mCAAmC;IAEhD,WAAW;IACX,UAAU,EAAE,wBAAwB;IACpC,IAAI,EAAE,sBAAsB;IAE5B,UAAU;IACV,SAAS,EAAE,8BAA8B;IACzC,WAAW,EAAE,0BAA0B;IAEvC,OAAO;IACP,MAAM,EAAE,sBAAsB;IAE9B,OAAO;IACP,MAAM,EAAE,aAAa;IAErB,aAAa;IACb,OAAO,EAAE,sBAAsB;CAChC,CAAA"}
|