You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(types): align with latest OpenAI API spec and fix type issues
- Expand `CompletionUsage` with `PromptTokensDetails` and `CompletionTokensDetails` for granular token tracking.
- Add `usage` to `CreateChatCompletionStreamResponse` to support usage reporting in streaming mode.
- Fix duplicate `object` field in `CreateCompletionResponse`.
- Update `ChatCompletionRequestAssistantMessage` to accept `None` for `content` and introduce the new `refusal` field.
- Clean up `ChatCompletionRequestMessage` Union by removing the duplicate user message type.
- Broaden `ChatCompletionToolChoiceOption` to fully support `allowed_tools` and `custom` tool choice behaviors.
Signed-off-by: JamePeng <jame_peng@sina.com>
0 commit comments