Skip to content

Commit

Permalink
fix: ambient module declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwebdev authored and soedirgo committed Jul 29, 2024
1 parent 2c88982 commit 4866db0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/edge-runtime.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import OpenAI from 'openai'

declare namespace Supabase {
export interface ModelOptions {
/**
Expand All @@ -25,7 +23,7 @@ declare namespace Supabase {
/**
* Mode for the inference API host. (default: 'ollama')
*/
mode?: 'ollama' | 'openaicompatible',
mode?: 'ollama' | 'openaicompatible'
signal?: AbortSignal
}

Expand All @@ -39,7 +37,9 @@ declare namespace Supabase {
* Execute the given prompt in model session
*/
run(
prompt: string | Omit<OpenAI.Chat.ChatCompletionCreateParams, 'model' | 'stream'>,
prompt:
| string
| Omit<import('openai').OpenAI.Chat.ChatCompletionCreateParams, 'model' | 'stream'>,
modelOptions?: ModelOptions
): unknown
}
Expand Down

0 comments on commit 4866db0

Please sign in to comment.