Skip to content

Commit

Permalink
fix: Fixed issue with tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Oct 30, 2024
1 parent 2b1b004 commit d3d460a
Show file tree
Hide file tree
Showing 267 changed files with 303 additions and 303 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ using var api = new InstillClient(apiKey);
using var cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromMinutes(5));
var cancellationToken = cancellationTokenSource.Token;

CreateCatalogResponse createCatalogResponse = await client.x__Subscription.CreateCatalogAsync(
CreateCatalogResponse createCatalogResponse = await client.Subscription.CreateCatalogAsync(
namespaceId: "havendv",
name: $"shakespeare_{Random.Shared.Next(1_000_000)}",
description: "Works of Shakespeare",
Expand All @@ -33,7 +33,7 @@ Console.WriteLine($"Description: {catalog.Description}");
Console.WriteLine($"TotalFiles: {catalog.TotalFiles}");
Console.WriteLine($"TotalTokens: {catalog.TotalTokens}");

UploadCatalogFileResponse uploadFileResponse = await client.x__Subscription.UploadCatalogFileAsync(
UploadCatalogFileResponse uploadFileResponse = await client.Subscription.UploadCatalogFileAsync(
namespaceId: "havendv",
catalogId: catalog.CatalogId,
name: "midsummer-nights-dream.pdf",
Expand All @@ -49,7 +49,7 @@ Console.WriteLine($"Size: {file.Size}");
Console.WriteLine($"TotalTokens: {file.TotalTokens}");
Console.WriteLine($"TotalChunks: {file.TotalChunks}");

ProcessCatalogFilesResponse processFilesResponse = await client.x__Subscription.ProcessCatalogFilesAsync(
ProcessCatalogFilesResponse processFilesResponse = await client.Subscription.ProcessCatalogFilesAsync(
fileUids: [file.FileUid],
cancellationToken: cancellationToken);

Expand All @@ -59,7 +59,7 @@ while (!cancellationToken.IsCancellationRequested)
{
await Task.Delay(TimeSpan.FromSeconds(5), cancellationToken);

ListCatalogFilesResponse listFilesResponse = await client.x__Subscription.ListCatalogFilesAsync(
ListCatalogFilesResponse listFilesResponse = await client.Subscription.ListCatalogFilesAsync(
namespaceId: "havendv",
catalogId: catalog.CatalogId,
cancellationToken: cancellationToken);
Expand All @@ -75,7 +75,7 @@ while (!cancellationToken.IsCancellationRequested)
const string question = "Who are the main characters involved in the love triangle in Act I?";
Console.WriteLine($"Question: {question}");

QuestionAnsweringResponse questionAnsweringResponse = await client.x__Subscription.QuestionAnsweringAsync(
QuestionAnsweringResponse questionAnsweringResponse = await client.Subscription.QuestionAnsweringAsync(
namespaceId: "havendv",
catalogId: catalog.CatalogId,
question: question,
Expand All @@ -96,7 +96,7 @@ foreach (var chunk in questionAnsweringResponse.SimilarChunks ?? [])
Console.WriteLine("----------------------------------------");
}

DeleteCatalogResponse deleteCatalogResponse = await client.x__Subscription.DeleteCatalogAsync(
DeleteCatalogResponse deleteCatalogResponse = await client.Subscription.DeleteCatalogAsync(
namespaceId: "havendv",
catalogId: catalog.CatalogId,
cancellationToken: cancellationToken);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceChatArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceCreateAppArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceCreateConversationArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceCreateMessageArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceDeleteAppArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceDeleteConversationArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceDeleteMessageArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceGetPlaygroundConversationArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceListAppsArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceListConversationsArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceListMessagesArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceRestartPlaygroundConversationArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceUpdateAppArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceUpdateConversationArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__AppClient
public partial class AppClient
{
partial void PrepareAppPublicServiceUpdateMessageArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Instill
/// If no httpClient is provided, a new one will be created.<br/>
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
public sealed partial class x__AppClient : global::Instill.Ix__AppClient, global::System.IDisposable
public sealed partial class AppClient : global::Instill.IAppClient, global::System.IDisposable
{
/// <summary>
///
Expand All @@ -33,15 +33,15 @@ public sealed partial class x__AppClient : global::Instill.Ix__AppClient, global


/// <summary>
/// Creates a new instance of the x__AppClient.
/// Creates a new instance of the AppClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public x__AppClient(
public AppClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Instill.EndPointAuthorization>? authorizations = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareCreateCatalogArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareDeleteCatalogArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareDeleteCatalogFileArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareGetFileCatalogArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareGetObjectDownloadURLArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareGetObjectUploadURLArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareGetSourceFileArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareListCatalogFilesArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareListCatalogRunsArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareListCatalogsArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareListChunksArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareProcessCatalogFilesArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareQuestionAnsweringArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareSimilarityChunksSearchArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareUpdateCatalogArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareUpdateChunkArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Instill
{
public partial class x__ArtifactClient
public partial class ArtifactClient
{
partial void PrepareUploadCatalogFileArguments(
global::System.Net.Http.HttpClient httpClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Instill
/// If no httpClient is provided, a new one will be created.<br/>
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
public sealed partial class x__ArtifactClient : global::Instill.Ix__ArtifactClient, global::System.IDisposable
public sealed partial class ArtifactClient : global::Instill.IArtifactClient, global::System.IDisposable
{
/// <summary>
///
Expand All @@ -33,15 +33,15 @@ public sealed partial class x__ArtifactClient : global::Instill.Ix__ArtifactClie


/// <summary>
/// Creates a new instance of the x__ArtifactClient.
/// Creates a new instance of the ArtifactClient.
/// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
/// <param name="authorizations">The authorizations to use for the requests.</param>
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
public x__ArtifactClient(
public ArtifactClient(
global::System.Net.Http.HttpClient? httpClient = null,
global::System.Uri? baseUri = null,
global::System.Collections.Generic.List<global::Instill.EndPointAuthorization>? authorizations = null,
Expand Down
Loading

0 comments on commit d3d460a

Please sign in to comment.