Commit 98b97b6
committed
fix: use Struct format for Gemini functionResponse to ensure API compatibility
The Gemini API expects functionResponse.response to be a Struct (object),
not a plain string. This change wraps the pruned content message in an
object with 'name' and 'content' fields to match the expected format.1 parent edc6932 commit 98b97b6
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
0 commit comments