Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add response_format input parameter to v1/chat/completions endpoint #2523

Open
ktrapeznikov opened this issue Sep 16, 2024 · 0 comments
Open

Comments

@ktrapeznikov
Copy link

ktrapeznikov commented Sep 16, 2024

Feature request

Add response_format input parameter to v1/chat/completions endpoint to make it compatible with OpenAI API
https://platform.openai.com/docs/api-reference/chat/create

This already exists as grammar parameter to /generate endpoint. https://huggingface.co/docs/text-generation-inference/basic_tutorials/using_guidance#grammar-and-constraints

Motivation

Many other tools support OpenAI APIs

Your contribution

happy to help

@ktrapeznikov ktrapeznikov changed the title Add response_format input parameter to v1/chat/completion endpoint Add response_format input parameter to v1/chat/completions endpoint Sep 16, 2024
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

No branches or pull requests

1 participant