AI-Studio/app/MindWork AI Studio/Models/Hosting/Hosts/HostRequesty.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

24 lines
1.2 KiB
C#

using AIStudio.Models.Matching;
using AIStudio.Provider;
namespace AIStudio.Models.Hosting.Hosts;
/// <summary>
/// Requesty, a gateway which serves other people's models and says whose they are.
/// </summary>
/// <remarks>
/// Most names come as "vendor/model", the same shape OpenRouter uses, so the prefix is taken off
/// and the vendor stated. Requesty also lists managed routing policies such as "gpt-5-mini@eu",
/// which carry no prefix at all. Those have nothing to take off and go to the rules as they are.
/// </remarks>
public sealed class HostRequesty : ModelHost
{
/// <inheritdoc />
public override LLMProviders Provider => LLMProviders.REQUESTY;
/// <inheritdoc />
public override ModelSource Source => new("https://docs.requesty.ai/features/managed-policies", new DateOnly(2026, 9, 25), "Models are named \"vendor/model\", apart from managed policies such as \"gpt-5-mini@eu\", and all of them are served through the OpenAI-compatible chat completion API.");
/// <inheritdoc />
public override bool TryUnwrap(in ModelId id, out ModelId inner, out ModelVendor? declaredVendor) => HostNaming.TrySplitOrganization(id, out inner, out declaredVendor);
}