litellm icon indicating copy to clipboard operation
litellm copied to clipboard

[BUG Fix] Issue With IBM WatsonX integration for Date Format

Open harshit-lyzr opened this issue 1 year ago • 1 comments

  • Updated the parsing method for the created_at field in the JSON response.
  • Changed from using datetime.fromisoformat to datetime.strptime for improved compatibility with the expected date format.
  • The new format used is "%Y-%m-%dT%H:%M:%S.%fZ", ensuring accurate timestamp conversion.
  • This change enhances the robustness of the timestamp handling in the _process_text_gen_response function.

harshit-lyzr avatar Oct 21 '24 13:10 harshit-lyzr

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 Oct 21, 2024 1:28pm

vercel[bot] avatar Oct 21 '24 13:10 vercel[bot]

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Apr 22 '25 22:04 CLAassistant

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Jul 22 '25 00:07 github-actions[bot]