We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c88982 commit 4866db0Copy full SHA for 4866db0
src/edge-runtime.d.ts
@@ -1,5 +1,3 @@
1
-import OpenAI from 'openai'
2
-
3
declare namespace Supabase {
4
export interface ModelOptions {
5
/**
@@ -25,7 +23,7 @@ declare namespace Supabase {
25
23
26
24
* Mode for the inference API host. (default: 'ollama')
27
*/
28
- mode?: 'ollama' | 'openaicompatible',
+ mode?: 'ollama' | 'openaicompatible'
29
signal?: AbortSignal
30
}
31
@@ -39,7 +37,9 @@ declare namespace Supabase {
39
37
* Execute the given prompt in model session
40
38
41
run(
42
- prompt: string | Omit<OpenAI.Chat.ChatCompletionCreateParams, 'model' | 'stream'>,
+ prompt:
+ | string
+ | Omit<import('openai').OpenAI.Chat.ChatCompletionCreateParams, 'model' | 'stream'>,
43
modelOptions?: ModelOptions
44
): unknown
45
0 commit comments