Skip to content

Commit cc8b914

Browse files
committed
⬆️ Bump files with dotnet-file sync
# xai-org/xai-proto - Update protos for video generation failure case (#38) xai-org/xai-proto@2b1a1fc
1 parent 6d1b6ec commit cc8b914

File tree

4 files changed

+28
-9
lines changed

4 files changed

+28
-9
lines changed

.netconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@
157157
weak
158158
[file "src/xAI.Protocol/deferred.proto"]
159159
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/deferred.proto
160-
sha = 626a3a3f22d8aa11c7a185bf8902e7d415df0462
161-
etag = d47b84dddfc4252abbced302fde18ea8093933a3a8d5516350db596d3ae86595
160+
sha = 2b1a1fc74c463f55ec92af764d4b790f4def2a24
161+
etag = 246c0340096b0dbc754ceb4933bde0ebf92af049ebffb06ed1fef1840d04c46b
162162
weak
163163
[file "src/xAI.Protocol/documents.proto"]
164164
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/documents.proto
@@ -197,8 +197,8 @@
197197
weak
198198
[file "src/xAI.Protocol/video.proto"]
199199
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/video.proto
200-
sha = 1813f69cd0fafba12eea98996cb6da15f29396b9
201-
etag = 69bb5336a09ae73e22e5d1a8af2d65386953face7d0b57917478e56e1c2fc5c6
200+
sha = 2b1a1fc74c463f55ec92af764d4b790f4def2a24
201+
etag = 8c6fc74c92943443aa72c0dcdf5d546e6e553545ddb5b634d0128f56f9f52dce
202202
weak
203203
[file "src/xAI.Protocol/google/protobuf/timestamp.proto"]
204204
url = https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/timestamp.proto

readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,10 @@ Uses your own API Key.
441441
[![Adrian Alonso](https://avatars.githubusercontent.com/u/2027083?u=129cf516d99f5cb2fd0f4a0787a069f3446b7522&v=4&s=39 "Adrian Alonso")](https://github.com/adalon)
442442
[![Michael Hagedorn](https://avatars.githubusercontent.com/u/61711586?u=8f653dfcb641e8c18cc5f78692ebc6bb3a0c92be&v=4&s=39 "Michael Hagedorn")](https://github.com/Eule02)
443443
[![torutek](https://avatars.githubusercontent.com/u/33917059?v=4&s=39 "torutek")](https://github.com/torutek)
444-
[![mccaffers](https://avatars.githubusercontent.com/u/16667079?u=739e110e62a75870c981640447efa5eb2cb3bc8f&v=4&s=39 "mccaffers")](https://github.com/mccaffers)
444+
[![mccaffers](https://avatars.githubusercontent.com/u/16667079?u=f5b761303b6c7a7f18123b5bd20f06760d3fbd3e&v=4&s=39 "mccaffers")](https://github.com/mccaffers)
445445
[![Seika Logiciel](https://avatars.githubusercontent.com/u/2564602?v=4&s=39 "Seika Logiciel")](https://github.com/SeikaLogiciel)
446446
[![Andrew Grant](https://avatars.githubusercontent.com/devlooped-user?s=39 "Andrew Grant")](https://github.com/wizardness)
447+
[![Lars](https://avatars.githubusercontent.com/u/1727124?v=4&s=39 "Lars")](https://github.com/latonz)
447448

448449

449450
<!-- sponsors.md -->

src/xAI.Protocol/deferred.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,8 @@ enum DeferredStatus {
3131

3232
// The request is still being processed.
3333
PENDING = 3;
34+
35+
// The request failed due to an internal service error.
36+
// The error message is in the `error` field of the response.
37+
FAILED = 4;
3438
}

src/xAI.Protocol/video.proto

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ message VideoUrlContent {
5858
// An API service for interaction with video generation models.
5959
service Video {
6060
// Create a video based on a text prompt and optionally an image.
61-
// If an image is provided, generates video with the image as the first frame (image-to-video).
62-
// If no image is provided, generates video from text only (text-to-video).
61+
// If an image is provided, generates video with the image as the first frame
62+
// (image-to-video). If no image is provided, generates video from text only
63+
// (text-to-video).
6364
//
64-
// This is an asynchronous operation. The method returns immediately with a request_id
65-
// that can be used to poll for the result using GetDeferredVideo.
65+
// This is an asynchronous operation. The method returns immediately with a
66+
// request_id that can be used to poll for the result using GetDeferredVideo.
6667
rpc GenerateVideo(GenerateVideoRequest) returns (StartDeferredResponse) {}
6768

6869
// Gets the result of a video generation started by calling `GenerateVideo`.
@@ -122,6 +123,11 @@ message VideoResponse {
122123

123124
// The usage of the request.
124125
SamplingUsage usage = 3;
126+
127+
// Structured error describing why video generation failed.
128+
// Only present when the background generation encountered a failure
129+
// (either client error 4xx or server error 5xx).
130+
optional VideoError error = 6;
125131
}
126132

127133
// Contains all data related to a generated video.
@@ -147,3 +153,11 @@ message GetDeferredVideoResponse {
147153
// Response. Only present if `status=DONE`
148154
optional VideoResponse response = 2;
149155
}
156+
157+
// Structured error returned when video generation fails.
158+
message VideoError {
159+
// Machine-readable error code (e.g. "invalid_argument", "internal_error").
160+
string code = 1;
161+
// Human-readable error message describing the failure.
162+
string message = 2;
163+
}

0 commit comments

Comments
 (0)