Feat: Add Support for OpenAI's new Responses API spec#462
Feat: Add Support for OpenAI's new Responses API spec#462deependujha wants to merge 1 commit intoLightning-AI:mainfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #462 +/- ##
===================================
- Coverage 89% 88% -1%
===================================
Files 37 37
Lines 2155 2191 +36
===================================
+ Hits 1911 1929 +18
- Misses 244 262 +18 🚀 New features to boost your workflow:
|
| return ChatCompletionResponse(model=model, choices=choices, usage=sum(usage_infos)) | ||
|
|
||
|
|
||
| # ===== OpenAI Response API ===== |
There was a problem hiding this comment.
I think it would be good to have a separate spec file, maybe openai_response.py.
By the way, for the request parameters and their types, you can also refer to the OpenAI Python SDK:
https://github.com/openai/openai-python/blob/main/src/openai/types/responses/response_create_params.py
In LitServe, Pydantic is mostly preferred, whereas OpenAI uses TypedDict for type definitions.
|
hi @deependujha, how is it going here? Do you need any help? |
|
Hi @deependujha, |
What does this PR do?
Fixes #455
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃