Skip to content

Conversation

alexander-alderman-webb
Copy link
Contributor

@alexander-alderman-webb alexander-alderman-webb commented Oct 13, 2025

Description

Issues

Check the call_type value to distinguish embeddings from chats. The client decorator sets call_type by introspecting the function name and wraps all of the top-level litellm functions. If users import from litellm.llms, embedding calls still may appear as chats, but the input callback we provide does not have enough information in that case.

https://github.com/BerriAI/litellm/blob/2ea7005c40011cef08895e62f4f9f40ce4b75664/litellm/utils.py#L1070-L1078

Closes #4908

Reminders

@alexander-alderman-webb alexander-alderman-webb marked this pull request as ready for review October 13, 2025 14:00
@alexander-alderman-webb alexander-alderman-webb requested a review from a team as a code owner October 13, 2025 14:00
@alexander-alderman-webb alexander-alderman-webb merged commit 23411e5 into master Oct 15, 2025
112 checks passed
@alexander-alderman-webb alexander-alderman-webb deleted the webb/litellm-classification branch October 15, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LiteLLM incorrect embeddings classification

2 participants