Skip to content

Commit 7a71a5b

Browse files
devlooped-botkzu
authored andcommitted
⬆️ Bump files with dotnet-file sync
# xai-org/xai-proto - Add EFFORT_NONE to ReasoningEffort enum (#49) xai-org/xai-proto@c9345ab - Add missing batch.proto fields (#55) xai-org/xai-proto@9700be4
1 parent b26d6e8 commit 7a71a5b

4 files changed

Lines changed: 36 additions & 14 deletions

File tree

.netconfig

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@
147147
weak
148148
[file "src/xAI.Protocol/batch.proto"]
149149
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/batch.proto
150-
sha = 4724d8352feb7d4f13059c1bfd27ef0362f96684
151-
etag = 49810c4625d4995815164f4a519f526768386bfaf43d05b346e7fcd5cbe55289
150+
sha = 9700be4bfddcb77db9a3d7fb3b69c5e47d704f22
151+
etag = 960f0b54fdd30c1680f801e5a1bf53c95438154c0850cb28ef614d808d53e8fe
152152
weak
153153
[file "src/xAI.Protocol/chat.proto"]
154154
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/chat.proto
155-
sha = e0c743ba0dcd0a7f9b71a4a0d846c6ff3a9b7e4a
156-
etag = 8656b4676c39de9d83c9dd8d102e3fce04df98f940536166baf41f893ba56f5d
155+
sha = c9345abd85649ecb5b27fe8708f573b4ab9d6971
156+
etag = a64a560fdac1cb6d349d38b19a58605fa59169879f3d6d517518e573fd137b8c
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
@@ -235,3 +235,4 @@
235235
url = https://github.com/xai-org/xai-proto/blob/main/proto/xai/api/v1/files.proto
236236
etag = 4c91f851b288a225acfc1173f2f8853a1b550da1e97d2fdcec99debb5f8fac43
237237
weak
238+
sha = 0c0f5353aa7ab2a4ffea310f9d9364ed5c424af2

readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,6 @@ Uses your own API Key.
614614
<!-- sponsors.md -->
615615
[![Clarius Org](https://avatars.githubusercontent.com/u/71888636?v=4&s=39 "Clarius Org")](https://github.com/clarius)
616616
[![MFB Technologies, Inc.](https://avatars.githubusercontent.com/u/87181630?v=4&s=39 "MFB Technologies, Inc.")](https://github.com/MFB-Technologies-Inc)
617-
[![Khamza Davletov](https://avatars.githubusercontent.com/u/13615108?u=11b0038e255cdf9d1940fbb9ae9d1d57115697ab&v=4&s=39 "Khamza Davletov")](https://github.com/khamza85)
618617
[![SandRock](https://avatars.githubusercontent.com/u/321868?u=99e50a714276c43ae820632f1da88cb71632ec97&v=4&s=39 "SandRock")](https://github.com/sandrock)
619618
[![DRIVE.NET, Inc.](https://avatars.githubusercontent.com/u/15047123?v=4&s=39 "DRIVE.NET, Inc.")](https://github.com/drivenet)
620619
[![Keith Pickford](https://avatars.githubusercontent.com/u/16598898?u=64416b80caf7092a885f60bb31612270bffc9598&v=4&s=39 "Keith Pickford")](https://github.com/Keflon)

src/xAI.Protocol/batch.proto

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
syntax = "proto3";
2-
option csharp_namespace = "xAI.Protocol";
32

43
package xai_api;
54

65
import "google/protobuf/empty.proto";
76
import "google/protobuf/timestamp.proto";
87
import "google/rpc/status.proto";
9-
import "chat.proto";
8+
import "xai/api/v1/chat.proto";
9+
import "xai/api/v1/image.proto";
10+
import "xai/api/v1/video.proto";
1011

1112
// An API service for processing batch requests asynchronously at lower priority than chat service.
1213
service BatchMgmt {
@@ -66,6 +67,10 @@ message Batch {
6667

6768
// Cost breakdown for processed requests.
6869
BatchCostBreakdown cost_breakdown = 9;
70+
71+
// File ID of the uploaded JSONL input file (from Files API). Only set
72+
// when the batch was created via file upload.
73+
optional string input_file_id = 10;
6974
}
7075

7176
// Holds aggregate information about the current state of a batch process.
@@ -121,15 +126,25 @@ message BatchRequest {
121126
oneof request {
122127
// A completion request to send for processing in the batch.
123128
GetCompletionsRequest completion_request = 2;
129+
// An image generation or editing request to send for processing in the batch.
130+
GenerateImageRequest image_request = 3;
131+
// A video generation request to send for processing in the batch.
132+
GenerateVideoRequest video_request = 4;
133+
// A video extension request to send for processing in the batch.
134+
ExtendVideoRequest video_extension_request = 5;
124135
}
125136
}
126137

127-
// A container for the completion response that is returned in a `BatchResult`.
138+
// A container for the response that is returned in a `BatchResult`.
128139
message BatchResultData {
129140
// The response from the batch request.
130141
oneof response {
131142
// A completion response that has finished processing in the batch.
132143
GetChatCompletionResponse completion_response = 2;
144+
// An image generation response that has finished processing in the batch.
145+
ImageResponse image_response = 3;
146+
// A video generation response that has finished processing in the batch.
147+
VideoResponse video_response = 4;
133148
}
134149
}
135150

@@ -183,6 +198,10 @@ message BatchRequestMetadata {
183198
message CreateBatchRequest {
184199
// The name of the batch to be created.
185200
string name = 1;
201+
202+
// Optional file ID of a JSONL input file (uploaded via the Files API).
203+
// When provided, the batch will be populated from the file's contents.
204+
string input_file_id = 2;
186205
}
187206

188207
// ------------------------------------------------------------------------------------------------
@@ -249,6 +268,9 @@ message ListBatchRequestMetadataRequest {
249268

250269
// Optional pagination token to retrieve a specific page. Provided by `pagination_token` in `ListBatchRequestMetadataResponse`.
251270
optional string pagination_token = 3;
271+
272+
// Optional filter by request state. If empty, all states are returned.
273+
repeated BatchRequestMetadata.State status = 4;
252274
}
253275

254276
// Response with the metadata of batch requests within a batch.

src/xAI.Protocol/chat.proto

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
syntax = "proto3";
2-
option csharp_namespace = "xAI.Protocol";
32

43
package xai_api;
54

65
import "google/protobuf/timestamp.proto";
7-
import "deferred.proto";
8-
import "documents.proto";
9-
import "image.proto";
10-
import "sample.proto";
11-
import "usage.proto";
6+
import "xai/api/v1/deferred.proto";
7+
import "xai/api/v1/documents.proto";
8+
import "xai/api/v1/image.proto";
9+
import "xai/api/v1/sample.proto";
10+
import "xai/api/v1/usage.proto";
1211

1312
// An API that exposes our language models via a Chat interface.
1413
service Chat {
@@ -572,6 +571,7 @@ enum ReasoningEffort {
572571
EFFORT_LOW = 1;
573572
EFFORT_MEDIUM = 2;
574573
EFFORT_HIGH = 3;
574+
EFFORT_NONE = 4;
575575
}
576576

577577
// Number of agents to use for multi-agent models.

0 commit comments

Comments
 (0)