mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-03 01:38:46 +00:00
Backport of #50784 to lts/1.108.x as one adapted commit A Bedrock batch created for /v1/embeddings or /v1/responses came back from GET /v1/batches/{id} and cancel as /v1/chat/completions, and the cost poller billed it the same way. The endpoint saved at create now wins over a provider answer of chat or empty, and Bedrock retrieve reads /v1/embeddings from the job's model through the cost map. Cohere Embed v3 gains output_vector_size so it is read as an embedding model too Adapted from these main commits (net diff applied, conflicts resolved for the line's paths, check_batch_cost.py still lives under enterprise/ here): |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| check_batch_cost.py | ||
| check_responses_cost.py | ||
| managed_object_attribution.py | ||