Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions GrokClient.slnx

This file was deleted.

Binary file added assets/grok.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file modified assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/xai.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
![Icon](assets/icon.png) Grok Client (gRPC)
![Icon](assets/icon.png) xAI .NET SDK
============

[![Version](https://img.shields.io/nuget/vpre/GrokClient.svg?color=royalblue)](https://www.nuget.org/packages/GrokClient)
[![Downloads](https://img.shields.io/nuget/dt/GrokClient.svg?color=darkmagenta)](https://www.nuget.org/packages/GrokClient)
[![Version](https://img.shields.io/nuget/vpre/xAI.svg?color=royalblue)](https://www.nuget.org/packages/xAI)
[![Downloads](https://img.shields.io/nuget/dt/xAI.svg?color=darkmagenta)](https://www.nuget.org/packages/xAI)
[![EULA](https://img.shields.io/badge/EULA-OSMF-blue?labelColor=black&color=C9FF30)](osmfeula.txt)
[![OSS](https://img.shields.io/github/license/devlooped/oss.svg?color=blue)](license.txt)

Grok client based on the official gRPC API reference from xAI
xAI .NET SDK based on the official gRPC API reference from xAI

<!-- include https://github.com/devlooped/.github/raw/main/osmf.md -->
## Open Source Maintenance Fee
Expand Down
Binary file modified src/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/protofix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

const string ns =
"""
option csharp_namespace = "Devlooped.Grok";
option csharp_namespace = "xAI.Protocol";
""";

/// <summary>Check and fix imports in .proto files.</summary>
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion src/Tests/SanityChecks.cs → src/xAI.Tests/SanityChecks.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System.Text.Json;
using Microsoft.Extensions.DependencyInjection;
using xAI.Protocol;
using Xunit.Abstractions;

namespace Devlooped.Grok;
namespace xAI.Tests;

public class SanityChecks(ITestOutputHelper output)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Tests.csproj → src/xAI.Tests/xAI.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\GrokClient\GrokClient.csproj" />
<ProjectReference Include="..\xAI\xAI.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/GrokClient/Extensions.cs → src/xAI/Extensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.ComponentModel;
using Google.Protobuf.WellKnownTypes;

namespace Devlooped.Grok;
namespace xAI.Protocol;

/// <summary>
/// Usability extensions for Grok gRPC clients.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel;
using Devlooped.Grok;
using Grpc.Net.ClientFactory;
using xAI.Protocol;

namespace Microsoft.Extensions.DependencyInjection;

Expand Down
2 changes: 1 addition & 1 deletion src/GrokClient/auth.proto → src/xAI/auth.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
option csharp_namespace = "Devlooped.Grok";
option csharp_namespace = "xAI.Protocol";

package xai_api;

Expand Down
2 changes: 1 addition & 1 deletion src/GrokClient/chat.proto → src/xAI/chat.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
option csharp_namespace = "Devlooped.Grok";
option csharp_namespace = "xAI.Protocol";

package xai_api;

Expand Down
2 changes: 1 addition & 1 deletion src/GrokClient/deferred.proto → src/xAI/deferred.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
option csharp_namespace = "Devlooped.Grok";
option csharp_namespace = "xAI.Protocol";

package xai_api;

Expand Down
2 changes: 1 addition & 1 deletion src/GrokClient/documents.proto → src/xAI/documents.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
option csharp_namespace = "Devlooped.Grok";
option csharp_namespace = "xAI.Protocol";

package xai_api;

Expand Down
2 changes: 1 addition & 1 deletion src/GrokClient/embed.proto → src/xAI/embed.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
option csharp_namespace = "Devlooped.Grok";
option csharp_namespace = "xAI.Protocol";

package xai_api;

Expand Down
2 changes: 1 addition & 1 deletion src/GrokClient/image.proto → src/xAI/image.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
option csharp_namespace = "Devlooped.Grok";
option csharp_namespace = "xAI.Protocol";

package xai_api;

Expand Down
2 changes: 1 addition & 1 deletion src/GrokClient/models.proto → src/xAI/models.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
option csharp_namespace = "Devlooped.Grok";
option csharp_namespace = "xAI.Protocol";

package xai_api;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/GrokClient/sample.proto → src/xAI/sample.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
option csharp_namespace = "Devlooped.Grok";
option csharp_namespace = "xAI.Protocol";

package xai_api;

Expand Down
2 changes: 1 addition & 1 deletion src/GrokClient/tokenize.proto → src/xAI/tokenize.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
option csharp_namespace = "Devlooped.Grok";
option csharp_namespace = "xAI.Protocol";

package xai_api;

Expand Down
2 changes: 1 addition & 1 deletion src/GrokClient/usage.proto → src/xAI/usage.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
option csharp_namespace = "Devlooped.Grok";
option csharp_namespace = "xAI.Protocol";

package xai_api;

Expand Down
14 changes: 5 additions & 9 deletions src/GrokClient/GrokClient.csproj → src/xAI/xAI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>Devlooped.Grok</RootNamespace>
<AssemblyName>Devlooped.Grok</AssemblyName>
<PackageId>GrokClient</PackageId>
<Description>Grok client based on the official gRPC API reference from xAI.</Description>
<AssemblyName>xAI</AssemblyName>
<PackageId>xAI</PackageId>
<Description>xAI client based on the official gRPC API reference from xAI.</Description>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageTags>ai grok llm xai</PackageTags>
<PackageTags>xai ai grok llm</PackageTags>
<PackageLicenseExpression></PackageLicenseExpression>
<PackageLicenseFile>OSMFEULA.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
Expand All @@ -19,10 +18,7 @@
<PackageReference Include="Grpc.Net.ClientFactory" Version="2.71.0" />
<PackageReference Include="Grpc.Tools" Version="2.76.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.1" />
<PackageReference Include="NuGetizer" Version="1.4.6">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NuGetizer" Version="1.4.6" PrivateAssets="all"/>
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions xAI.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<Solution>
<Project Path="src/xAI/xAI.csproj" Id="61e079f0-56ec-4fb5-97cb-4dfdb8981d07" />
<Project Path="src/xAI.Tests/xAI.Tests.csproj" Id="c22563af-5b36-4100-9f31-93629b7bb17c" />
</Solution>