Skip to content

Conversation

@Yuvrajxms09
Copy link

Closes #45

Summary

Adds structured outputs support with Outlines, compatible with both custom and OpenAI formats.

Changes

  • Added Outlines dependency for grammar-based token masking
  • Implemented GrammarState class with FSM token constraints
  • Added OpenAI response_format compatibility layer

Type of Change

  • New feature (non-breaking change which adds functionality)

Testing

  • Added E2E test
  • Added unit tests to inference manager

Checklist

  • No breaking changes
  • Tests added for new functionality

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Structured output with Outlines and xgrammar

1 participant