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 88 </PropertyGroup >
99
1010 <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" />
1216 </ItemGroup >
1317
1418 <ItemGroup >
Original file line number Diff line number Diff line change 1- using Microsoft . Extensions . AI ;
1+ using Microsoft . Extensions . AI ;
2+ using OllamaSharp ;
23
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" ) ;
55
66// <Snippet1>
77List < ChatMessage > history = [ ] ;
You can’t perform that action at this time.
0 commit comments