The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Map total tokens to prompt_tokens too
Lucas Raschek56d3e75b330c
diff --git a/litellm/llms/voyage/embedding/transformation.py b/litellm/llms/voyage/embedding/transformation.pyindex 623dfe73af1..532b3cb8dfb 100644--- a/litellm/llms/voyage/embedding/transformation.py+++ b/litellm/llms/voyage/embedding/transformation.py@@ -131,7 +131,7 @@ class VoyageEmbeddingConfig(BaseEmbeddingConfig):model_response.object = raw_response_json.get("object")usage = Usage(- prompt_tokens=raw_response_json.get("usage", {}).get("prompt_tokens", 0),+ prompt_tokens=raw_response_json.get("usage", {}).get("total_tokens", 0),total_tokens=raw_response_json.get("usage", {}).get("total_tokens", 0),)model_response.usage = usage