litellm
litellm copied to clipboard
OpenAI chat completion message type annotation
I have tried building the type annotation with reference to https://platform.openai.com/docs/api-reference/chat/create. Does this fix BerriAI/litellm#825 ?
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 20, 2024 5:22am |
Hi @ishaan-jaff @krrishdholakia Does this PR align with the fix needed for https://github.com/BerriAI/litellm/issues/825 ? A typed dict was created with refernce to the Open ai spec. Or should get and pass the type hints from openai library instead of creating typed dict?