mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-27 00:53:37 +00:00
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.
24 lines
1.2 KiB
C#
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);
|
|
} |