BerriAI / litellm

Python SDK, Proxy Server (LLM Gateway) to call 100+ LLM APIs in OpenAI format - [Bedrock, Azure, OpenAI, VertexAI, Cohere, Anthropic, Sagemaker, HuggingFace, Replicate, Groq]
https://docs.litellm.ai/docs/
Other
12.5k stars 1.45k forks source link

VertexAI/Gemini: Calculate cost based on context window #4245

Closed krrishdholakia closed 3 months ago

krrishdholakia commented 3 months ago

Title

VertexAI/Gemini: Calculate cost based on context window

Relevant issues

Builds on https://github.com/BerriAI/litellm/issues/4229

Type

๐Ÿ†• New Feature ๐Ÿงน Refactoring

Changes

[REQUIRED] Testing - Attach a screenshot of any new tests passing locall

If UI changes, send a screenshot/GIF of working UI fixes

cc: @gzamboni

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Comments Updated (UTC)
litellm โœ… Ready (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Jun 17, 2024 7:42pm