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
using GrokCLI.Configurations; | |
using GrokCLI.Helpers; | |
using GrokCLI.Services; | |
using GrokCLI.Utils; | |
using GrokCLI.Managers; | |
using System.Drawing; | |
using GrokCLI.Commands; | |
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net9.0</TargetFramework> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
<EnableNETAnalyzers>true</EnableNETAnalyzers> | |
<AnalysisLevel>latest</AnalysisLevel> | |
<AssemblyVersion>1.0.1</AssemblyVersion> |
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
namespace GrokCLI.Commands | |
{ | |
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
using GrokCLI.Managers; | |
using GrokCLI.Utils; | |
public class AddCommand : ICommand | |
{ |
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
namespace GrokCLI.Commands | |
{ | |
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
using GrokCLI.Managers; | |
using GrokCLI.Utils; | |
public class AddCommand : ICommand | |
{ |
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
namespace GrokCLI.Commands | |
{ | |
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
using GrokCLI.Managers; | |
using GrokCLI.Utils; | |
public class AddCommand : ICommand | |
{ |
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
namespace GrokCLI.Commands | |
{ | |
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
using GrokCLI.Managers; | |
using GrokCLI.Utils; | |
public class AddCommand : ICommand | |
{ |
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
namespace GrokCLI.Commands | |
{ | |
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
using GrokCLI.Managers; | |
using GrokCLI.Utils; | |
public class AddCommand : ICommand | |
{ |
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
using GrokCLI.Helpers; | |
namespace GrokCLI; | |
public class ChatApiClient | |
{ | |
private readonly string _apiKey; | |
private readonly string _baseUrl; | |
public ChatApiClient(string apiKey, string baseUrl) | |
{ |
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
using GrokCLI.Helpers; | |
namespace GrokCLI; | |
public class ChatApiClient | |
{ | |
private readonly string _apiKey; | |
private readonly string _baseUrl; | |
public ChatApiClient(string apiKey, string baseUrl) | |
{ |
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
using GrokCLI.Helpers; | |
namespace GrokCLI; | |
public class ChatApiClient | |
{ | |
private readonly string _apiKey; | |
private readonly string _baseUrl; | |
public ChatApiClient(string apiKey, string baseUrl) | |
{ |