Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:Add user authentication feature with JWT and role-based access control #42

Merged
merged 1 commit into from
Aug 29, 2024
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 @@ -190,7 +190,7 @@ partial void ProcessOpenaiChatCompletionsV1OpenaiChatCompletionsPostResponseCont
double topP = 1,
int topK = 0,
int maxTokens = 512,
global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>>? stop = default,
global::System.AnyOf<string, global::System.Collections.Generic.IList<string>>? stop = default,
int n = 1,
double presencePenalty = 0,
double frequencyPenalty = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ partial void ProcessOpenaiCompletionsV1OpenaiCompletionsPostResponseContent(
bool stream = false,
int logprobs = default,
bool echo = default,
global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>>? stop = default,
global::System.AnyOf<string, global::System.Collections.Generic.IList<string>>? stop = default,
double presencePenalty = 0,
double frequencyPenalty = 0,
global::System.AllOf<global::DeepInfra.ResponseFormat4>? responseFormat = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ partial void ProcessOpenaiEmbeddingsV1OpenaiEmbeddingsPostResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::DeepInfra.OpenaiEmbeddingsV1OpenaiEmbeddingsPostResponse> OpenaiEmbeddingsV1OpenaiEmbeddingsPostAsync(
string model,
global::System.AnyOf<global::System.Collections.Generic.IList<string>, string?> input,
global::System.AnyOf<global::System.Collections.Generic.IList<string>, string> input,
bool useCache = true,
string? xDeepinfraSource = default,
string? userAgent = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public sealed partial class ChatCompletionUserMessage
[global::System.Text.Json.Serialization.JsonPropertyName("content")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.AnyOf<string?, global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionContentPartText, global::DeepInfra.ChatCompletionContentPartImage>>> Content { get; set; }
public required global::System.AnyOf<string, global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionContentPartText, global::DeepInfra.ChatCompletionContentPartImage>>> Content { get; set; }

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public sealed partial class OpenAIChatCompletionsIn
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stop")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>>? Stop { get; set; }
public global::System.AnyOf<string, global::System.Collections.Generic.IList<string>>? Stop { get; set; }

/// <summary>
/// number of sequences to return. n != 1 incompatible with streaming<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public sealed partial class OpenAICompletionsIn
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stop")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>>? Stop { get; set; }
public global::System.AnyOf<string, global::System.Collections.Generic.IList<string>>? Stop { get; set; }

/// <summary>
/// Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public sealed partial class OpenAIEmbeddingsIn
[global::System.Text.Json.Serialization.JsonPropertyName("input")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.AnyOf<global::System.Collections.Generic.IList<string>, string?> Input { get; set; }
public required global::System.AnyOf<global::System.Collections.Generic.IList<string>, string> Input { get; set; }

/// <summary>
/// format used when encoding<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed partial class ValidationError
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("loc")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::System.AnyOf<string?, int?>> Loc { get; set; }
public required global::System.Collections.Generic.IList<global::System.AnyOf<string, int?>> Loc { get; set; }

/// <summary>
///
Expand Down
10 changes: 5 additions & 5 deletions src/libs/DeepInfra/Generated/JsonSerializerContextTypes.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::System.AnyOf<string?, int?>>? Type14 { get; set; }
public global::System.Collections.Generic.IList<global::System.AnyOf<string, int?>>? Type14 { get; set; }
/// <summary>
///
/// </summary>
public global::System.AnyOf<string?, int?>? Type15 { get; set; }
public global::System.AnyOf<string, int?>? Type15 { get; set; }
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -193,7 +193,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::System.AnyOf<string?, global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionContentPartText, global::DeepInfra.ChatCompletionContentPartImage>>>? Type45 { get; set; }
public global::System.AnyOf<string, global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionContentPartText, global::DeepInfra.ChatCompletionContentPartImage>>>? Type45 { get; set; }
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -577,7 +577,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>>? Type141 { get; set; }
public global::System.AnyOf<string, global::System.Collections.Generic.IList<string>>? Type141 { get; set; }
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -605,7 +605,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::System.AnyOf<global::System.Collections.Generic.IList<string>, string?>? Type148 { get; set; }
public global::System.AnyOf<global::System.Collections.Generic.IList<string>, string>? Type148 { get; set; }
/// <summary>
///
/// </summary>
Expand Down