tests: work on adding integration tests

This commit is contained in:
Stevan Freeborn
2024-07-03 00:11:48 -05:00
parent 78497b8235
commit 917719d36e
7 changed files with 625 additions and 4 deletions
@@ -213,6 +213,12 @@ public class AnthropicApiClient : IAnthropicApiClient
if (line is null)
{
if (string.IsNullOrWhiteSpace(currentEvent.Type) is false)
{
yield return currentEvent;
currentEvent = new AnthropicEvent();
}
break;
}
+2 -2
View File
@@ -26,13 +26,13 @@ public class ChatResponse
/// Gets the stop reason of the chat response.
/// </summary>
[JsonPropertyName("stop_reason")]
public string StopReason { get; init; } = string.Empty;
public string? StopReason { get; init; }
/// <summary>
/// Gets the stop sequence of the chat response.
/// </summary>
[JsonPropertyName("stop_sequence")]
public string StopSequence { get; init; } = string.Empty;
public string? StopSequence { get; init; }
/// <summary>
/// Gets the type of the chat response.