Skip to content

Commit 71d6a7b

Browse files
committed
chore: upgrade ai sdk and fix tests
Also remove the embedding provider interface as it will be covered in another PR
1 parent d54e588 commit 71d6a7b

File tree

4 files changed

+7
-134
lines changed

4 files changed

+7
-134
lines changed

package-lock.json

Lines changed: 2 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115
"oauth4webapi": "^3.8.0",
116116
"openapi-fetch": "^0.14.0",
117117
"ts-levenshtein": "^1.0.7",
118-
"voyage-ai-provider": "^2.0.0",
119118
"yargs-parser": "21.1.1",
120119
"zod": "^3.25.76"
121120
},

src/common/search/embeddingsProvider.ts

Lines changed: 0 additions & 82 deletions
This file was deleted.

tests/accuracy/sdk/accuracyTestingClient.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { v4 as uuid } from "uuid";
22
import { experimental_createMCPClient as createMCPClient, tool as createVercelTool } from "ai";
3+
import type { ToolCallOptions } from "ai";
34
import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
45
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
56

@@ -36,7 +37,8 @@ export class AccuracyTestingClient {
3637
for (const [toolName, tool] of Object.entries(vercelTools)) {
3738
rewrappedVercelTools[toolName] = createVercelTool({
3839
...tool,
39-
execute: async (args, options) => {
40+
// eslint-disable-next-line
41+
execute: (async (args: unknown, options: ToolCallOptions) => {
4042
this.llmToolCalls.push({
4143
toolCallId: uuid(),
4244
toolName: toolName,
@@ -60,8 +62,8 @@ export class AccuracyTestingClient {
6062
content: JSON.stringify(error),
6163
};
6264
}
63-
},
64-
});
65+
}) as any, // eslint-disable-line
66+
}) as VercelMCPClientTools[string];
6567
}
6668

6769
return rewrappedVercelTools;

0 commit comments

Comments
 (0)