Skip to content

Commit 8d5daac

Browse files
committed
Add realtime api
1 parent 78abf3a commit 8d5daac

File tree

12 files changed

+2420
-0
lines changed

12 files changed

+2420
-0
lines changed

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ version = "1"
3232

3333
[dependencies.bytes]
3434
version = "1.7.1"
35+
36+
[dependencies.tokio-tungstenite]
37+
version = "0.24.0"
38+
features = ["connect", "native-tls"]
39+
40+
[dependencies.futures-util]
41+
version = "0.3.31"
42+
features = ["sink", "std"]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Check out the [full API documentation](https://platform.openai.com/docs/api-refe
9494
- [x] [Function calling](https://platform.openai.com/docs/guides/gpt/function-calling)
9595
- [x] [Assistants](https://platform.openai.com/docs/assistants/overview)
9696
- [x] [Batch](https://platform.openai.com/docs/api-reference/batch)
97+
- [x] [Realtime](https://platform.openai.com/docs/api-reference/realtime)
9798

9899
## License
99100
This project is licensed under [MIT license](https://github.com/dongri/openai-api-rs/blob/main/LICENSE).

examples/realtime/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target

0 commit comments

Comments
 (0)