Created
February 28, 2025 20:50
-
-
Save eeskildsen/5971b64b8763c2a5c724dddadc86004b to your computer and use it in GitHub Desktop.
Using DeepSeek with Microsoft Semantic Kernel (C#)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenAIClient openAiClient = new OpenAIClient(new System.ClientModel.ApiKeyCredential(config["DEEPSEEK_API_KEY"]!), new() | |
{ | |
Endpoint = new("https://api.deepseek.com/v1"), | |
}); | |
services.AddOpenAIChatCompletion(config["ModelName"]!, openAiClient); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment