• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / functions-js / 8681653994

14 Apr 2024 11:43PM UTC coverage: 78.797% (-13.4%) from 92.222%
8681653994

Pull #79

github

web-flow
Merge bc12abc13 into 098537a0f
Pull Request #79: feat: add Edge Runtime global types

30 of 39 branches covered (76.92%)

Branch coverage included in aggregate %.

0 of 45 new or added lines in 1 file covered. (0.0%)

219 of 277 relevant lines covered (79.06%)

6.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/edge-runtime.d.ts
NEW
1
interface ModelOptions {
×
NEW
2
  /**
×
NEW
3
   * Pool embeddings by taking their mean. Applies only for `gte-small` model
×
NEW
4
   */
×
NEW
5
  mean_pool?: boolean
×
NEW
6

×
NEW
7
  /**
×
NEW
8
   * Normalize the embeddings result. Applies only for `gte-small` model
×
NEW
9
   */
×
NEW
10
  normalize?: boolean
×
NEW
11

×
NEW
12
  /**
×
NEW
13
   * Stream response from model. Applies only for LLMs like `mistral` (default: false)
×
NEW
14
   */
×
NEW
15
  stream?: boolean
×
NEW
16

×
NEW
17
  /**
×
NEW
18
   * Automatically abort the request to the model after specified time (in seconds). Applies only for LLMs like `mistral` (default: 60)
×
NEW
19
   */
×
NEW
20
  timeout?: number
×
NEW
21
}
×
NEW
22

×
NEW
23
interface Session {
×
NEW
24
  /**
×
NEW
25
   * Execute the given prompt in model session
×
NEW
26
   */
×
NEW
27
  run(prompt: string, modelOptions?: ModelOptions): unknown
×
NEW
28
}
×
NEW
29

×
NEW
30
declare var Session: {
×
NEW
31
  prototype: Session
×
NEW
32
  /**
×
NEW
33
   * Create a new model session using given model
×
NEW
34
   */
×
NEW
35
  new (model: string, sessionOptions?: unknown): Session
×
NEW
36
}
×
NEW
37

×
NEW
38
declare var Supabase: {
×
NEW
39
  /**
×
NEW
40
   * Provides AI related APIs
×
NEW
41
   */
×
NEW
42
  readonly ai: {
×
NEW
43
    readonly Session: typeof Session
×
NEW
44
  }
×
NEW
45
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc