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
Copy file name to clipboardExpand all lines: README.md
+5-2
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,9 @@
2
2
3
3
This repository contains a collection of Python scripts that demonstrate how to use the OpenAI API to generate chat completions.
4
4
5
+
## OpenAI package
6
+
7
+
These scripts use the OpenAI package to demonstrate how to use the OpenAI API.
5
8
In increasing order of complexity, the scripts are:
6
9
7
10
1.[`chat.py`](./chat.py): A simple script that demonstrates how to use the OpenAI API to generate chat completions.
@@ -14,9 +17,9 @@ Plus these scripts to demonstrate additional features:
14
17
*[`chat_safety.py`](./chat_safety.py): The simple script with exception handling for Azure AI Content Safety filter errors.
15
18
*[`chat_async.py`](./chat_async.py): Uses the async clients to make asynchronous calls, including an example of sending off multiple requests at once using `asyncio.gather`.
16
19
17
-
## Using popular libraries
20
+
## Popular LLM libraries
18
21
19
-
These scripts use popular libraries to demonstrate how to use the OpenAI API with them:
22
+
These scripts use popular LLM libraries to demonstrate how to use the OpenAI API with them:
20
23
21
24
*[`chat_langchain.py`](./chat_langchain.py): Uses the Langchain package to generate chat completions. [Learn more from Langchain docs](https://python.langchain.com/docs/get_started/quickstart)
22
25
*[`chat_llamaindex.py`](./chat_llamaindex.py): Uses the LlamaIndex package to generate chat completions. [Learn more from LlamaIndex docs](https://docs.llamaindex.ai/en/stable/)
0 commit comments