-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ai): add more AI methods support
- Loading branch information
Showing
28 changed files
with
1,663 additions
and
157 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
using System; | ||
using JetBrains.Annotations; | ||
using Newtonsoft.Json; | ||
|
||
namespace Crowdin.Api.AI | ||
{ | ||
[PublicAPI] | ||
public class AiPromptCompletion | ||
{ | ||
[JsonProperty("identifier")] | ||
public string Identifier { get; set; } | ||
|
||
[JsonProperty("status")] | ||
public OperationStatus Status { get; set; } | ||
|
||
[JsonProperty("progress")] | ||
public int Progress { get; set; } | ||
|
||
[JsonProperty("attributes")] | ||
public AttributesObject Attributes { get; set; } | ||
|
||
[JsonProperty("createdAt")] | ||
public DateTimeOffset CreatedAt { get; set; } | ||
|
||
[JsonProperty("updatedAt")] | ||
public DateTimeOffset UpdatedAt { get; set; } | ||
|
||
[JsonProperty("startedAt")] | ||
public DateTimeOffset StartedAt { get; set; } | ||
|
||
[JsonProperty("finishedAt")] | ||
public DateTimeOffset FinishedAt { get; set; } | ||
|
||
[PublicAPI] | ||
public class AttributesObject | ||
{ | ||
[JsonProperty("aiPromptId")] | ||
public int AiPromptId { get; set; } | ||
} | ||
} | ||
} |
This file contains 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
Oops, something went wrong.