Skip to content

Conversation

@bhimrazy
Copy link
Collaborator

@bhimrazy bhimrazy commented Jan 18, 2026

What does this PR do?

Adds a new OpenResponsesSpec class to implement the OpenResponses API specification for multi-provider, interoperable LLM interfaces. This initial implementation supports basic non-streaming text responses, following the OpenResponses specification.

A part of #455

Key changes:

  • New OpenResponsesSpec in src/litserve/specs/open_responses.py
  • New types in src/litserve/types.py for roles and statuses
  • Unit test in tests/unit/test_open_responses.py for non-streaming responses

Future PRs can extend to full compliance. This provides a solid foundation for incremental development.

PR review

Anyone in the community is free to review the PR once the tests have passed.

Did you have fun?

Make sure you had fun coding 🙃

@bhimrazy bhimrazy changed the title [wip] feature(specs): add OpenResponses Spec for Open Responses API (covers basic text responses only) [wip] feature(specs): add OpenResponses Spec for Open Responses API (1/n) Jan 18, 2026
@bhimrazy bhimrazy changed the title [wip] feature(specs): add OpenResponses Spec for Open Responses API (1/n) [wip] feature(specs): add OpenResponses Spec for Responses API (1/n) Jan 18, 2026
@bhimrazy bhimrazy marked this pull request as draft January 18, 2026 19:05
@codecov
Copy link

codecov bot commented Jan 18, 2026

Codecov Report

❌ Patch coverage is 84.68468% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 85%. Comparing base (d244f2c) to head (58fbd7f).

Additional details and impacted files
@@         Coverage Diff          @@
##           main   #650    +/-   ##
====================================
  Coverage    85%    85%            
====================================
  Files        39     41     +2     
  Lines      3212   3323   +111     
====================================
+ Hits       2721   2819    +98     
- Misses      491    504    +13     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant