diff --git a/projects/fal/src/fal/api.py b/projects/fal/src/fal/api.py index 3b96fcca..8a19a076 100644 --- a/projects/fal/src/fal/api.py +++ b/projects/fal/src/fal/api.py @@ -552,6 +552,7 @@ def function( exposed_port: int | None = None, max_concurrency: int | None = None, # FalServerlessHost options + metadata: dict[str, Any] | None = None, machine_type: str = FAL_SERVERLESS_DEFAULT_MACHINE_TYPE, keep_alive: int = FAL_SERVERLESS_DEFAULT_KEEP_ALIVE, max_multiplexing: int = FAL_SERVERLESS_DEFAULT_MAX_MULTIPLEXING, @@ -576,6 +577,7 @@ def function( exposed_port: int | None = None, max_concurrency: int | None = None, # FalServerlessHost options + metadata: dict[str, Any] | None = None, machine_type: str = FAL_SERVERLESS_DEFAULT_MACHINE_TYPE, keep_alive: int = FAL_SERVERLESS_DEFAULT_KEEP_ALIVE, max_multiplexing: int = FAL_SERVERLESS_DEFAULT_MAX_MULTIPLEXING, @@ -652,6 +654,7 @@ def function( exposed_port: int | None = None, max_concurrency: int | None = None, # FalServerlessHost options + metadata: dict[str, Any] | None = None, machine_type: str = FAL_SERVERLESS_DEFAULT_MACHINE_TYPE, keep_alive: int = FAL_SERVERLESS_DEFAULT_KEEP_ALIVE, max_multiplexing: int = FAL_SERVERLESS_DEFAULT_MAX_MULTIPLEXING, @@ -681,6 +684,7 @@ def function( exposed_port: int | None = None, max_concurrency: int | None = None, # FalServerlessHost options + metadata: dict[str, Any] | None = None, machine_type: str = FAL_SERVERLESS_DEFAULT_MACHINE_TYPE, keep_alive: int = FAL_SERVERLESS_DEFAULT_KEEP_ALIVE, max_multiplexing: int = FAL_SERVERLESS_DEFAULT_MAX_MULTIPLEXING, diff --git a/projects/fal/src/fal/cli.py b/projects/fal/src/fal/cli.py index 77292f8a..0ec2feb7 100644 --- a/projects/fal/src/fal/cli.py +++ b/projects/fal/src/fal/cli.py @@ -289,7 +289,7 @@ def register_application( options=isolated_function.options, application_name=alias, application_auth_mode=auth_mode, - metadata={}, + metadata=isolated_function.options.host.get("metadata", {}), ) if id: