Add Files gRPC service proto and sync usage.proto#127
Merged
Conversation
Member
Author
🧪 Details on Ubuntu 24.04.4 LTSfrom retest v1.1.0 on .NET 10.0.7 with 💜 by @devlooped |
26c2722 to
fde3314
Compare
# devlooped/oss # xai-org/xai-proto
…tocol.File Agent-Logs-Url: https://github.com/devlooped/xAI/sessions/472610a8-d804-4041-92f5-e9a45a68b281 Co-authored-by: kzu <169707+kzu@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
New:
src/xAI.Protocol/files.protoAdds the
FilesgRPC service for managing uploaded files:UploadFile(client streaming): upload in chunks up to 5 MB; 512 MB total cap; first message must beinitwith filename and optional TTLListFiles: paginated listing, sortable by created date, filename, or sizeRetrieveFile: fetch file metadata by IDDeleteFile: delete a file by IDRetrieveFileContent(server streaming): download raw bytes or extracted text in up to 5 MB chunksUpdated:
src/xAI.Protocol/usage.protocsharp_namespaceoption (synced from upstream)num_sources_usedas deprecated (live search feature deprecated upstream)cost_in_usd_ticks(optionalint64): full price paid in USD ticks; 1 USD = 10,000,000,000 ticksUpdated: CI Workflows (
.github/workflows/dotnet-env.yml,includes.yml)GH_TOKENreferences withDEVLOOPED_TOKEN || GH_TOKENvia aPR_TOKENjob-level env var✍ pull requeststep guard (if: env.PR_TOKEN != '')⚠️ skip pull requestwarning step when neither token is configuredUpdated:
src/xAI.Tests/ChatClientTests.csusing File = System.IO.File;alias to resolve ambiguity with the newFileproto message type