Skip to content

Commit

Permalink
fix: Now all value types which are not required will be null by defau…
Browse files Browse the repository at this point in the history
…lt instead default(T).
  • Loading branch information
HavenDV committed Sep 17, 2024
1 parent 4654893 commit 80ca94c
Show file tree
Hide file tree
Showing 5,680 changed files with 20,702 additions and 20,701 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions AutoSDK.sln
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "specs", "specs", "{7E829AE4
specs\mystic.yaml = specs\mystic.yaml
specs\security.yaml = specs\security.yaml
specs\heygen.yaml = specs\heygen.yaml
specs\instill.yaml = specs\instill.yaml
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoSDK.IntegrationTests.Cli", "src\tests\AutoSDK.IntegrationTests.Cli\AutoSDK.IntegrationTests.Cli.csproj", "{41F1B4D8-5F6F-40FB-A1C2-A5E6A4B62AA7}"
Expand Down
2 changes: 1 addition & 1 deletion src/libs/AutoSDK/Models/TypeData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public static string GetCSharpType(SchemaContext context, SchemaContext? additio
};

return context.Schema.Nullable ||
reference && !context.IsRequired && additionalContext?.IsRequired != true
!context.IsRequired && additionalContext?.IsRequired != true
? type + "?"
: type;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ partial void ProcessV1ConversationalRagResponseContent(
string? path = default,
global::System.Collections.Generic.IList<string>? labels = default,
global::System.Collections.Generic.IList<string>? fileIds = default,
int maxSegments = 15,
int? maxSegments = 15,
global::G.ConversationalRagFlowPublicFieldsRetrievalStrategy? retrievalStrategy = global::G.ConversationalRagFlowPublicFieldsRetrievalStrategy.Default,
double retrievalSimilarityThreshold = 0.8,
int maxNeighbors = default,
double hybridSearchAlpha = 0.98,
double? retrievalSimilarityThreshold = 0.8,
int? maxNeighbors = default,
double? hybridSearchAlpha = 0.98,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::G.ConversationalRagFlowPublicFields
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ partial void ProcessV1J2UltraChatResponseContent(
global::G.AllOf<global::G.Penalty>? frequencyPenalty = default,
global::G.AllOf<global::G.Penalty>? presencePenalty = default,
global::G.AllOf<global::G.Penalty>? countPenalty = default,
int numResults = 1,
double temperature = 0.7,
int maxTokens = 300,
int minTokens = 0,
double topP = 1,
int topKReturn = 0,
int? numResults = 1,
double? temperature = 0.7,
int? maxTokens = 300,
int? minTokens = 0,
double? topP = 1,
int? topKReturn = 0,
global::System.Collections.Generic.IList<string>? stopSequences = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,19 @@ partial void ProcessV1J2GrandeCompleteResponseContent(
public async global::System.Threading.Tasks.Task<global::G.V1J2GrandeCompleteResponse> V1J2GrandeCompleteAsync(
string prompt,
string? model = "j2-grande",
int numResults = 1,
int maxTokens = 16,
int minTokens = 0,
double temperature = 1,
double topP = 1,
double minP = 0,
int? numResults = 1,
int? maxTokens = 16,
int? minTokens = 0,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
global::System.Collections.Generic.IList<string>? stopSequences = default,
int topKReturn = 0,
int? topKReturn = 0,
global::G.CompletionBodyLogitBias? logitBias = default,
global::G.AllOf<global::G.Penalty>? frequencyPenalty = default,
global::G.AllOf<global::G.Penalty>? presencePenalty = default,
global::G.AllOf<global::G.Penalty>? countPenalty = default,
int epoch = default,
int? epoch = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::G.CompletionBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,19 +150,19 @@ partial void ProcessV1J2GrandeCustomModelCompleteResponseContent(
string customModelName,
string prompt,
string? customModelType = "j2-grande",
int numResults = 1,
int maxTokens = 16,
int minTokens = 0,
double temperature = 1,
double topP = 1,
double minP = 0,
int? numResults = 1,
int? maxTokens = 16,
int? minTokens = 0,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
global::System.Collections.Generic.IList<string>? stopSequences = default,
int topKReturn = 0,
int? topKReturn = 0,
global::G.CompletionBodyLogitBias? logitBias = default,
global::G.AllOf<global::G.Penalty>? frequencyPenalty = default,
global::G.AllOf<global::G.Penalty>? presencePenalty = default,
global::G.AllOf<global::G.Penalty>? countPenalty = default,
int epoch = default,
int? epoch = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::G.CompletionBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,19 @@ partial void ProcessV1J2GrandeInstructCompleteResponseContent(
public async global::System.Threading.Tasks.Task<global::G.V1J2GrandeInstructCompleteResponse> V1J2GrandeInstructCompleteAsync(
string prompt,
string? model = "j2-grande-instruct",
int numResults = 1,
int maxTokens = 16,
int minTokens = 0,
double temperature = 1,
double topP = 1,
double minP = 0,
int? numResults = 1,
int? maxTokens = 16,
int? minTokens = 0,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
global::System.Collections.Generic.IList<string>? stopSequences = default,
int topKReturn = 0,
int? topKReturn = 0,
global::G.CompletionBodyLogitBias? logitBias = default,
global::G.AllOf<global::G.Penalty>? frequencyPenalty = default,
global::G.AllOf<global::G.Penalty>? presencePenalty = default,
global::G.AllOf<global::G.Penalty>? countPenalty = default,
int epoch = default,
int? epoch = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::G.CompletionBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,19 @@ partial void ProcessV1J2JumboCompleteResponseContent(
public async global::System.Threading.Tasks.Task<global::G.V1J2JumboCompleteResponse> V1J2JumboCompleteAsync(
string prompt,
string? model = "j2-jumbo",
int numResults = 1,
int maxTokens = 16,
int minTokens = 0,
double temperature = 1,
double topP = 1,
double minP = 0,
int? numResults = 1,
int? maxTokens = 16,
int? minTokens = 0,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
global::System.Collections.Generic.IList<string>? stopSequences = default,
int topKReturn = 0,
int? topKReturn = 0,
global::G.CompletionBodyLogitBias? logitBias = default,
global::G.AllOf<global::G.Penalty>? frequencyPenalty = default,
global::G.AllOf<global::G.Penalty>? presencePenalty = default,
global::G.AllOf<global::G.Penalty>? countPenalty = default,
int epoch = default,
int? epoch = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::G.CompletionBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,19 +150,19 @@ partial void ProcessV1J2JumboComplete2ResponseContent(
string customModelName,
string prompt,
string? customModelType = "j2-jumbo",
int numResults = 1,
int maxTokens = 16,
int minTokens = 0,
double temperature = 1,
double topP = 1,
double minP = 0,
int? numResults = 1,
int? maxTokens = 16,
int? minTokens = 0,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
global::System.Collections.Generic.IList<string>? stopSequences = default,
int topKReturn = 0,
int? topKReturn = 0,
global::G.CompletionBodyLogitBias? logitBias = default,
global::G.AllOf<global::G.Penalty>? frequencyPenalty = default,
global::G.AllOf<global::G.Penalty>? presencePenalty = default,
global::G.AllOf<global::G.Penalty>? countPenalty = default,
int epoch = default,
int? epoch = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::G.CompletionBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,19 @@ partial void ProcessV1J2JumboInstructCompleteResponseContent(
public async global::System.Threading.Tasks.Task<global::G.V1J2JumboInstructCompleteResponse> V1J2JumboInstructCompleteAsync(
string prompt,
string? model = "j2-jumbo-instruct",
int numResults = 1,
int maxTokens = 16,
int minTokens = 0,
double temperature = 1,
double topP = 1,
double minP = 0,
int? numResults = 1,
int? maxTokens = 16,
int? minTokens = 0,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
global::System.Collections.Generic.IList<string>? stopSequences = default,
int topKReturn = 0,
int? topKReturn = 0,
global::G.CompletionBodyLogitBias? logitBias = default,
global::G.AllOf<global::G.Penalty>? frequencyPenalty = default,
global::G.AllOf<global::G.Penalty>? presencePenalty = default,
global::G.AllOf<global::G.Penalty>? countPenalty = default,
int epoch = default,
int? epoch = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::G.CompletionBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,19 @@ partial void ProcessV1J2LargeCompleteResponseContent(
public async global::System.Threading.Tasks.Task<global::G.V1J2LargeCompleteResponse> V1J2LargeCompleteAsync(
string prompt,
string? model = "j2-large",
int numResults = 1,
int maxTokens = 16,
int minTokens = 0,
double temperature = 1,
double topP = 1,
double minP = 0,
int? numResults = 1,
int? maxTokens = 16,
int? minTokens = 0,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
global::System.Collections.Generic.IList<string>? stopSequences = default,
int topKReturn = 0,
int? topKReturn = 0,
global::G.CompletionBodyLogitBias? logitBias = default,
global::G.AllOf<global::G.Penalty>? frequencyPenalty = default,
global::G.AllOf<global::G.Penalty>? presencePenalty = default,
global::G.AllOf<global::G.Penalty>? countPenalty = default,
int epoch = default,
int? epoch = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::G.CompletionBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,19 +150,19 @@ partial void ProcessV1J2LargeCustomModelCompleteResponseContent(
string customModelName,
string prompt,
string? customModelType = "j2-large",
int numResults = 1,
int maxTokens = 16,
int minTokens = 0,
double temperature = 1,
double topP = 1,
double minP = 0,
int? numResults = 1,
int? maxTokens = 16,
int? minTokens = 0,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
global::System.Collections.Generic.IList<string>? stopSequences = default,
int topKReturn = 0,
int? topKReturn = 0,
global::G.CompletionBodyLogitBias? logitBias = default,
global::G.AllOf<global::G.Penalty>? frequencyPenalty = default,
global::G.AllOf<global::G.Penalty>? presencePenalty = default,
global::G.AllOf<global::G.Penalty>? countPenalty = default,
int epoch = default,
int? epoch = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::G.CompletionBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,19 @@ partial void ProcessV1J2LargeInstructCompleteResponseContent(
public async global::System.Threading.Tasks.Task<global::G.V1J2LargeInstructCompleteResponse> V1J2LargeInstructCompleteAsync(
string prompt,
string? model = "j2-large-instruct",
int numResults = 1,
int maxTokens = 16,
int minTokens = 0,
double temperature = 1,
double topP = 1,
double minP = 0,
int? numResults = 1,
int? maxTokens = 16,
int? minTokens = 0,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
global::System.Collections.Generic.IList<string>? stopSequences = default,
int topKReturn = 0,
int? topKReturn = 0,
global::G.CompletionBodyLogitBias? logitBias = default,
global::G.AllOf<global::G.Penalty>? frequencyPenalty = default,
global::G.AllOf<global::G.Penalty>? presencePenalty = default,
global::G.AllOf<global::G.Penalty>? countPenalty = default,
int epoch = default,
int? epoch = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::G.CompletionBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,19 @@ partial void ProcessV1J2LightCompleteResponseContent(
public async global::System.Threading.Tasks.Task<global::G.V1J2LightCompleteResponse> V1J2LightCompleteAsync(
string prompt,
string? model = "j2-light",
int numResults = 1,
int maxTokens = 16,
int minTokens = 0,
double temperature = 1,
double topP = 1,
double minP = 0,
int? numResults = 1,
int? maxTokens = 16,
int? minTokens = 0,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
global::System.Collections.Generic.IList<string>? stopSequences = default,
int topKReturn = 0,
int? topKReturn = 0,
global::G.CompletionBodyLogitBias? logitBias = default,
global::G.AllOf<global::G.Penalty>? frequencyPenalty = default,
global::G.AllOf<global::G.Penalty>? presencePenalty = default,
global::G.AllOf<global::G.Penalty>? countPenalty = default,
int epoch = default,
int? epoch = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::G.CompletionBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,19 +150,19 @@ partial void ProcessV1J2LightCustomModelCompleteResponseContent(
string customModelName,
string prompt,
string? customModelType = "j2-light",
int numResults = 1,
int maxTokens = 16,
int minTokens = 0,
double temperature = 1,
double topP = 1,
double minP = 0,
int? numResults = 1,
int? maxTokens = 16,
int? minTokens = 0,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
global::System.Collections.Generic.IList<string>? stopSequences = default,
int topKReturn = 0,
int? topKReturn = 0,
global::G.CompletionBodyLogitBias? logitBias = default,
global::G.AllOf<global::G.Penalty>? frequencyPenalty = default,
global::G.AllOf<global::G.Penalty>? presencePenalty = default,
global::G.AllOf<global::G.Penalty>? countPenalty = default,
int epoch = default,
int? epoch = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::G.CompletionBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,19 @@ partial void ProcessV1J2MidCompleteResponseContent(
public async global::System.Threading.Tasks.Task<global::G.V1J2MidCompleteResponse> V1J2MidCompleteAsync(
string prompt,
string? model = "j2-mid",
int numResults = 1,
int maxTokens = 16,
int minTokens = 0,
double temperature = 1,
double topP = 1,
double minP = 0,
int? numResults = 1,
int? maxTokens = 16,
int? minTokens = 0,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
global::System.Collections.Generic.IList<string>? stopSequences = default,
int topKReturn = 0,
int? topKReturn = 0,
global::G.CompletionBodyLogitBias? logitBias = default,
global::G.AllOf<global::G.Penalty>? frequencyPenalty = default,
global::G.AllOf<global::G.Penalty>? presencePenalty = default,
global::G.AllOf<global::G.Penalty>? countPenalty = default,
int epoch = default,
int? epoch = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::G.CompletionBody
Expand Down
Loading

0 comments on commit 80ca94c

Please sign in to comment.