mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 11:25:06 +03:00
chore: Supabase AI types in examples (#22751)
This commit is contained in:
1 parent
9cc6163512
commit
5c062fcdb7
2 files changed
+2
-2
No files matched your search
@@ -1,3 +1,4 @@
|
||||
/// <reference types="https://esm.sh/@supabase/functions-js@2.3.1/src/edge-runtime.d.ts" />
|
||||
import { createClient } from "npm:@supabase/supabase-js@2.42.0";
|
||||
import { Database, Tables } from "../_shared/database.types.ts";
|
||||
|
||||
@@ -14,7 +15,6 @@ const supabase = createClient<Database>(
|
||||
Deno.env.get("SUPABASE_URL")!,
|
||||
Deno.env.get("SUPABASE_SERVICE_ROLE_KEY")!,
|
||||
);
|
||||
// @ts-ignore TODO: import Supabase AI types.
|
||||
const model = new Supabase.ai.Session("gte-small");
|
||||
|
||||
Deno.serve(async (req) => {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/// <reference types="https://esm.sh/@supabase/functions-js@2.3.1/src/edge-runtime.d.ts" />
|
||||
import { createClient } from "npm:@supabase/supabase-js@2.42.0";
|
||||
import { Database } from "../_shared/database.types.ts";
|
||||
|
||||
@@ -5,7 +6,6 @@ const supabase = createClient<Database>(
|
||||
Deno.env.get("SUPABASE_URL")!,
|
||||
Deno.env.get("SUPABASE_SERVICE_ROLE_KEY")!,
|
||||
);
|
||||
// @ts-ignore TODO: import Supabase AI types.
|
||||
const model = new Supabase.ai.Session("gte-small");
|
||||
|
||||
Deno.serve(async (req) => {
|
||||
|
||||
Reference in new issue
Block a user