Skip to content

Commit

Permalink
Merge ef0b7b2 into 098537a
Browse files Browse the repository at this point in the history
  • Loading branch information
laktek committed Apr 14, 2024
2 parents 098537a + ef0b7b2 commit a5bdbe4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/edge-runtime.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
interface ModelOptions {
mean_pool?: boolean
normalize?: boolean
stream?: boolean
timeout?: number
}

interface Session {
run(prompt: string, modelOptions?: ModelOptions): unknown
}

declare var Session: {
prototype: Session
new (modelName: string, sessionOptions?: unknown): Session
}

declare var Supabase: {
readonly ai: {
readonly Session: typeof Session
}
}

0 comments on commit a5bdbe4

Please sign in to comment.