Skip to content

Commit

Permalink
Update src/pages/[platform]/ai/generation/data-extraction/index.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: josef <josef.aidt@gmail.com>
  • Loading branch information
atierian and josefaidt authored Nov 20, 2024
1 parent d345483 commit 444b1b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ Example response:
<InlineFilter filters={['react','react-native','next-js']}>

```ts title="React Hook"
import type { Schema } from "../amplify/data/resource";
import { generateClient } from "aws-amplify/api";
import { createAIHooks } from "@aws-amplify/ui-react-ai";
import { Schema } from "../amplify/data/resource";

const client = generateClient<Schema>({ authMode: "userPool" });
const { useAIGeneration } = createAIHooks(client);
Expand Down

0 comments on commit 444b1b2

Please sign in to comment.