fix: remove model id validation

This commit is contained in:
Stevan Freeborn
2025-01-01 20:12:26 -06:00
parent abf4154432
commit 31a7097cdc
5 changed files with 4 additions and 12 deletions
@@ -232,14 +232,14 @@ public class MessageRequestTests : SerializationTest
}
[Fact]
public void Constructor_WhenCalledAndModelIsInvalid_ItShouldThrowArgumentException()
public void Constructor_WhenCalledAndModelIsInvalid_ItShouldNotThrowException()
{
var action = () => new MessageRequest(
model: "invalid-model",
messages: [new()]
);
action.Should().Throw<ArgumentException>();
action.Should().NotThrow();
}
[Fact]
@@ -85,14 +85,14 @@ public class StreamMessageRequestTests : SerializationTest
}
[Fact]
public void Constructor_WhenCalledAndModelIsInvalid_ItShouldThrowArgumentException()
public void Constructor_WhenCalledAndModelIsInvalid_ItShouldNotThrowException()
{
var action = () => new StreamMessageRequest(
model: "invalid-model",
messages: [new()]
);
action.Should().Throw<ArgumentException>();
action.Should().NotThrow();
}
[Fact]