Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PY] fix: Updated EmbeddingsResponse class output property to Optiona…
…l[Union[Li… (#1677) ## Linked issues closes: #1646 ## Details Modified the EmbeddingsResponse class' output property in teams.ai.embeddings from Optional[Union[List[List[int]], str]] to Optional[Union[List[List[float]], str]], as embeddings are floats and not ints. #### Change details `class EmbeddingsResponse` in `teams.ai.embeddings.embeddings_response.py` before: ``` @DataClass class EmbeddingsResponse: ... output: Optional[Union[List[List[int]], str]] = None "Optional. Embeddings for the given inputs or the error string." ... ``` after: ``` @DataClass class EmbeddingsResponse: ... output: Optional[Union[List[List[float]], str]] = None "Optional. Embeddings for the given inputs or the error string." ... ``` ## Attestation Checklist - [x] My code follows the style guidelines of this project - I have checked for/fixed spelling, linting, and other errors - I have commented my code for clarity - I have made corresponding changes to the documentation (updating the doc strings in the code is sufficient) - My changes generate no new warnings - I have added tests that validates my changes, and provides sufficient test coverage. I have tested with: - Local testing - E2E testing in Teams - New and existing unit tests pass locally with my changes ### Additional information > Feel free to add other relevant information below
- Loading branch information