Skip to content

Batch queries can't be configured. #1137

@carloskiki

Description

@carloskiki

The batch module with inline queries for the Gemini API does not support many of the options that regular queries support.

These are two that I know of, but there are probably more. According to your documentation, this should all be possible:

You can use any requests you would use in non-batch (or interactive) mode. For example, you could specify the temperature, system instructions or even pass in other modalities.

The problem is that CreateBatchJobConfig only allows for display_name, http_options, and dest. So the config has to be added to each InlinedRequest. This type has config: GenerateContentConfig, but some of its fields lead to errors when used in batch query.

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions