You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a [`with` expression](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/with-expression) makes it easy to construct the modified options.
@@ -127,6 +129,38 @@ false
127
129
128
130
-`ArcadeException`: Base class for all exceptions.
129
131
132
+
## Network options
133
+
134
+
### Timeouts
135
+
136
+
Requests time out after 1 minute by default.
137
+
138
+
To set a custom timeout, configure the client using the `Timeout` option:
Or configure a single method call using [`WithOptions`](#modifying-configuration):
148
+
149
+
```csharp
150
+
usingSystem;
151
+
152
+
varchatResponse=awaitclient
153
+
.WithOptions(options=>
154
+
optionswith
155
+
{
156
+
Timeout=TimeSpan.FromSeconds(42)
157
+
}
158
+
)
159
+
.Chat.Completions.Create();
160
+
161
+
Console.WriteLine(chatResponse);
162
+
```
163
+
130
164
## Semantic versioning
131
165
132
166
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
0 commit comments