Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: change tsx script to ts

Greg Richardsone76fc0ce42d7
diff --git a/apps/docs/pages/guides/getting-started/openai/vector-search.mdx b/apps/docs/pages/guides/getting-started/openai/vector-search.mdx
index 9c447a8a131..d1f5023d7f1 100644
--- a/apps/docs/pages/guides/getting-started/openai/vector-search.mdx
+++ b/apps/docs/pages/guides/getting-started/openai/vector-search.mdx
@@ -471,7 +471,7 @@ All of this is glued together in a [Vercel Edge Function](https://vercel.com/doc
In a last step, we need to process the event stream from the OpenAI API and print the answer to the user. The full code for this can be found on [GitHub](https://github.com/supabase-community/nextjs-openai-doc-search/blob/main/components/SearchDialog.tsx).
-```tsx
+```ts
const handleConfirm = React.useCallback(
async (query: string) => {
setAnswer(undefined)