- Remap Proxy Configurations in AiApiConfiguration; - Implement AiModelProxy Middleware for Proxifing Requests to Models; - ad DI Extensions Method for Handling Proxy Middleware Usage in AiApi; - Implement Proxy Middleware for Handling Proxifying Requests to Models for Test;
17 lines
408 B
C#
17 lines
408 B
C#
namespace xAiApi.Models
|
|
{
|
|
public class XAiModelProxyConfiguration
|
|
{
|
|
/// <summary>
|
|
/// Enable Proxy or not ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public bool Enabled { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// Proxy Prefix ...
|
|
/// </summary>
|
|
/// <value></value>
|
|
public string RoutePrefix { get; set; } = "ai-model";
|
|
}
|
|
} |