litellm icon indicating copy to clipboard operation
litellm copied to clipboard

OpenAI chat completion message type annotation

Open edwinjosegeorge opened this issue 10 months ago • 2 comments

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 ?

edwinjosegeorge avatar Apr 25 '24 03:04 edwinjosegeorge

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

vercel[bot] avatar Apr 25 '24 03:04 vercel[bot]

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?

edwinjosegeorge avatar May 03 '24 00:05 edwinjosegeorge