mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 02:57:59 +00:00
Added Requesty as a provider (#1006)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
f912af321f
commit
2bd3d41421
44 files changed
+518
-65
No files matched your search
@@ -54,6 +54,8 @@ public sealed class HostNamingTests
|
||||
Assert.That(HostNaming.VendorOfOrganization("Qwen"), Is.EqualTo(ModelVendor.ALIBABA));
|
||||
Assert.That(HostNaming.VendorOfOrganization("deepseek-ai"), Is.EqualTo(ModelVendor.DEEP_SEEK));
|
||||
Assert.That(HostNaming.VendorOfOrganization("HuggingFaceTB"), Is.EqualTo(ModelVendor.HUGGING_FACE));
|
||||
Assert.That(HostNaming.VendorOfOrganization("zai"), Is.EqualTo(ModelVendor.Z_AI));
|
||||
Assert.That(HostNaming.VendorOfOrganization("minimaxi"), Is.EqualTo(ModelVendor.MINIMAX));
|
||||
Assert.That(HostNaming.VendorOfOrganization("somebody-else"), Is.EqualTo(ModelVendor.UNKNOWN));
|
||||
});
|
||||
}
|
||||
@@ -111,6 +113,31 @@ public sealed class HostNamingTests
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TheRegionSuffixComesOffAndTheModelStaysWhatItWas()
|
||||
{
|
||||
var taken = HostNaming.TryStripRegionSuffix(new ModelId("bedrock/claude-opus-5@eu-central-1"), out var inner);
|
||||
|
||||
Assert.Multiple(() =>
|
||||
{
|
||||
Assert.That(taken, Is.True);
|
||||
Assert.That(inner.Original, Is.EqualTo("bedrock/claude-opus-5"));
|
||||
});
|
||||
}
|
||||
|
||||
[TestCase("bedrock/claude-opus-5", TestName = "A name without an at sign has no region to take off")]
|
||||
[TestCase("@eu", TestName = "A region with nothing in front of it is not a wrapping")]
|
||||
public void WhatCarriesNoRegionIsLeftAlone(string modelId)
|
||||
{
|
||||
var taken = HostNaming.TryStripRegionSuffix(new ModelId(modelId), out var inner);
|
||||
|
||||
Assert.Multiple(() =>
|
||||
{
|
||||
Assert.That(taken, Is.False);
|
||||
Assert.That(inner.Original, Is.EqualTo(modelId));
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AMenuPositionComesOff()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user