AI-Studio/app/MindWork AI Studio/Provider/Requesty/RequestyModel.cs
Thibault Jaigu fe61acc5b2 Added Requesty as a provider
Requesty is an OpenAI compatible AI gateway. The provider mirrors OpenRouter: chat completions over https://router.requesty.ai/v1/, the same project headers, and a model list read from both the managed policies (models/managed) and the full catalog (models), including the context window.
2026-09-25 10:04:02 +01:00

10 lines
446 B
C#

using System.Text.Json.Serialization;
namespace AIStudio.Provider.Requesty;
/// <summary>
/// A data model for a Requesty model from the API.
/// </summary>
/// <param name="Id">The model's ID.</param>
/// <param name="ContextWindowTokens">How much the model reads and writes in one conversation, in tokens.</param>
public readonly record struct RequestyModel(string Id, [property: JsonPropertyName("context_window")] int? ContextWindowTokens);