fal-ai / fal

⚡ Fastest way to serve open source ML models to millions
https://fal.ai/docs
Apache License 2.0
509 stars 44 forks source link

feat: automatically pass X-Fal-Object-Lifecycle-Preference as a header #195

Closed turbo1912 closed 4 months ago

turbo1912 commented 4 months ago

why are we doing this?

we are trying to set an object lifecycle preference, this is stored in the db.

we are looking for a way to pass this information without making any code changes.

here is the proposed flow:

user sets preference in the UI -> stored in db -> for each request, read preference from db add to header -> automatically attach preference headers to the request using Image.toolkit