Skip to content

Batch mode does not support response_schema in JSONL input file #1150

@pietro-bianchi-choreograph

Description

I am trying to enforce a response_schema in my JSONL file for batch mode but I get code': 400, 'message': 'Request contains an invalid argument.'

In docs I can find that:

Each line in this file must be a JSON object containing a user-defined key and a request object, where the request is a valid GenerateContentRequest object

and also that you can include ResponseSchema in GenerationConfig

source https://ai.google.dev/api/generate-content#generationconfig

Metadata

Metadata

Assignees

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions