fix: add shutdown function for localfs provider (#2781)

# What does this PR do?
this was causing an unnessessary logger warning

## Test Plan
Run `LLAMA_STACK_DIR=. ENABLE_OLLAMA=ollama
OLLAMA_INFERENCE_MODEL=llama3.2:3b llama stack build --template starter
--image-type venv --run` and then `Crtl-C` to shutdown

Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
This commit is contained in:
Nathan Weinberg 2025-07-16 11:24:57 -04:00 committed by GitHub
parent 3165197b75
commit 72e606355d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,6 +51,9 @@ class LocalfsFilesImpl(Files):
}, },
) )
async def shutdown(self) -> None:
pass
def _generate_file_id(self) -> str: def _generate_file_id(self) -> str:
"""Generate a unique file ID for OpenAI API.""" """Generate a unique file ID for OpenAI API."""
return f"file-{uuid.uuid4().hex}" return f"file-{uuid.uuid4().hex}"