﻿# LiteLLM records Titan embeddings correctly on the Bedrock Invoke passthrough

Verify Titan passthrough vectors, provider token counts and one spend record together; successful embedding delivery does not establish complete cost attribution.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-litellm-titan-invoke-embedding-accounting/
Language: en

The November 15 LiteLLM v1.111.0-dev.4 prerelease fixes Titan embedding passthrough calls that returned vectors while success logging failed. The implementation classifies the reply as embeddings and uses provider usage information. Retrieval applications should compare vector delivery with accounting evidence, because a working embedding pipeline can hide missing spend rows and unenforced budget assumptions.

## Use the passthrough route actually deployed

Send synthetic embedding input through the application’s Bedrock Invoke passthrough, not only the normalized embedding endpoint. Capture the unchanged vector payload and the matching request identity. A test of a different route can pass while the passthrough logger still tries to interpret the response as chat. Keep a known non-embedding Invoke response as a control for the path the implementation intends to leave unchanged.

## Provider usage should survive classification

Return a deterministic synthetic input-token count and inspect the resulting log row and cost metadata. Include supported reply variants, such as typed embedding fields where used. The application should not replace a missing parse result with zero usage. A valid vector and a plausible charge can still conceal incorrect token attribution, so compare the exact known count separately from the final monetary calculation.

## Multimodal charges need their own input case

Where the application sends image input, use a harmless synthetic image and verify the request’s image contribution is represented by the configured pricing logic. Do not infer image accounting from a text-only fixture. Hold the cost-map revision fixed and record its units. The release restores the intended accounting path; any real invoice comparison also needs the provider’s billing rules, reporting delay and the actual tested model identity.

## Reconcile logs before interpreting budget changes

Match one request to one success record and compare aggregated team usage after several synthetic calls. Missing records and duplicate records can both distort enforcement. If spend appears to rise after the upgrade, determine whether newly visible work explains it before attributing the change to higher provider prices. A useful adoption result preserves vector behavior while making usage and cost observable through the intended passthrough interface.

## Sources

- [LiteLLM v1.111.0-dev.4 prerelease notes](https://github.com/BerriAI/litellm/releases/tag/v1.111.0-dev.4)
- [LiteLLM implementation and review #51701](https://github.com/BerriAI/litellm/pull/51701)

## Related reading

- [LiteLLM budgets: periods, shared limits and overrun tests](/journal/litellm-budget-reset/)
- [Vector-database memory: choosing RAM and storage for retrieval](/journal/vector-database-memory-hosting/)
