File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
docs/ai/snippets/microsoft-extensions-ai/ConsoleAI.StatelessStateful Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
- <PackageReference Include =" Microsoft.Extensions.AI.Abstractions" Version =" 9.5.0" />
11
+ <PackageReference Include =" Microsoft.Extensions.AI.Abstractions" Version =" 9.7.1" />
12
+ </ItemGroup >
13
+
14
+ <ItemGroup >
15
+ <PackageReference Include =" OllamaSharp" Version =" 5.2.10" />
12
16
</ItemGroup >
13
17
14
18
<ItemGroup >
Original file line number Diff line number Diff line change 1
- using Microsoft . Extensions . AI ;
1
+ using Microsoft . Extensions . AI ;
2
+ using OllamaSharp ;
2
3
3
- IChatClient client = new SampleChatClient (
4
- new Uri ( "http://coolsite.ai" ) , "target-ai-model" ) ;
4
+ IChatClient client = new OllamaApiClient ( new Uri ( "http://localhost:11434" ) , "llama3.1" ) ;
5
5
6
6
// <Snippet1>
7
7
List < ChatMessage > history = [ ] ;
You can’t perform that action at this time.
0 commit comments