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
This section outlines how to use the AI DIAL Python client to interact with the DIAL Core API.
62
-
It covers authentication methods, making chat completion requests, working with files, managing applications,
65
+
This section outlines how to use the AI DIAL Python client to interact with the DIAL Core API.
66
+
It covers authentication methods, making chat completion requests, working with files, managing applications,
63
67
and utilizing client pools for efficient connection management.
64
68
65
69
### Authentication
@@ -284,7 +288,7 @@ The response is a plain `dict` whose shape is entirely deployment-specific:
284
288
}
285
289
```
286
290
287
-
### Make Completions Requests
291
+
### Make Chat Completions Requests
288
292
289
293
#### Without Streaming
290
294
@@ -466,8 +470,8 @@ ChatCompletionChunk(
466
470
467
471
Files are AI DIAL resources that operate with URL-like objects. Use `pathlib.PurePosixPath` or `str` to create to create new URL-like objects or to get a `string` representation of them.
468
472
469
-
* Use `client.my_files_home()` to upload a file into your bucket in the AI DIAL storage.
470
-
* Use `await async_client.my_files_home()` to get the URL of your bucket and then use it to upload files.
473
+
- Use `client.my_files_home()` to upload a file into your bucket in the AI DIAL storage.
474
+
- Use `await async_client.my_files_home()` to get the URL of your bucket and then use it to upload files.
471
475
472
476
The following example demonstrates how you can use the path-like object returned by `my_files_home()` function:
0 commit comments