Skip to content

Commit 638bf75

Browse files
authoredMar 3, 2025
feat: Bring your own types (#342)
* attribute proc macro to bring your own types * keep original fn as it is add new with _byot suffix * update macro * update macro * use macro in main crate + add test * byot: assistants * byot: vector_stores * add where_clause attribute arg * remove print * byot: files * byot: images * add stream arg to attribute * byot: chat * byot: completions * fix comment * fix * byot: audio * byot: embeddings * byot: Fine Tunning * add byot tests * byot: moderations * byot tests: moderations * byot: threads * byot tests: threads * byot: messages * byot tests: messages * byot: runs * byot tests: runs * byot: steps * byot tests: run steps * byot: vector store files * byot test: vector store files * byot: vector store file batches * byot test: vector store file batches * cargo fmt * byot: batches * byot tests: batches * format * remove AssistantFiles and related apis (/assistants/assistant_id/files/..) * byot: audit logs * byot tests: audit logs * keep non byot code checks * byot: invites * byot tests: invites * remove message files API * byot: project api keys * byot tests: project api keys * byot: project service accounts * byot tests: project service accounts * byot: project users * byot tests: project users * byot: projects * byot tests: projects * byot: uploads * byot tests: uploads * byot: users * byot tests: users * add example to demonstrate bring-your-own-types * update README * update doc * cargo fmt * update doc in lib.rs * tests passing * fix for complier warning * fix compiler #[allow(unused_mut)] * cargo fix * fix all warnings * add Voices * publish = false for all examples * specify versions
1 parent c48e62e commit 638bf75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1133
-317
lines changed
 

‎Cargo.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[workspace]
2-
members = [ "async-openai", "examples/*" ]
2+
members = [ "async-openai", "async-openai-*", "examples/*" ]
33
# Only check / build main crates by default (check all with `--workspace`)
4-
default-members = ["async-openai"]
4+
default-members = ["async-openai", "async-openai-*"]
55
resolver = "2"
6+
7+
[workspace.package]
8+
rust-version = "1.75"

‎async-openai-macros/Cargo.toml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[package]
2+
name = "async-openai-macros"
3+
version = "0.1.0"
4+
authors = ["Himanshu Neema"]
5+
keywords = ["openai", "macros", "ai"]
6+
description = "Macros for async-openai"
7+
edition = "2021"
8+
license = "MIT"
9+
homepage = "https://github.com/64bit/async-openai"
10+
repository = "https://github.com/64bit/async-openai"
11+
rust-version = { workspace = true }
12+
13+
[lib]
14+
proc-macro = true
15+
16+
[dependencies]
17+
syn = { version = "2.0", features = ["full"] }
18+
quote = "1.0"
19+
proc-macro2 = "1.0"

0 commit comments

Comments
 (0)