File tree 1 file changed +2
-11
lines changed
common/microsoft-extensions-ai-integration/AIPromptIntegration/AIPromptIntegration
1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 25
25
#region OpenAI Client registration
26
26
27
27
//builder.Services.AddSingleton(new OpenAIClient("YOUR_API_KEY"));
28
- //builder.Services.AddDistributedMemoryCache();
29
- //builder.Services.AddLogging(b => b.AddConsole().SetMinimumLevel(LogLevel.Trace));
30
28
31
- //builder.Services.AddChatClient(services => services.GetRequiredService<OpenAIClient>().AsChatClient("YOUR_MODEL_NAME"))
32
- // .UseDistributedCache()
33
- // .UseLogging();
29
+ //builder.Services.AddChatClient(services => services.GetRequiredService<OpenAIClient>().AsChatClient("YOUR_MODEL_NAME"));
34
30
35
31
#endregion OpenAI Client registration
36
32
46
42
47
43
#region Ollama Chat Client registration
48
44
49
- //builder.Services.AddDistributedMemoryCache();
50
- //builder.Services.AddLogging(b => b.AddConsole().SetMinimumLevel(LogLevel.Trace));
51
-
52
- //builder.Services.AddChatClient(new OllamaChatClient(new Uri("THE_URI_OF_YOUR_CLIENT"), "llama3.1"))
53
- // .UseDistributedCache()
54
- // .UseLogging();
45
+ //builder.Services.AddChatClient(new OllamaChatClient(new Uri("THE_URI_OF_YOUR_CLIENT"), "llama3.1"));
55
46
56
47
#endregion Ollama Chat Client registration
57
48
You can’t perform that action at this time.
0 commit comments