Skip to content

Commit 17f5acf

Browse files
committed
Update README sample
1 parent 682b77d commit 17f5acf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,12 @@ ChatCompletion completion = client.CompleteChat(messages, options);
342342

343343
using JsonDocument structuredJson = JsonDocument.Parse(completion.Content[0].Text);
344344

345-
Console.WriteLine($"Final answer: {structuredJson.RootElement.GetProperty("final_answer").GetString()}");
345+
Console.WriteLine($"Final answer: {structuredJson.RootElement.GetProperty("final_answer")}");
346346
Console.WriteLine("Reasoning steps:");
347347

348348
foreach (JsonElement stepElement in structuredJson.RootElement.GetProperty("steps").EnumerateArray())
349349
{
350-
Console.WriteLine($" - Explanation: {stepElement.GetProperty("explanation").GetString()}");
350+
Console.WriteLine($" - Explanation: {stepElement.GetProperty("explanation")}");
351351
Console.WriteLine($" Output: {stepElement.GetProperty("output")}");
352352
}
353353
```

0 commit comments

Comments
 (0)