Commit 429ae22
committed
refactor: use PSR-18 discovery and replace auth token with headers
- Replaces hard Guzzle dependency with PSR-18 Client and PSR-17 Factory discovery.
- Refactors `Factory`and `Api` to use `ClientInterface` and `RequestFactoryInterface`.
- Replaces specific `authToken` handling with generic `headers` support in `Factory` and `Api`.
- Deprecates `Factory::withAuthToken()` in favor of `withHeader()`.
- Updates all embedding functions to use the discovered PSR-18 client.
BREAKING CHANGE: `Factory::withHttpClient` has been removed.1 parent 4de5c8f commit 429ae22
9 files changed
Lines changed: 335 additions & 410 deletions
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | | - | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
52 | | - | |
| 56 | + | |
0 commit comments