Thanks to visit codestin.com
Credit goes to github.com

Skip to content

System message not passed to Gemini as system_instruction #1011

@rjambrecic

Description

@rjambrecic

Request from Discord

I'm exploring the use of Gemini for creating agents. Currently, the system_message of the ConversableAgent is being sent to the GeminiClient as the first message with the role "system."

Since Gemini supports system instructions according to their documentation (https://ai.google.dev/gemini-api/docs/text-generation#system-instructions), do you think sending the system_message as a system_instruction could potentially be more effective?

My current workaround is to convert the first message of "system" role to system_instruction, as shown in the screenshot.

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions