- 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;
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using xAiApi.Models;
|
|
using xAiModels.Models;
|
|
|
|
namespace xAiApi.Configurations
|
|
{
|
|
public class XAiApiConfiguration
|
|
{
|
|
/// <summary>
|
|
/// Allowed Models to Use ...
|
|
/// </summary>
|
|
public XAiModelDescriptor[] Models { get; set; } = [];
|
|
|
|
/// <summary>
|
|
/// Allowed Prompts to Use ...
|
|
/// </summary>
|
|
public XAiPromptDescriptor[] Prompts { get; set; } = [];
|
|
|
|
/// <summary>
|
|
/// OCR Configuration ...
|
|
/// </summary>
|
|
public XAiOCRDescriptor OCR { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// Transcript Configuration ...
|
|
/// </summary>
|
|
public XAiTransciptDescriptor Transcript { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// PDF To Image Configuration ...
|
|
/// </summary>
|
|
public XPDFToImageDescriptor PDFToImageDescriptor { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// Proxy Configuration ...
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public XAiModelProxyConfiguration ProxyConfiguration { get; set; } = new();
|
|
}
|
|
} |