mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Fix typo and remove redundant code in storage module. (#9862)
This commit is contained in:
parent
26a9abbe82
commit
3ce19993bc
@ -36,7 +36,7 @@ In-memory storage keeps files in memory, which is useful for testing or temporar
|
||||
S3 storage uses Amazon S3 or compatible services for file storage.
|
||||
|
||||
**Environment Variables:**
|
||||
- The bucket name is specified by `file_store_path` in the configuration with a fallback to the `AWS_S3_BUCKET` enviroment variable.
|
||||
- The bucket name is specified by `file_store_path` in the configuration with a fallback to the `AWS_S3_BUCKET` environment variable.
|
||||
- `AWS_ACCESS_KEY_ID`: Your AWS access key
|
||||
- `AWS_SECRET_ACCESS_KEY`: Your AWS secret key
|
||||
- `AWS_S3_ENDPOINT`: Optional custom endpoint for S3-compatible services (Allows overriding the default)
|
||||
@ -47,7 +47,7 @@ S3 storage uses Amazon S3 or compatible services for file storage.
|
||||
Google Cloud Storage uses Google Cloud Storage buckets for file storage.
|
||||
|
||||
**Environment Variables:**
|
||||
- The bucket name is specified by `file_store_path` in the configuration with a fallback to the `GOOGLE_CLOUD_BUCKET_NAME` enviroment variable.
|
||||
- The bucket name is specified by `file_store_path` in the configuration with a fallback to the `GOOGLE_CLOUD_BUCKET_NAME` environment variable.
|
||||
- `GOOGLE_APPLICATION_CREDENTIALS`: Path to Google Cloud credentials JSON file
|
||||
|
||||
## Webhook Protocol
|
||||
|
||||
@ -39,7 +39,7 @@ class FileSecretsStore(SecretsStore):
|
||||
async def get_instance(
|
||||
cls, config: OpenHandsConfig, user_id: str | None
|
||||
) -> FileSecretsStore:
|
||||
file_store = file_store = get_file_store(
|
||||
file_store = get_file_store(
|
||||
config.file_store,
|
||||
config.file_store_path,
|
||||
config.file_store_web_hook_url,
|
||||
|
||||
@ -33,7 +33,7 @@ class FileSettingsStore(SettingsStore):
|
||||
async def get_instance(
|
||||
cls, config: OpenHandsConfig, user_id: str | None
|
||||
) -> FileSettingsStore:
|
||||
file_store = file_store = get_file_store(
|
||||
file_store = get_file_store(
|
||||
config.file_store,
|
||||
config.file_store_path,
|
||||
config.file_store_web_hook_url,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user