Commit 8f40152
committed
fix(oci): fix embed embedding_types casing and handle embeddingsByType response
- embedding_types: OCI expects lowercase (float, int8) not uppercase.
The .upper() was breaking all embedding_types requests.
- Response: OCI returns "embeddingsByType" (not "embeddings") when
embeddingTypes is specified. Handle both response keys.
- Unit test updated to expect lowercase.
- Integration tests added: embedding_types=["float"] and truncate modes.1 parent 7a45ba6 commit 8f40152
2 files changed
Lines changed: 29 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
| 672 | + | |
| 673 | + | |
673 | 674 | | |
674 | 675 | | |
675 | 676 | | |
| |||
875 | 876 | | |
876 | 877 | | |
877 | 878 | | |
878 | | - | |
| 879 | + | |
| 880 | + | |
879 | 881 | | |
880 | 882 | | |
881 | 883 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
512 | 536 | | |
513 | 537 | | |
514 | 538 | | |
| |||
772 | 796 | | |
773 | 797 | | |
774 | 798 | | |
775 | | - | |
| 799 | + | |
776 | 800 | | |
777 | 801 | | |
778 | 802 | | |
| |||
0 commit comments