Sébastien Han
|
79ced0c85b
|
Merge 2a34226727 into ea15f2a270
|
2025-10-01 15:47:54 +02:00 |
|
Ashwin Bharambe
|
3a09f00cdb
|
feat(files): fix expires_after API shape (#3604)
This was just quite incorrect. See source here:
https://platform.openai.com/docs/api-reference/files/create
|
2025-09-29 21:29:15 -07:00 |
|
Sébastien Han
|
2a34226727
|
revert: do not use MySecretStr
We don't need this if we can set it to empty string.
Signed-off-by: Sébastien Han <seb@redhat.com>
|
2025-09-29 09:58:41 +02:00 |
|
Matthew Farrellee
|
3370d8e557
|
feat(files, s3, expiration): add expires_after support to S3 files provider (#3283)
|
2025-08-29 16:17:24 -07:00 |
|
Matthew Farrellee
|
e96e3c4da4
|
feat(s3 auth): add authorization support for s3 files provider (#3265)
# What does this PR do?
adds support for authorized users to the s3 files provider
## Test Plan
existing and new unit tests
|
2025-08-29 16:14:00 +02:00 |
|
Matthew Farrellee
|
f520e244d9
|
feat: Add S3 Files Provider (#3202)
Implements a complete S3-based file storage provider for Llama Stack
with:
Core Implementation:
- S3FilesImpl class with full OpenAI Files API compatibility
- Support for file upload, download, listing, deletion operations
- Sqlite-based metadata storage for fast queries and API compliance
- Configurable S3 endpoints (AWS, MinIO, LocalStack support)
Key Features:
- Automatic S3 bucket creation and management
- Metadata persistence
- Proper error handling for S3 connectivity and permissions
Dependencies:
- Adds boto3 for AWS S3 integration
- Adds moto[s3] for testing infrastructure
Testing:
Unit: `./scripts/unit-tests.sh tests/unit/files
tests/unit/providers/files`
Integration:
Start MinIO: `podman run --rm -it -p 9000:9000 minio/minio server /data`
Start stack w/ S3 provider: `S3_ENDPOINT_URL=http://localhost:9000
AWS_ACCESS_KEY_ID=minioadmin AWS_SECRET_ACCESS_KEY=minioadmin
S3_BUCKET_NAME=llama-stack-files uv run llama stack build --image-type
venv --providers files=remote::s3 --run`
Run integration tests: `./scripts/integration-tests.sh --stack-config
http://localhost:8321 --provider ollama --test-subdirs files`
|
2025-08-22 10:38:59 -04:00 |
|