@voyant-travel/catalog 0.118.0 → 0.118.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.
|
@@ -102,7 +102,7 @@ describe("createGeminiEmbeddingProvider", () => {
|
|
|
102
102
|
const provider = createGeminiEmbeddingProvider({
|
|
103
103
|
apiKey: "vc-token-abc",
|
|
104
104
|
auth: "bearer",
|
|
105
|
-
baseUrl: "https://api.
|
|
105
|
+
baseUrl: "https://api.voyant.travel/ai/v1/gemini",
|
|
106
106
|
fetchImpl: fetchSpy,
|
|
107
107
|
});
|
|
108
108
|
await provider.embed(["x"]);
|
|
@@ -111,7 +111,7 @@ describe("createGeminiEmbeddingProvider", () => {
|
|
|
111
111
|
const headers = init.headers;
|
|
112
112
|
expect(headers.Authorization).toBe("Bearer vc-token-abc");
|
|
113
113
|
expect(headers["x-goog-api-key"]).toBeUndefined();
|
|
114
|
-
expect(url).toBe("https://api.
|
|
114
|
+
expect(url).toBe("https://api.voyant.travel/ai/v1/gemini/models/gemini-embedding-001:batchEmbedContents");
|
|
115
115
|
});
|
|
116
116
|
it("passes outputDimensionality + taskType in each request body", async () => {
|
|
117
117
|
const fetchSpy = vi.fn(async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/catalog",
|
|
3
|
-
"version": "0.118.
|
|
3
|
+
"version": "0.118.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -183,8 +183,8 @@
|
|
|
183
183
|
"zod": "^4.1.4",
|
|
184
184
|
"@voyant-travel/catalog-contracts": "^0.107.1",
|
|
185
185
|
"@voyant-travel/core": "^0.109.0",
|
|
186
|
-
"@voyant-travel/db": "^0.108.
|
|
187
|
-
"@voyant-travel/hono": "^0.110.
|
|
186
|
+
"@voyant-travel/db": "^0.108.1",
|
|
187
|
+
"@voyant-travel/hono": "^0.110.2"
|
|
188
188
|
},
|
|
189
189
|
"devDependencies": {
|
|
190
190
|
"drizzle-kit": "^0.31.10",
|