GenkitG
Genkit•2mo ago•
2 replies
wet-aqua

When executing a prompt (dotprompt with

When executing a prompt (dotprompt with system and user message) p.Execute(ctx, ai.WithMessages(messages...), ai.WithInput(input)) , the messages are sorted in the following order after rendering and before sending to gemini api:
* <system message>
* <user message>
* <messages...>

I expected:
* <system message>
* <messages...>
* <user message>

Am I right in my assumptions? <<<dotprompt:history>> is not yet supported in Genkit Go.
Was this page helpful?