Commit bb932d2
committed
refactor: rewrite entire library to use HttpClient trait instead of reqwest::Client
- Replace hardcoded reqwest::Client with HttpClient trait throughout
- Client struct now accepts any HttpClient implementation
- Remove duplicate ClientWithTrait and ChatWithTrait structures
- All API methods (get, post, delete) now use the trait
- Backward compatibility: forms and streaming still use reqwest directly (TODO)
- Default implementation uses reqwest::Client for zero breaking changes
- This enables middleware injection for tracing, logging, etc.1 parent b758b55 commit bb932d2
File tree
5 files changed
+253
-137
lines changed- async-openai
- src
5 files changed
+253
-137
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
0 commit comments