7
Increase memory limit for Edge functions as part of upgrading project compute size
Source: supabase/supabase#20558 · opened by @mediashane
The requested feature is: allow upgrading project compute size to also increase the memory limit on Edge functions
There is a currently a limitation on the amount of memory an Edge function can use:
_Memory limit for the function: 150 MB (heap) + 150 MB (external - array buffers/ WASM)_
This is a smallish amount of memory, and doesn't allow for a successful API call to OpenAI's Whisper model:
const transcription = await openai.audio.transcriptions.create({
file: audioData,
model: 'whisper-1',
})
Results in a 546 error code and:
> shutdown (reason: Memory limit reached)
>
> "memory_used": [
> {
> "external": 359832,
> "heap": 153877568,
> "total": 154237400
> }
> ],
There is a currently a limitation on the amount of memory an Edge function can use:
_Memory limit for the function: 150 MB (heap) + 150 MB (external - array buffers/ WASM)_
This is a smallish amount of memory, and doesn't allow for a successful API call to OpenAI's Whisper model:
const transcription = await openai.audio.transcriptions.create({
file: audioData,
model: 'whisper-1',
})
Results in a 546 error code and:
> shutdown (reason: Memory limit reached)
>
> "memory_used": [
> {
> "external": 359832,
> "heap": 153877568,
> "total": 154237400
> }
> ],
No pledges yet. Be the first to back this.
Comments
Similar requests
Enable Syncing of Vault and Edge Function Secrets
1 vote · 0 comments
Improving the functionality of Edge Functions
3 votes · 0 comments
NestJS Support in Supabase Edge Functions
17 votes · 0 comments
Feature Request: Add Descriptions for Edge Functions
2 votes · 0 comments
Replace Deno Runtime for Edge Functions with Dapr
11 votes · 0 comments
No comments yet.