feat(gcs): Implement google gcp bucket provider - #1138
Conversation
- Added GCSBucketProvider for handling Google Cloud Storage (GCS) operations, including signed URL generation. - Introduced GCSClient to manage GCS client instances with default bucket support. - Created a global bucket-provider registry to resolve and manage different bucket providers. - Implemented tests for GCS bucket provider functionality, including signed URL generation and credential handling. - Enhanced attachment resolution to support GCS URIs, allowing for both native and signed URL handling based on provider type. - Updated documentation to reflect changes in bucket provider architecture and functionality.
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
OpenAPI changes 🔴 6 breaking changesCaution Downstream consumers may need an update before merging. Breaking changes ·
|
| Method | Path | Change | |
|---|---|---|---|
| 🔴 | GET |
/api/v1/models |
added the new google-gcp enum value to the data/anyOf[subschema #1: ModelConfigListPublic]/data/items/provider response property for the response status 200 |
| 🔴 | PATCH |
/api/v1/models |
added the new google-gcp enum value to the data/anyOf[subschema #1]/items/provider response property for the response status 200 |
| 🔴 | POST |
/api/v1/models |
added the new google-gcp enum value to the data/anyOf[subschema #1]/items/provider response property for the response status 201 |
| 🔴 | GET |
/api/v1/models/grouped |
added the new google-gcp enum value to the data/anyOf[subschema #1]/additionalProperties/items/provider response property for the response status 200 |
| 🔴 | GET |
/api/v1/models/{provider}/{model_name} |
added the new google-gcp enum value to the data/anyOf[subschema #1: ModelConfigPublic]/provider response property for the response status 200 |
| 🔴 | PATCH |
/api/v1/models/{provider}/{model_name} |
added the new google-gcp enum value to the data/anyOf[subschema #1: ModelConfigPublic]/provider response property for the response status 200 |
Full changelog · 21
| Method | Path | Change | |
|---|---|---|---|
| 🔴 | GET |
/api/v1/models |
added the new google-gcp enum value to the data/anyOf[subschema #1: ModelConfigListPublic]/data/items/provider response property for the response status 200 |
| 🔴 | PATCH |
/api/v1/models |
added the new google-gcp enum value to the data/anyOf[subschema #1]/items/provider response property for the response status 200 |
| 🔴 | POST |
/api/v1/models |
added the new google-gcp enum value to the data/anyOf[subschema #1]/items/provider response property for the response status 201 |
| 🔴 | GET |
/api/v1/models/grouped |
added the new google-gcp enum value to the data/anyOf[subschema #1]/additionalProperties/items/provider response property for the response status 200 |
| 🔴 | GET |
/api/v1/models/{provider}/{model_name} |
added the new google-gcp enum value to the data/anyOf[subschema #1: ModelConfigPublic]/provider response property for the response status 200 |
| 🔴 | PATCH |
/api/v1/models/{provider}/{model_name} |
added the new google-gcp enum value to the data/anyOf[subschema #1: ModelConfigPublic]/provider response property for the response status 200 |
| 🟢 | POST |
/api/v1/configs |
added the new google-gcp enum value to the request property config_blob/completion/anyOf[subschema #2: KaapiCompletionConfig]/provider/anyOf[subschema #1]/ |
| 🟢 | POST |
/api/v1/configs |
added the new google-gcp-native enum value to the request property config_blob/completion/anyOf[subschema #1: NativeCompletionConfig]/provider |
| 🟢 | POST |
/api/v1/llm/call |
added the new google-gcp enum value to the request property config/blob/anyOf[subschema #1: ConfigBlob]/completion/anyOf[subschema #2: KaapiCompletionConfig]/provider/anyOf[subschema #1]/ |
| 🟢 | POST |
/api/v1/llm/call |
added the new google-gcp-native enum value to the request property config/blob/anyOf[subschema #1: ConfigBlob]/completion/anyOf[subschema #1: NativeCompletionConfig]/provider |
| 🟢 | POST |
/api/v1/llm/chain |
added the new google-gcp enum value to the request property blocks/items/config/blob/anyOf[subschema #1: ConfigBlob]/completion/anyOf[subschema #2: KaapiCompletionConfig]/provider/anyOf[subschema #1]/ |
| 🟢 | POST |
/api/v1/llm/chain |
added the new google-gcp-native enum value to the request property blocks/items/config/blob/anyOf[subschema #1: ConfigBlob]/completion/anyOf[subschema #1: NativeCompletionConfig]/provider |
| 🟢 | POST |
/api/v1/llm/chain/sts |
added the new google-gcp enum value to the request property stt_provider/anyOf[subschema #1]/ |
| 🟢 | POST |
/api/v1/llm/chain/sts |
added the new google-gcp enum value to the request property tts_provider/anyOf[subschema #1]/ |
| 🟢 | GET |
/api/v1/models |
added the enum value google-gcp to the property anyOf[subschema #1: Provider]/ of the query request parameter provider |
| 🟢 | PATCH |
/api/v1/models |
added the new google-gcp enum value to the request property items/provider |
| 🟢 | POST |
/api/v1/models |
added the new google-gcp enum value to the request property anyOf[subschema #1: ModelConfigCreate]/provider |
| 🟢 | POST |
/api/v1/models |
added the new google-gcp enum value to the request property anyOf[subschema #2]/items/provider |
| 🟢 | DELETE |
/api/v1/models/{provider}/{model_name} |
added the new enum value google-gcp to the path request parameter provider |
| 🟢 | GET |
/api/v1/models/{provider}/{model_name} |
added the new enum value google-gcp to the path request parameter provider |
| 🟢 | PATCH |
/api/v1/models/{provider}/{model_name} |
added the new enum value google-gcp to the path request parameter provider |
main ↔ 86e52020 · generated by oasdiff
… and refactor batch provider selection
Issue
Closes #PLEASE_TYPE_ISSUE_NUMBER
Summary
Checklist
Before submitting a pull request, please ensure that you mark these task.
fastapi run --reload app/main.pyordocker compose upin the repository root and test.Notes
Please add here if any other information is required for the reviewer.
Original PR description
Issue
Closes #PLEASE_TYPE_ISSUE_NUMBER
Summary
Explain the motivation for making this change. What existing problem does the pull request solve?
Checklist
Before submitting a pull request, please ensure that you mark these task.
fastapi run --reload app/main.pyordocker compose upin the repository root and test.Notes
Please add here if any other information is required for the reviewer.