mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 00:33:47 +00:00
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.
This commit is contained in:
1 parent
4baf21656a
commit
fe61acc5b2
15 files changed
+243
-3
No files matched your search
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
Reference in new issue
Block a user