Skip to content

Commit 4866db0

Browse files
thorwebdevsoedirgo
thorwebdev
authored andcommitted
fix: ambient module declaration.
1 parent 2c88982 commit 4866db0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/edge-runtime.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import OpenAI from 'openai'
2-
31
declare namespace Supabase {
42
export interface ModelOptions {
53
/**
@@ -25,7 +23,7 @@ declare namespace Supabase {
2523
/**
2624
* Mode for the inference API host. (default: 'ollama')
2725
*/
28-
mode?: 'ollama' | 'openaicompatible',
26+
mode?: 'ollama' | 'openaicompatible'
2927
signal?: AbortSignal
3028
}
3129

@@ -39,7 +37,9 @@ declare namespace Supabase {
3937
* Execute the given prompt in model session
4038
*/
4139
run(
42-
prompt: string | Omit<OpenAI.Chat.ChatCompletionCreateParams, 'model' | 'stream'>,
40+
prompt:
41+
| string
42+
| Omit<import('openai').OpenAI.Chat.ChatCompletionCreateParams, 'model' | 'stream'>,
4343
modelOptions?: ModelOptions
4444
): unknown
4545
}

0 commit comments

Comments
 (0)