Skip to content

[Feature]: Net: How to disable thinking when using the deepseek model? #6428

Description

@williamlzw

Description

How to disable thinking when using the deepseek model?

Code Sample

 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 }
     });
 }

Language/SDK

NET

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageUsage: [Issues], Target: All issues that still need to be triaged

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions