Skip to content

Conversation

@Dobiasd
Copy link
Contributor

@Dobiasd Dobiasd commented Nov 6, 2025

type: 📖 Documentation

Updated the call_type parameter to accept any string instead of specific literals.

There are so many more call types than the ones that were listed, so declaring it as a str instead of the restricted literal will avoid surprises like the one I had when regularly receiving call_type values that should not be possible according to the type annotation in the docs.

Updated the call_type parameter to accept any string instead of specific literals.
@vercel
Copy link

vercel bot commented Nov 6, 2025

@Dobiasd is attempting to deploy a commit to the CLERKIEAI Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant
Copy link

CLAassistant commented Nov 6, 2025

CLA assistant check
All committers have signed the CLA.

@krrishdholakia
Copy link
Contributor

@Dobiasd i believe it should be

from litellm.types.utils import CallTypesLiteral

...

call_type: CallTypesLiteral

if you want to make the update on your PR - happy to merge it in

@Dobiasd
Copy link
Contributor Author

Dobiasd commented Nov 11, 2025

Ah, right, thanks! 👍

I just pushed the suggested fix. ✔️

@Dobiasd Dobiasd changed the title Modify docs of async_pre_call_hook to accept generic call_type Modify docs of async_pre_call_hook to accept CallTypesLiteral Nov 11, 2025
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.

3 participants