Skip to content

Commit e4963f0

Browse files
authored
Fix typo in missing MCP example (#670)
1 parent fe6a9ea commit e4963f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/Responses/Example05_RemoteMcp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void Example05_RemoteMcp()
3131

3232
OpenAIResponseClient client = new(model: "gpt-5", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY"));
3333

34-
OpenAIResponse response = client.CreateResponse("Roll 2d4+1");
34+
OpenAIResponse response = client.CreateResponse("Roll 2d4+1", options);
3535

3636
Console.WriteLine($"[ASSISTANT]: {response.GetOutputText()}");
3737
}

examples/Responses/Example05_RemoteMcpAsync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public async Task Example05_RemoteMcpAsync()
3232

3333
OpenAIResponseClient client = new(model: "gpt-5", apiKey: Environment.GetEnvironmentVariable("OPENAI_API_KEY"));
3434

35-
OpenAIResponse response = await client.CreateResponseAsync("Roll 2d4+1");
35+
OpenAIResponse response = await client.CreateResponseAsync("Roll 2d4+1", options);
3636

3737
Console.WriteLine($"[ASSISTANT]: {response.GetOutputText()}");
3838
}

0 commit comments

Comments
 (0)