From 4866db092bb2f41e9ab58d540ef4cc54511cad07 Mon Sep 17 00:00:00 2001 From: thorwebdev Date: Mon, 29 Jul 2024 14:40:45 +0800 Subject: [PATCH] fix: ambient module declaration. --- src/edge-runtime.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/edge-runtime.d.ts b/src/edge-runtime.d.ts index 7111607..7ef5cdb 100644 --- a/src/edge-runtime.d.ts +++ b/src/edge-runtime.d.ts @@ -1,5 +1,3 @@ -import OpenAI from 'openai' - declare namespace Supabase { export interface ModelOptions { /** @@ -25,7 +23,7 @@ declare namespace Supabase { /** * Mode for the inference API host. (default: 'ollama') */ - mode?: 'ollama' | 'openaicompatible', + mode?: 'ollama' | 'openaicompatible' signal?: AbortSignal } @@ -39,7 +37,9 @@ declare namespace Supabase { * Execute the given prompt in model session */ run( - prompt: string | Omit, + prompt: + | string + | Omit, modelOptions?: ModelOptions ): unknown }