This example assumes using Together; is in scope and apiKey contains your Together API key.
1 2 3 4 5 6 7 8 9101112131415161718192021
usingvarclient=newTogetherClient(apiKey);Meai.IChatClientchatClient=client;varresponse=awaitchatClient.GetResponseAsync([new Meai.ChatMessage(Meai.ChatRole.User, "What is 25 * 37? Think step by step.")],newMeai.ChatOptions{ModelId="deepseek-ai/DeepSeek-R1",});varreasoning=response.Messages.SelectMany(m=>m.Contents).OfType<Meai.TextReasoningContent>().ToList();vartext=response.Messages.SelectMany(m=>m.Contents).OfType<Meai.TextContent>().ToList();// DeepSeek-R1 should produce reasoning content