feat: implement GetModelAsync method

This commit is contained in:
Stevan Freeborn
2025-01-05 21:36:34 -06:00
parent 8e0443a6bb
commit 8bbd4bb7c8
4 changed files with 137 additions and 3 deletions
@@ -331,4 +331,14 @@ public class ClientTests(ConfigurationFixture configFixture) : EndToEndTest(conf
responses.Should().HaveCountGreaterThan(0);
}
[Fact]
public async Task GetModelAsync_WhenCalled_ItShouldReturnResponse()
{
var result = await _client.GetModelAsync(AnthropicModels.Claude3Haiku);
result.IsSuccess.Should().BeTrue();
result.Value.Should().BeOfType<AnthropicModel>();
result.Value.Id.Should().Be(AnthropicModels.Claude3Haiku);
}
}