# open_ai: Fix issues with OpenAI compatible APIs \(\#32982\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/c34b24b5fba0642f6efbaaf99d2023d970b003de)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: c34b24b5fba0642f6efbaaf99d2023d970b003de

Requested commit: c34b24b5fba0642f6efbaaf99d2023d970b003de

Commit: c34b24b5fba0642f6efbaaf99d2023d970b003de

Tree: 97e12334d12f6c4ee0dc1ff0cbe26005d110822f

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
open_ai: Fix issues with OpenAI compatible APIs (#32982)

Ran into this while adding support for Vercel v0s models:
- The timestamp seems to be returned in Milliseconds instead of seconds
so it breaks the bounds of `created: u32`. We did not use this field
anywhere so just decided to remove it
- Sometimes the `choices` field can be empty when the last chunk comes
in because it only contains `usage`

Release Notes:

- N/A
```

## Parents

- [05f944b83a6137b6dc446179218cc6714fe84e72](https://git.cafe/gitcafe/zed/commit/05f944b83a6137b6dc446179218cc6714fe84e72?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/c34b24b5fba0642f6efbaaf99d2023d970b003de?format=markdown)
