feat: implement Stripe product configuration and add token-based input validation using Microsoft.ML.Tokenizers
This commit is contained in:
@@ -6,7 +6,12 @@ public class AiSettings
|
||||
|
||||
public string ApiKey { get; set; } = string.Empty;
|
||||
public string Model { get; set; } = "gemini-1.5-flash";
|
||||
public int MaxInputLength { get; set; } = 15000;
|
||||
|
||||
/// <summary>
|
||||
/// Maximum number of tokens allowed for input.
|
||||
/// </summary>
|
||||
public int MaxInputTokens { get; set; } = 15000;
|
||||
|
||||
public int MaxOutputTokens { get; set; } = 1000;
|
||||
public int RetryAttempts { get; set; } = 3;
|
||||
public double Temperature { get; set; } = 0.1;
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace NexusReader.Infrastructure.Configuration;
|
||||
|
||||
public record StripeSettings
|
||||
{
|
||||
public const string SectionName = "Stripe";
|
||||
public string ProProductId { get; init; } = string.Empty;
|
||||
public string BasicProductId { get; init; } = string.Empty;
|
||||
public string FreeProductId { get; init; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user