@tanstack/ai-cohere 0.2.2 → 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.
@@ -0,0 +1 @@
1
+ export declare const cohereByok: import('@tanstack/ai/byok').ByokProvider<"cohere">;
@@ -0,0 +1,11 @@
1
+ import { defineByokProvider } from "@tanstack/ai/byok";
2
+ //#region src/byok.ts
3
+ var cohereByok = defineByokProvider({
4
+ id: "cohere",
5
+ label: "Cohere",
6
+ env: "COHERE_API_KEY"
7
+ });
8
+ //#endregion
9
+ export { cohereByok };
10
+
11
+ //# 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 cohereByok = defineByokProvider({\n id: 'cohere',\n label: 'Cohere',\n env: 'COHERE_API_KEY',\n})\n"],"mappings":";;AAEA,IAAa,aAAa,mBAAmB;CAC3C,IAAI;CACJ,OAAO;CACP,KAAK;AACP,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/ai-cohere",
3
- "version": "0.2.2",
3
+ "version": "0.3.1",
4
4
  "description": "Cohere adapter for TanStack AI — multimodal embeddings and document reranking.",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -25,6 +25,10 @@
25
25
  "types": "./dist/esm/index.d.ts",
26
26
  "import": "./dist/esm/index.js"
27
27
  },
28
+ "./byok": {
29
+ "types": "./dist/esm/byok.d.ts",
30
+ "import": "./dist/esm/byok.js"
31
+ },
28
32
  "./adapters/embedding": {
29
33
  "types": "./dist/esm/adapters/embedding.d.ts",
30
34
  "import": "./dist/esm/adapters/embedding.js"
@@ -49,12 +53,12 @@
49
53
  "retrieval"
50
54
  ],
51
55
  "peerDependencies": {
52
- "@tanstack/ai": "^0.48.0"
56
+ "@tanstack/ai": "^0.50.0"
53
57
  },
54
58
  "devDependencies": {
55
59
  "@vitest/coverage-v8": "4.1.10",
56
60
  "vite": "^8.2.1",
57
- "@tanstack/ai": "0.48.0"
61
+ "@tanstack/ai": "0.50.0"
58
62
  },
59
63
  "dependencies": {
60
64
  "@tanstack/ai-utils": "^0.4.0"
package/src/byok.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { defineByokProvider } from '@tanstack/ai/byok'
2
+
3
+ export const cohereByok = defineByokProvider({
4
+ id: 'cohere',
5
+ label: 'Cohere',
6
+ env: 'COHERE_API_KEY',
7
+ })