Commit 557fec7
authored
feat: crate features flags (#493)
* cargo.toml with feature flags
* examples having correct feature flags
* response-types: cargo b -F response-types --no-default-features
* webhook-types: cargo b -F webhook-types --no-default-features
* audio-types: cargo b -F audio-types --no-default-features
* video-types: cargo b -F video-types --no-default-features
* image-types: cargo b -F image-types --no-default-features
* embedding-types: cargo b -F embedding-types --no-default-features
* file-types: cargo b -F file-types --no-default-features
* upload-types: cargo b -F upload-types --no-default-features
* container-types: cargo b -F container-types --no-default-features
* realtime-types: cargo b -F realtime-types --no-default-features
* assistant-types: cargo b -F assistant-types --no-default-features
* administration-types: cargo b -F administration-types --no-default-features
* completion-types and chat-completino-types
* grader-types
* shared types with feature flags
* src/types works with all type feature flags
* add byot to realtime apis
* feature flags added to client.rs
* feature flag for test in config.rs
* feature flags in util.rs
* feature flag in error.rs
* feature flag for api wrappers in impl.rs
* remove unused feature flag
* updated cargo.toml with feature flags
* updated lib.rs for feature flags
* github workflow to build all features
* add types in feature list
* add feature flag docs in readme
* updated README
* webhook clippy fix: module has the same name as its containing module
* clippy: image feature: derive default on ImageInput instead of manually impl
* clippy: realtime feature: box variant to reduce enum size
* remove tls feature flags for reqwest from the pr checks
* move default implementation for InputSource in its own file1 parent 2c50245 commit 557fec7
File tree
100 files changed
+1147
-610
lines changed- .github/workflows
- async-openai
- src
- types
- admin
- api_keys
- groups
- invites
- project_users
- projects
- roles
- usage
- users
- assistants
- audio
- chat
- completions
- containers
- embeddings
- files
- graders
- images
- realtime
- responses
- uploads
- videos
- webhooks
- examples
- assistants-code-interpreter
- assistants-file-search
- assistants-func-call-stream
- assistants
- audio-speech-stream
- audio-speech
- audio-transcribe
- audio-translate
- azure-openai-service
- bring-your-own-type
- chat-store
- chat-stream
- chatkit
- chat
- completions-stream
- completions-web-search
- completions
- containers
- conversations
- create-image-variation
- embeddings
- gemini-openai-compatibility
- image-edit-stream
- image-edit
- image-gen-stream
- image-generate-b64-json
- image-generate
- in-memory-file
- models
- moderations
- ollama-chat
- responses-function-call
- responses-images-and-vision
- responses-retrieve-stream
- responses-stream
- responses-structured-outputs
- responses
- structured-outputs-schemars
- structured-outputs
- tool-call-stream
- tool-call
- usage
- vector-store-retrieval
- video
- vision-chat
- webhooks
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
100 files changed
+1147
-610
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
21 | 91 | | |
22 | 92 | | |
23 | 93 | | |
| |||
27 | 97 | | |
28 | 98 | | |
29 | 99 | | |
30 | | - | |
| 100 | + | |
31 | 101 | | |
| 102 | + | |
32 | 103 | | |
33 | 104 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
39 | 109 | | |
40 | | - | |
41 | | - | |
| 110 | + | |
| 111 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | | - | |
28 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
29 | 125 | | |
30 | 126 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
36 | 140 | | |
37 | 141 | | |
38 | 142 | | |
39 | 143 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
55 | 156 | | |
| 157 | + | |
56 | 158 | | |
57 | 159 | | |
58 | 160 | | |
| |||
63 | 165 | | |
64 | 166 | | |
65 | 167 | | |
66 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
67 | 189 | | |
68 | 190 | | |
69 | 191 | | |
| |||
0 commit comments