Skip to content

Commit

Permalink
🐛 fix aiplugin bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannLai committed Jun 27, 2023
1 parent a66f4ed commit 6612068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tools/aiplugin.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { createAIPlugin } from './aiplugin';
import { expect, it } from 'vitest';
import { ToolInterface } from './tool';

it('should create a new AIPlugin', async () => {
const name = 'klarna';
const url = 'https://www.klarna.com/.well-known/ai-plugin.json';

const { klarna } = await createAIPlugin({
name, url
});
}) as ToolInterface

const result = await klarna({});

Expand Down
1 change: 0 additions & 1 deletion tools/aiplugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ async function createAIPlugin({
name: string,
url: string,
}) {

const paramsSchema = z.object({
product: z.string().optional(),
});
Expand Down

0 comments on commit 6612068

Please sign in to comment.