File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ var options = new GrokChatOptions
3535var response = await grok .GetResponseAsync (messages , options );
3636```
3737
38+ > [ !TIP]
39+ > ` Env ` is a helper class from [ Smith] ( https://www.nuget.org/packages/Smith ) ,
40+ > a higher level package typically used for ` dotnet run program.cs ` scenarios in
41+ > .NET 10. You will typically use ` IConfiguration ` for reading API keys.
42+ > This package does not depend on Smith.
43+
3844Search can alternatively be configured using a regular ` ChatOptions `
3945and adding the ` HostedWebSearchTool ` to the tools collection, which
4046sets the live search mode to ` auto ` like above:
@@ -123,9 +129,7 @@ and more.
123129The chat pipeline logging is added similar to other pipeline extensions:
124130
125131``` csharp
126- IChatClient client = new GrokClient (Env .Get (" XAI_API_KEY" )! )
127- .GetChatClient (" grok-3-mini" )
128- .AsIChatClient ()
132+ IChatClient client = new GrokChatClient (Env .Get (" XAI_API_KEY" )! , " grok-3-mini" )
129133 .AsBuilder ()
130134 .UseOpenTelemetry ()
131135 // other extensions...
You can’t perform that action at this time.
0 commit comments