From a933d34d41ab98725362218090ccf7efad49a43d Mon Sep 17 00:00:00 2001 From: Stephen Hodgson <hodgson.designs@gmail.com> Date: Wed, 21 Feb 2024 17:49:48 -0500 Subject: [PATCH] tweak docs --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 4cfe22fa..3b1304cb 100644 --- a/README.md +++ b/README.md @@ -778,9 +778,8 @@ var tools = new List<Tool> Tool.GetOrCreateTool(typeof(WeatherService), nameof(WeatherService.GetCurrentWeatherAsync)) }; var assistantRequest = new CreateAssistantRequest(tools: tools, instructions: "You are a helpful weather assistant. Use the appropriate unit based on geographical location."); -testAssistant = await OpenAIClient.AssistantsEndpoint.CreateAssistantAsync(assistantRequest); +var testAssistant = await OpenAIClient.AssistantsEndpoint.CreateAssistantAsync(assistantRequest); var run = await testAssistant.CreateThreadAndRunAsync("I'm in Kuala-Lumpur, please tell me what's the temperature now?"); -testThread = await run.GetThreadAsync(); // waiting while run is Queued and InProgress run = await run.WaitForStatusChangeAsync(); // Invoke all of the tool call functions and return the tool outputs.