This repository was archived by the owner on Jul 16, 2025. It is now read-only.
Commit 71714f5
authored
fix: Gemini system prompt (#381)
I started to get 400 Bad Request from Gemini API, not sure if it was due
to changing a model or what. Changing `system_instruction.parts` into a
list like in the
[docs](https://ai.google.dev/gemini-api/docs/text-generation#system-instructions)
fixed it.
Tested at least with `gemini-1.5-pro` and `gemini-2.5-pro` and
`gemini-2.0-flash`, works fine.1 parent cb6fc83 commit 71714f5
File tree
2 files changed
+3
-3
lines changed- src/Platform/Bridge/Google/Contract
- tests/Platform/Bridge/Google/Contract
2 files changed
+3
-3
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
0 commit comments