-
Notifications
You must be signed in to change notification settings - Fork 3k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: guided jsons with date fields are not valid #4583
Comments
can you reproduce this with just outlines https://github.com/outlines-dev/outlines?tab=readme-ov-file#efficient-json-generation-following-a-json-schema |
This seems to be related to a known issue with older versions of outlines: Perhaps the outlines version should be updated |
Your current environment
I host llama3-8B-instruct model
in a docker image using the base image vllm/vllm-openai:0.4.1
openai version: 1.6.1 (example script below)
馃悰 Describe the bug
description
When we prompt the model to produce a json with the guided_json parameter set and including a date field, we get an invalid json response.
This is also not dependent on the specific model. We got the same error with mixtral models.
code
result
{ "DocumentDate": 1999-01-01 }
expected result
{ "DocumentDate": "1999-01-01" }
The text was updated successfully, but these errors were encountered: