public static ChatClientAgent CreateDeepseekAgent(string prompt)
{
var openAIOptions = new OpenAIClientOptions
{
Endpoint = new Uri(DEEPSEEK_API_URL)
};
var openAIClient = new OpenAIClient(
credential: new ApiKeyCredential(DEEPSEEK_API_KEY),
options: openAIOptions
);
return openAIClient.GetChatClient(DEEPSEEK_MODEL).AsAIAgent(new ChatClientAgentOptions
{
ChatOptions = new ChatOptions { Instructions = prompt }
});
}
Description
How to disable thinking when using the deepseek model?
Code Sample
Language/SDK
NET