@gedatou/cadenza-ai 0.7.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/README.md +71 -0
- package/dist/anthropic-DdrANeO1.mjs +236 -0
- package/dist/bedrock-534H9yfk.mjs +75 -0
- package/dist/catalog-CvvS2JaW.mjs +32 -0
- package/dist/deepseek-C1b74T2F.mjs +55 -0
- package/dist/gemini-DcJ5Kr3h.mjs +229 -0
- package/dist/grok-CffQuBd6.mjs +77 -0
- package/dist/groq-Ba6TTYLp.mjs +98 -0
- package/dist/index.d.mts +1056 -0
- package/dist/index.mjs +2809 -0
- package/dist/llmgateway-Pt5CS6aQ.mjs +211 -0
- package/dist/mistral-BGMwwbU9.mjs +107 -0
- package/dist/mock/index.d.mts +168 -0
- package/dist/mock/index.mjs +467 -0
- package/dist/ollama-BBJs-3mK.mjs +80 -0
- package/dist/openai--FIeahIH.mjs +153 -0
- package/dist/openrouter-q-lx-2Cb.mjs +167 -0
- package/dist/preset-CEyIPxfS.mjs +157 -0
- package/dist/preset-DRT0T14q.d.mts +19 -0
- package/dist/providers/anthropic.d.mts +6 -0
- package/dist/providers/anthropic.mjs +11 -0
- package/dist/providers/bedrock.d.mts +6 -0
- package/dist/providers/bedrock.mjs +11 -0
- package/dist/providers/byteplus.d.mts +6 -0
- package/dist/providers/byteplus.mjs +21 -0
- package/dist/providers/deepseek.d.mts +35 -0
- package/dist/providers/deepseek.mjs +283 -0
- package/dist/providers/gemini.d.mts +6 -0
- package/dist/providers/gemini.mjs +11 -0
- package/dist/providers/grok.d.mts +6 -0
- package/dist/providers/grok.mjs +11 -0
- package/dist/providers/groq.d.mts +6 -0
- package/dist/providers/groq.mjs +11 -0
- package/dist/providers/llmgateway.d.mts +6 -0
- package/dist/providers/llmgateway.mjs +11 -0
- package/dist/providers/mistral.d.mts +6 -0
- package/dist/providers/mistral.mjs +11 -0
- package/dist/providers/ollama.d.mts +9 -0
- package/dist/providers/ollama.mjs +28 -0
- package/dist/providers/openai-compatible.d.mts +32 -0
- package/dist/providers/openai-compatible.mjs +45 -0
- package/dist/providers/openai.d.mts +6 -0
- package/dist/providers/openai.mjs +11 -0
- package/dist/providers/openrouter.d.mts +6 -0
- package/dist/providers/openrouter.mjs +11 -0
- package/dist/providers/vercel-gateway.d.mts +6 -0
- package/dist/providers/vercel-gateway.mjs +11 -0
- package/dist/providers/vertex.d.mts +6 -0
- package/dist/providers/vertex.mjs +11 -0
- package/dist/server/index.d.mts +173 -0
- package/dist/server/index.mjs +440 -0
- package/dist/thinking-CH2uL1dr.mjs +26 -0
- package/dist/types-56Hn7Qq2.d.mts +46 -0
- package/dist/vercel-gateway-DW3Z0Os1.mjs +109 -0
- package/dist/vertex-hg4Dt54O.mjs +20 -0
- package/package.json +114 -0
- package/styles.css +3 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { defineByokProvider } from "@tanstack/ai/byok";
|
|
2
|
+
//#region src/catalog/providers/grok.ts
|
|
3
|
+
const grok = {
|
|
4
|
+
id: "grok",
|
|
5
|
+
label: "xAI Grok",
|
|
6
|
+
byok: defineByokProvider({
|
|
7
|
+
id: "grok",
|
|
8
|
+
label: "xAI Grok",
|
|
9
|
+
env: "XAI_API_KEY"
|
|
10
|
+
}),
|
|
11
|
+
keyRequired: true,
|
|
12
|
+
runtime: "node",
|
|
13
|
+
models: [
|
|
14
|
+
{
|
|
15
|
+
id: "grok-4.5",
|
|
16
|
+
name: "Grok 4.5",
|
|
17
|
+
provider: "grok",
|
|
18
|
+
input: [
|
|
19
|
+
"text",
|
|
20
|
+
"image",
|
|
21
|
+
"document"
|
|
22
|
+
],
|
|
23
|
+
reasoning: true,
|
|
24
|
+
contextWindow: 5e5,
|
|
25
|
+
cost: {
|
|
26
|
+
input: 2,
|
|
27
|
+
output: 6,
|
|
28
|
+
cacheRead: .3
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: "grok-4.6",
|
|
33
|
+
name: "Grok 4.6",
|
|
34
|
+
provider: "grok",
|
|
35
|
+
input: [
|
|
36
|
+
"text",
|
|
37
|
+
"image",
|
|
38
|
+
"document"
|
|
39
|
+
],
|
|
40
|
+
reasoning: true,
|
|
41
|
+
contextWindow: 5e5,
|
|
42
|
+
cost: {
|
|
43
|
+
input: 2,
|
|
44
|
+
output: 6,
|
|
45
|
+
cacheRead: .5
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: "grok-4.3",
|
|
50
|
+
name: "Grok 4.3",
|
|
51
|
+
provider: "grok",
|
|
52
|
+
input: ["text", "image"],
|
|
53
|
+
reasoning: true,
|
|
54
|
+
contextWindow: 1e6,
|
|
55
|
+
cost: {
|
|
56
|
+
input: 1.25,
|
|
57
|
+
output: 2.5,
|
|
58
|
+
cacheRead: .2
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: "grok-build-0.1",
|
|
63
|
+
name: "Grok Build 0.1",
|
|
64
|
+
provider: "grok",
|
|
65
|
+
input: ["text", "image"],
|
|
66
|
+
reasoning: false,
|
|
67
|
+
contextWindow: 256e3,
|
|
68
|
+
cost: {
|
|
69
|
+
input: 1,
|
|
70
|
+
output: 2,
|
|
71
|
+
cacheRead: .2
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
};
|
|
76
|
+
//#endregion
|
|
77
|
+
export { grok as t };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { defineByokProvider } from "@tanstack/ai/byok";
|
|
2
|
+
//#region src/catalog/providers/groq.ts
|
|
3
|
+
const groq = {
|
|
4
|
+
id: "groq",
|
|
5
|
+
label: "Groq",
|
|
6
|
+
byok: defineByokProvider({
|
|
7
|
+
id: "groq",
|
|
8
|
+
label: "Groq",
|
|
9
|
+
env: "GROQ_API_KEY"
|
|
10
|
+
}),
|
|
11
|
+
keyRequired: true,
|
|
12
|
+
runtime: "node",
|
|
13
|
+
models: [
|
|
14
|
+
{
|
|
15
|
+
id: "llama-3.3-70b-versatile",
|
|
16
|
+
name: "Llama 3.3 70B Versatile",
|
|
17
|
+
provider: "groq",
|
|
18
|
+
input: ["text"],
|
|
19
|
+
reasoning: false,
|
|
20
|
+
contextWindow: 131072,
|
|
21
|
+
maxOutputTokens: 32768,
|
|
22
|
+
cost: {
|
|
23
|
+
input: .59,
|
|
24
|
+
output: .79
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: "llama-3.1-8b-instant",
|
|
29
|
+
name: "Llama 3.1 8B Instant",
|
|
30
|
+
provider: "groq",
|
|
31
|
+
input: ["text"],
|
|
32
|
+
reasoning: false,
|
|
33
|
+
contextWindow: 131072,
|
|
34
|
+
maxOutputTokens: 131072,
|
|
35
|
+
cost: {
|
|
36
|
+
input: .05,
|
|
37
|
+
output: .08
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: "openai/gpt-oss-120b",
|
|
42
|
+
name: "GPT-OSS 120B",
|
|
43
|
+
provider: "groq",
|
|
44
|
+
input: ["text"],
|
|
45
|
+
reasoning: true,
|
|
46
|
+
contextWindow: 131072,
|
|
47
|
+
maxOutputTokens: 65536,
|
|
48
|
+
cost: {
|
|
49
|
+
input: .15,
|
|
50
|
+
output: .6,
|
|
51
|
+
cacheRead: .075
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: "openai/gpt-oss-20b",
|
|
56
|
+
name: "GPT-OSS 20B",
|
|
57
|
+
provider: "groq",
|
|
58
|
+
input: ["text"],
|
|
59
|
+
reasoning: true,
|
|
60
|
+
contextWindow: 131072,
|
|
61
|
+
maxOutputTokens: 65536,
|
|
62
|
+
cost: {
|
|
63
|
+
input: .075,
|
|
64
|
+
output: .3,
|
|
65
|
+
cacheRead: .037
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: "qwen/qwen3-32b",
|
|
70
|
+
name: "Qwen3 32B",
|
|
71
|
+
provider: "groq",
|
|
72
|
+
input: ["text"],
|
|
73
|
+
reasoning: true,
|
|
74
|
+
contextWindow: 131072,
|
|
75
|
+
maxOutputTokens: 40960,
|
|
76
|
+
cost: {
|
|
77
|
+
input: .29,
|
|
78
|
+
output: .59
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: "moonshotai/kimi-k2-instruct-0905",
|
|
83
|
+
name: "Kimi K2 Instruct 0905",
|
|
84
|
+
provider: "groq",
|
|
85
|
+
input: ["text"],
|
|
86
|
+
reasoning: false,
|
|
87
|
+
contextWindow: 262144,
|
|
88
|
+
maxOutputTokens: 16384,
|
|
89
|
+
cost: {
|
|
90
|
+
input: 1,
|
|
91
|
+
output: 3,
|
|
92
|
+
cacheRead: .5
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
};
|
|
97
|
+
//#endregion
|
|
98
|
+
export { groq as t };
|