Fix/veo3 - #1795
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughReplaces references to setting.ServerAddress with system_setting.ServerAddress across controllers, services, relay, and model option management. Refactors the Vertex TaskAdaptor to a stateful, RelayInfo-driven long-running prediction flow, updates method signatures, aligns status mapping to model constants, and adds a public FetchTask method. Renames package to system_setting. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Client
participant API as Relay API
participant Adaptor as Vertex TaskAdaptor
participant Vertex as Vertex predictLongRunning
Client->>API: Submit task request
API->>Adaptor: Init(info: RelayInfo)
API->>Adaptor: ValidateRequestAndSetAction(...)
API->>Adaptor: BuildRequestURL/Header/Body
Adaptor->>Vertex: POST predictLongRunning (authorized)
Vertex-->>Adaptor: submitResponse (operation name)
Adaptor-->>API: DoResponse (local task ID, IN_PROGRESS)
API-->>Client: 202 Accepted (task ID)
note over Client,API: Client polls status separately
sequenceDiagram
autonumber
participant Poller as Client/Worker
participant API as Relay API
participant Adaptor as Vertex TaskAdaptor
participant Ops as Vertex operations.get
Poller->>API: Fetch task status
API->>Adaptor: FetchTask(baseURL, key, body)
Adaptor->>Ops: GET operation status (authorized)
Ops-->>Adaptor: operationResponse (status/result)
Adaptor-->>API: Raw HTTP response
API-->>Poller: Task status mapped to SUCCESS/IN_PROGRESS/FAILURE
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (11)
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 |
|
代码没提交完吧,很多 setting.EnableWorker() 都没改完。。 |
好啦 |
…i-sync feat(openai): 同步生图 API 支持并接入图片计费调度
Summary by CodeRabbit
New Features
Bug Fixes