language-models 0.1.0 → 2.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 +5 -0
- package/CHANGELOG.md +3 -0
- package/README.md +56 -142
- package/data/models.json +18805 -0
- package/dist/aliases.d.ts +5 -1
- package/dist/aliases.d.ts.map +1 -0
- package/dist/aliases.js +40 -4
- package/dist/aliases.js.map +1 -0
- package/dist/data/models.json +18805 -0
- package/dist/index.d.ts +10 -7
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -0
- package/dist/models.d.ts +94 -167
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +109 -69803
- package/dist/models.js.map +1 -0
- package/package.json +25 -23
- package/scripts/fetch-models.ts +115 -0
- package/src/aliases.test.ts +319 -0
- package/src/aliases.ts +48 -4
- package/src/index.test.ts +400 -0
- package/src/index.ts +20 -9
- package/src/models.test.ts +392 -0
- package/src/models.ts +174 -0
- package/tsconfig.json +5 -15
- package/vitest.config.ts +4 -14
- package/.editorconfig +0 -10
- package/.gitattributes +0 -4
- package/.releaserc.js +0 -129
- package/LICENSE +0 -21
- package/dist/parser.d.ts +0 -86
- package/dist/parser.js +0 -390
- package/dist/providers.d.ts +0 -1
- package/dist/providers.js +0 -76
- package/dist/types.d.ts +0 -127
- package/dist/types.js +0 -1
- package/eslint.config.js +0 -3
- package/generate/build-models.ts +0 -150
- package/generate/overwrites.ts +0 -12
- package/publish.js +0 -32
- package/roadmap.md +0 -54
- package/src/models.d.ts +0 -170
- package/src/models.js +0 -70434
- package/src/parser.ts +0 -485
- package/src/providers.ts +0 -79
- package/src/types.ts +0 -135
- package/tests/parser.test.ts +0 -11
- package/tests/regex.test.ts +0 -42
- package/tests/selector.test.ts +0 -53
- package/tests/setup.ts +0 -0
package/dist/aliases.d.ts
CHANGED
|
@@ -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
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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',
|
|
5
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"}
|