@tanstack/ai-byteplus 0.2.3 → 0.3.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/dist/esm/byok.d.ts +3 -0
- package/dist/esm/byok.js +17 -0
- package/dist/esm/byok.js.map +1 -0
- package/package.json +8 -5
- package/src/byok.ts +14 -0
package/dist/esm/byok.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineByokProvider } from "@tanstack/ai/byok";
|
|
2
|
+
//#region src/byok.ts
|
|
3
|
+
var byteplusByok = defineByokProvider({
|
|
4
|
+
id: "byteplus",
|
|
5
|
+
label: "BytePlus",
|
|
6
|
+
env: ["ARK_API_KEY", "BYTEPLUS_API_KEY"]
|
|
7
|
+
});
|
|
8
|
+
/** Seed Speech TTS/ASR. Different product and key from {@link byteplusByok}. */
|
|
9
|
+
var byteplusVoiceByok = defineByokProvider({
|
|
10
|
+
id: "byteplus-voice",
|
|
11
|
+
label: "BytePlus Seed Speech",
|
|
12
|
+
env: "BYTEPLUS_VOICE_API_KEY"
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { byteplusByok, byteplusVoiceByok };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=byok.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byok.js","names":[],"sources":["../../src/byok.ts"],"sourcesContent":["import { defineByokProvider } from '@tanstack/ai/byok'\n\nexport const byteplusByok = defineByokProvider({\n id: 'byteplus',\n label: 'BytePlus',\n env: ['ARK_API_KEY', 'BYTEPLUS_API_KEY'],\n})\n\n/** Seed Speech TTS/ASR. Different product and key from {@link byteplusByok}. */\nexport const byteplusVoiceByok = defineByokProvider({\n id: 'byteplus-voice',\n label: 'BytePlus Seed Speech',\n env: 'BYTEPLUS_VOICE_API_KEY',\n})\n"],"mappings":";;AAEA,IAAa,eAAe,mBAAmB;CAC7C,IAAI;CACJ,OAAO;CACP,KAAK,CAAC,eAAe,kBAAkB;AACzC,CAAC;;AAGD,IAAa,oBAAoB,mBAAmB;CAClD,IAAI;CACJ,OAAO;CACP,KAAK;AACP,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/ai-byteplus",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "BytePlus ModelArk adapter for TanStack AI: Seed LLM chat, Seedance video, Seedream image, and Seed Speech TTS/ASR.",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
".": {
|
|
25
25
|
"types": "./dist/esm/index.d.ts",
|
|
26
26
|
"import": "./dist/esm/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./byok": {
|
|
29
|
+
"types": "./dist/esm/byok.d.ts",
|
|
30
|
+
"import": "./dist/esm/byok.js"
|
|
27
31
|
}
|
|
28
32
|
},
|
|
29
33
|
"files": [
|
|
@@ -50,16 +54,15 @@
|
|
|
50
54
|
"devDependencies": {
|
|
51
55
|
"@vitest/coverage-v8": "4.1.10",
|
|
52
56
|
"vite": "^8.2.1",
|
|
53
|
-
"@tanstack/ai": "0.
|
|
57
|
+
"@tanstack/ai": "0.50.0"
|
|
54
58
|
},
|
|
55
59
|
"peerDependencies": {
|
|
56
|
-
"
|
|
57
|
-
"@tanstack/ai": "^0.48.0"
|
|
60
|
+
"@tanstack/ai": "^0.50.0"
|
|
58
61
|
},
|
|
59
62
|
"dependencies": {
|
|
60
63
|
"openai": "^6.41.0",
|
|
61
64
|
"@tanstack/ai-utils": "^0.4.0",
|
|
62
|
-
"@tanstack/openai-base": "^0.10.
|
|
65
|
+
"@tanstack/openai-base": "^0.10.6"
|
|
63
66
|
},
|
|
64
67
|
"scripts": {
|
|
65
68
|
"build": "vite build",
|
package/src/byok.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineByokProvider } from '@tanstack/ai/byok'
|
|
2
|
+
|
|
3
|
+
export const byteplusByok = defineByokProvider({
|
|
4
|
+
id: 'byteplus',
|
|
5
|
+
label: 'BytePlus',
|
|
6
|
+
env: ['ARK_API_KEY', 'BYTEPLUS_API_KEY'],
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
/** Seed Speech TTS/ASR. Different product and key from {@link byteplusByok}. */
|
|
10
|
+
export const byteplusVoiceByok = defineByokProvider({
|
|
11
|
+
id: 'byteplus-voice',
|
|
12
|
+
label: 'BytePlus Seed Speech',
|
|
13
|
+
env: 'BYTEPLUS_VOICE_API_KEY',
|
|
14
|
+
})
|