generative-ai-go icon indicating copy to clipboard operation
generative-ai-go copied to clipboard

Append user chat content only if specified

Open kylecarbs opened this issue 8 months ago • 1 comments

Otherwise, requesting with just the context results in 400.

kylecarbs avatar Apr 05 '25 23:04 kylecarbs

Interesting. What's the use case for sending an empty list of parts?

It looks like this will ask the model to generate another response without a user response in between, is that legal?

  • Maybe it's not legal: https://github.com/google-gemini/deprecated-generative-ai-python/issues/727

I don't think any of our other SDKs support this.

MarkDaoust avatar Apr 10 '25 15:04 MarkDaoust