Commit 0940322
committed
refactor(oci): drop V1 OciClient, go V2-only
- Remove OciClient (V1 API) class entirely
- Remove all is_v2 parameter threading and body-sniffing detection
- Remove V1 chat (single message string), V1 stream format, generate/rerank endpoints
- OciClientV2 is now the only client, always uses COHEREV2 apiFormat
- Add validation: raise ValueError if messages array is missing
- Add oci_client.py to .fernignore to survive Fern regeneration
- Update __init__.py and lazy_oci_deps.py to reference only OciClientV2
- Update tests: remove V1 test classes, add missing-messages test
- All 41 tests pass (11 integration + 30 unit) against LUIGI_FRA_API1 parent 14b5c6e commit 0940322
5 files changed
Lines changed: 266 additions & 703 deletions
File tree
- src/cohere
- manually_maintained
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
522 | 521 | | |
523 | 522 | | |
524 | 523 | | |
| |||
853 | 852 | | |
854 | 853 | | |
855 | 854 | | |
856 | | - | |
857 | 855 | | |
858 | 856 | | |
859 | 857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments