Commit bb9d3a4
committed
fix(oci): add response_type to embed response for SDK discriminated union
The SDK's EmbedResponse is a discriminated union on response_type
(embeddings_floats vs embeddings_by_type). The OCI embed response
transformation was missing this field, causing pydantic to return None
instead of an EmbedResponse object. This broke V1 embed when the SDK's
merge_embed_responses tried to access .meta on None.
V1 (flat float arrays) now returns response_type="embeddings_floats",
V2 (typed dict) returns response_type="embeddings_by_type".1 parent 0654585 commit bb9d3a4
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
878 | 878 | | |
879 | 879 | | |
880 | 880 | | |
| 881 | + | |
| 882 | + | |
881 | 883 | | |
| 884 | + | |
882 | 885 | | |
883 | 886 | | |
884 | 887 | | |
| |||
0 commit comments