File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 1- # Foundry Local C# SDK (under active development)
2-
3- > This SDK is under active development and may not be fully functional.
1+ # Foundry Local C# SDK
42
53## Installation
64
5+ To use the Foundry Local C# SDK, you need to install the NuGet package:
6+
7+ ``` bash
8+ dotnet add package Microsoft.AI.Foundry.Local
9+ ```
10+
11+ ### Building from source
712To build the SDK, run the following command in your terminal:
813
914``` bash
@@ -28,10 +33,14 @@ Then, install the package using the following command:
2833dotnet add package FoundryLocal --source foundry-local
2934```
3035
31- An official NuGet package will be available soon.
32-
3336## Usage
3437
38+ > [ !NOTE]
39+ > For this example, you'll need the OpenAI Nuget package installed as well:
40+ > ``` bash
41+ > dotnet add package OpenAI
42+ > ` ` `
43+
3544` ` ` csharp
3645using Microsoft.AI.Foundry.Local;
3746using OpenAI;
@@ -41,7 +50,7 @@ using System.Diagnostics.Metrics;
4150
4251var alias = " phi-3.5-mini" ;
4352
44- var manager = await FoundryManager .StartModelAsync (aliasOrModelId : alias );
53+ var manager = await FoundryLocalManager .StartModelAsync(aliasOrModelId: alias);
4554
4655var model = await manager.GetModelInfoAsync(aliasOrModelId: alias);
4756ApiKeyCredential key = new ApiKeyCredential(manager.ApiKey);
You can’t perform that action at this time.
0 commit comments