mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-02 02:11:58 +00:00
test(s3-vectors): document dimension autodetect guard
This commit is contained in:
parent
49b7dabd82
commit
039545d4cd
1 changed files with 3 additions and 0 deletions
|
|
@ -42,6 +42,9 @@ async def test_s3_vectors_ingestion_uses_vector_store_embedding_model():
|
|||
)
|
||||
assert embeddings == [[0.1, 0.2, 0.3]]
|
||||
|
||||
# Scope the next assertion to dimension auto-detection. It must call
|
||||
# aembedding with the selected model instead of returning the default
|
||||
# S3 vector dimension without probing the embedding model.
|
||||
mock_aembedding.reset_mock()
|
||||
mock_aembedding.return_value = SimpleNamespace(
|
||||
data=[{"embedding": [0.1, 0.2, 0.3]}]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue