Skip to content

Gemini system prompt isn't sent as system prompt #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Hamnivore opened this issue Mar 7, 2025 · 0 comments
Open

Gemini system prompt isn't sent as system prompt #163

Hamnivore opened this issue Mar 7, 2025 · 0 comments

Comments

@Hamnivore
Copy link

We currently send the system prompt as a user message:
https://github.com/token-js/token.js/blob/9074900a94cf97ef501ee989df416bfd8d9cb6b8/src/handlers/gemini.ts#L110C1-L112C101

But system prompts are officially supported on the gemini sdk:
https://ai.google.dev/gemini-api/docs/text-generation?lang=node#system-instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant