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
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,16 @@ public partial interface ILlmClient
/// <param name="model">
/// Model identifier in format "provider/model-name" (e.g., "openai/gpt-4")
/// </param>
/// <param name="project">
/// ID of a project the caller can access whose labeling config contains a Chat tag
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse> ApiLlmOpenaiChatCompletionsCreateAsync(
global::System.Collections.Generic.IList<global::LabelStudio.ChatMessageRequest> messages,
string model,
int project,
global::LabelStudio.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ public partial interface IProjects2Client
/// <param name="modelVersion">
/// Machine learning model version
/// </param>
/// <param name="organization"></param>
/// <param name="outputSchema"></param>
/// <param name="overlapCohortPercentage"></param>
/// <param name="pinnedAt">
Expand Down Expand Up @@ -177,7 +176,6 @@ public partial interface IProjects2Client
int? maximumAnnotations = default,
int? minAnnotationsToStartTraining = default,
string? modelVersion = default,
int? organization = default,
object? outputSchema = default,
int? overlapCohortPercentage = default,
global::System.DateTime? pinnedAt = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ public partial interface IProjects2Client
/// <param name="modelVersion">
/// Machine learning model version
/// </param>
/// <param name="organization"></param>
/// <param name="outputSchema"></param>
/// <param name="overlapCohortPercentage">
/// Annotations per task coverage
Expand Down Expand Up @@ -278,7 +277,6 @@ public partial interface IProjects2Client
int? maximumAnnotations = default,
int? minAnnotationsToStartTraining = default,
string? modelVersion = default,
int? organization = default,
object? outputSchema = default,
int? overlapCohortPercentage = default,
bool? pauseOnFailedAnnotatorEvaluation = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,19 +480,24 @@ partial void ProcessApiLlmOpenaiChatCompletionsCreateResponseContent(
/// <param name="model">
/// Model identifier in format "provider/model-name" (e.g., "openai/gpt-4")
/// </param>
/// <param name="project">
/// ID of a project the caller can access whose labeling config contains a Chat tag
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse> ApiLlmOpenaiChatCompletionsCreateAsync(
global::System.Collections.Generic.IList<global::LabelStudio.ChatMessageRequest> messages,
string model,
int project,
global::LabelStudio.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::LabelStudio.ChatCompletionRequestRequest
{
Messages = messages,
Model = model,
Project = project,
};

return await ApiLlmOpenaiChatCompletionsCreateAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,11 @@ public sealed partial class AllRolesProjectList
public int? NumTasksWithAnnotations { get; set; }

/// <summary>
///
/// Included only in responses
/// </summary>
/// <default>default!</default>
[global::System.Text.Json.Serialization.JsonPropertyName("organization")]
public int? Organization { get; set; }
public int Organization { get; set; } = default!;

/// <summary>
///
Expand Down Expand Up @@ -799,7 +800,6 @@ public sealed partial class AllRolesProjectList
/// Tasks with at least one annotation. For annotators, counts only tasks this user annotated; for other roles, counts project-wide. For analytics, use annotated_tasks or related KPIs with explicit project/member filters.<br/>
/// Included only in responses
/// </param>
/// <param name="organization"></param>
/// <param name="outputSchema"></param>
/// <param name="overlapCohortPercentage">
/// Annotations per task coverage
Expand Down Expand Up @@ -936,6 +936,9 @@ public sealed partial class AllRolesProjectList
/// <param name="membersCount">
/// Included only in responses
/// </param>
/// <param name="organization">
/// Included only in responses
/// </param>
/// <param name="parsedLabelConfig">
/// JSON-formatted labeling configuration<br/>
/// Included only in responses
Expand Down Expand Up @@ -1021,7 +1024,6 @@ public AllRolesProjectList(
int? minAnnotationsToStartTraining,
string? modelVersion,
int? numTasksWithAnnotations,
int? organization,
object? outputSchema,
int? overlapCohortPercentage,
bool? pauseOnFailedAnnotatorEvaluation,
Expand Down Expand Up @@ -1065,6 +1067,7 @@ public AllRolesProjectList(
bool isOnboardingProject = default!,
global::System.Collections.Generic.IList<object> members = default!,
int membersCount = default!,
int organization = default!,
object parsedLabelConfig = default!,
int queueDone = default!,
int queueTotal = default!,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ public sealed partial class ChatCompletionRequestRequest
[global::System.Text.Json.Serialization.JsonRequired]
public required string Model { get; set; }

/// <summary>
/// ID of a project the caller can access whose labeling config contains a Chat tag
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("project")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int Project { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -41,15 +48,20 @@ public sealed partial class ChatCompletionRequestRequest
/// <param name="model">
/// Model identifier in format "provider/model-name" (e.g., "openai/gpt-4")
/// </param>
/// <param name="project">
/// ID of a project the caller can access whose labeling config contains a Chat tag
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ChatCompletionRequestRequest(
global::System.Collections.Generic.IList<global::LabelStudio.ChatMessageRequest> messages,
string model)
string model,
int project)
{
this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages));
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.Project = project;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,11 @@ public sealed partial class LseProject
public int? NumTasksWithAnnotations { get; set; }

/// <summary>
///
/// Included only in responses
/// </summary>
/// <default>default!</default>
[global::System.Text.Json.Serialization.JsonPropertyName("organization")]
public int? Organization { get; set; }
public int Organization { get; set; } = default!;

/// <summary>
///
Expand Down Expand Up @@ -765,7 +766,6 @@ public sealed partial class LseProject
/// <param name="numTasksWithAnnotations">
/// Included only in responses
/// </param>
/// <param name="organization"></param>
/// <param name="outputSchema"></param>
/// <param name="overlapCohortPercentage">
/// Annotations per task coverage
Expand Down Expand Up @@ -877,6 +877,9 @@ public sealed partial class LseProject
/// <param name="membersCount">
/// Included only in responses
/// </param>
/// <param name="organization">
/// Included only in responses
/// </param>
/// <param name="parsedLabelConfig">
/// JSON-formatted labeling configuration<br/>
/// Included only in responses
Expand Down Expand Up @@ -975,7 +978,6 @@ public LseProject(
int? minAnnotationsToStartTraining,
string? modelVersion,
int? numTasksWithAnnotations,
int? organization,
object? outputSchema,
int? overlapCohortPercentage,
bool? pauseOnFailedAnnotatorEvaluation,
Expand Down Expand Up @@ -1012,6 +1014,7 @@ public LseProject(
bool isDimensionsEnabled = default!,
global::System.Collections.Generic.IList<object> members = default!,
int membersCount = default!,
int organization = default!,
object parsedLabelConfig = default!,
global::System.Collections.Generic.IList<string> permissions = default!,
int queueDone = default!,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public sealed partial class LseProjectCreate
public int? NumTasksWithAnnotations { get; set; }

/// <summary>
///
/// Included only in responses
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("organization")]
public int? Organization { get; set; }
Expand Down Expand Up @@ -468,7 +468,9 @@ public sealed partial class LseProjectCreate
/// Tasks with annotations count<br/>
/// Included only in responses
/// </param>
/// <param name="organization"></param>
/// <param name="organization">
/// Included only in responses
/// </param>
/// <param name="outputSchema"></param>
/// <param name="overlapCohortPercentage"></param>
/// <param name="pinnedAt">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,6 @@ public sealed partial class LseProjectCreateRequest
[global::System.Text.Json.Serialization.JsonPropertyName("model_version")]
public string? ModelVersion { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("organization")]
public int? Organization { get; set; }

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -363,7 +357,6 @@ public sealed partial class LseProjectCreateRequest
/// <param name="modelVersion">
/// Machine learning model version
/// </param>
/// <param name="organization"></param>
/// <param name="outputSchema"></param>
/// <param name="overlapCohortPercentage"></param>
/// <param name="pinnedAt">
Expand Down Expand Up @@ -441,7 +434,6 @@ public LseProjectCreateRequest(
int? maximumAnnotations,
int? minAnnotationsToStartTraining,
string? modelVersion,
int? organization,
object? outputSchema,
int? overlapCohortPercentage,
global::System.DateTime? pinnedAt,
Expand Down Expand Up @@ -486,7 +478,6 @@ public LseProjectCreateRequest(
this.MaximumAnnotations = maximumAnnotations;
this.MinAnnotationsToStartTraining = minAnnotationsToStartTraining;
this.ModelVersion = modelVersion;
this.Organization = organization;
this.OutputSchema = outputSchema;
this.OverlapCohortPercentage = overlapCohortPercentage;
this.PinnedAt = pinnedAt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,11 @@ public sealed partial class LseProjectResponse
public int NumTasksWithAnnotations { get; set; } = default!;

/// <summary>
///
/// Included only in responses
/// </summary>
/// <default>default!</default>
[global::System.Text.Json.Serialization.JsonPropertyName("organization")]
public int? Organization { get; set; }
public int Organization { get; set; } = default!;

/// <summary>
///
Expand Down Expand Up @@ -791,7 +792,6 @@ public sealed partial class LseProjectResponse
/// <param name="modelVersion">
/// Machine learning model version
/// </param>
/// <param name="organization"></param>
/// <param name="outputSchema"></param>
/// <param name="overlapCohortPercentage">
/// Annotations per task coverage
Expand Down Expand Up @@ -932,6 +932,9 @@ public sealed partial class LseProjectResponse
/// Tasks with at least one annotation. For annotators, counts only tasks this user annotated; for other roles, counts project-wide. For analytics, use annotated_tasks or related KPIs with explicit project/member filters.<br/>
/// Included only in responses
/// </param>
/// <param name="organization">
/// Included only in responses
/// </param>
/// <param name="parsedLabelConfig">
/// JSON-formatted labeling configuration<br/>
/// Included only in responses
Expand Down Expand Up @@ -1018,7 +1021,6 @@ public LseProjectResponse(
int? maximumAnnotations,
int? minAnnotationsToStartTraining,
string? modelVersion,
int? organization,
object? outputSchema,
int? overlapCohortPercentage,
bool? pauseOnFailedAnnotatorEvaluation,
Expand Down Expand Up @@ -1063,6 +1065,7 @@ public LseProjectResponse(
global::System.Collections.Generic.IList<object> members = default!,
int membersCount = default!,
int numTasksWithAnnotations = default!,
int organization = default!,
object parsedLabelConfig = default!,
global::System.Collections.Generic.IList<string> permissions = default!,
int queueDone = default!,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,6 @@ public sealed partial class PatchedLseProjectUpdateRequest
[global::System.Text.Json.Serialization.JsonPropertyName("model_version")]
public string? ModelVersion { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("organization")]
public int? Organization { get; set; }

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -539,7 +533,6 @@ public sealed partial class PatchedLseProjectUpdateRequest
/// <param name="modelVersion">
/// Machine learning model version
/// </param>
/// <param name="organization"></param>
/// <param name="outputSchema"></param>
/// <param name="overlapCohortPercentage">
/// Annotations per task coverage
Expand Down Expand Up @@ -651,7 +644,6 @@ public PatchedLseProjectUpdateRequest(
int? maximumAnnotations,
int? minAnnotationsToStartTraining,
string? modelVersion,
int? organization,
object? outputSchema,
int? overlapCohortPercentage,
bool? pauseOnFailedAnnotatorEvaluation,
Expand Down Expand Up @@ -715,7 +707,6 @@ public PatchedLseProjectUpdateRequest(
this.MaximumAnnotations = maximumAnnotations;
this.MinAnnotationsToStartTraining = minAnnotationsToStartTraining;
this.ModelVersion = modelVersion;
this.Organization = organization;
this.OutputSchema = outputSchema;
this.OverlapCohortPercentage = overlapCohortPercentage;
this.PauseOnFailedAnnotatorEvaluation = pauseOnFailedAnnotatorEvaluation;
Expand Down
11 changes: 7 additions & 4 deletions src/libs/LabelStudio/Generated/LabelStudio.Models.Project.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,11 @@ public sealed partial class Project
public int NumTasksWithAnnotations { get; set; } = default!;

/// <summary>
///
/// Included only in responses
/// </summary>
/// <default>default!</default>
[global::System.Text.Json.Serialization.JsonPropertyName("organization")]
public int? Organization { get; set; }
public int Organization { get; set; } = default!;

/// <summary>
///
Expand Down Expand Up @@ -368,7 +369,6 @@ public sealed partial class Project
/// <param name="modelVersion">
/// Machine learning model version
/// </param>
/// <param name="organization"></param>
/// <param name="overlapCohortPercentage"></param>
/// <param name="pinnedAt">
/// Pinned date and time
Expand Down Expand Up @@ -426,6 +426,9 @@ public sealed partial class Project
/// Tasks with annotations count<br/>
/// Included only in responses
/// </param>
/// <param name="organization">
/// Included only in responses
/// </param>
/// <param name="parsedLabelConfig">
/// JSON-formatted labeling configuration<br/>
/// Included only in responses
Expand Down Expand Up @@ -481,7 +484,6 @@ public Project(
int? maximumAnnotations,
int? minAnnotationsToStartTraining,
string? modelVersion,
int? organization,
int? overlapCohortPercentage,
global::System.DateTime? pinnedAt,
bool? revealPreannotationsInteractively,
Expand All @@ -502,6 +504,7 @@ public Project(
int groundTruthNumber = default!,
int id = default!,
int numTasksWithAnnotations = default!,
int organization = default!,
object parsedLabelConfig = default!,
int queueDone = default!,
int queueTotal = default!,
Expand Down
Loading
Loading